From Prashant Kumar, 2 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and DID_call_trnsfr_Always_SIP-DID_Unlocated Issue
  1.  
  2.  
  3. freeswitch@ip-172-31-36-75>
  4. freeswitch@ip-172-31-36-75>
  5. freeswitch@ip-172-31-36-75>
  6. 2022-01-04 13:11:05.393328 94.90% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1604785422@46.101.114.158 [b399d615-d814-497c-beb4-5678e3e1f1c3]
  7. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 179)
  8. 2022-01-04 13:11:05.393328 94.90% [INFO] sofia.c:10462 sofia/default/1604785422@46.101.114.158 receiving invite from 46.101.114.158:5077 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 9d66f420-e802-123a-6a85-ba05d31eb9f9
  9. 2022-01-04 13:11:05.393328 94.90% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 46.101.114.158:0.
  10. 2022-01-04 13:11:05.393328 94.90% [DEBUG] sofia.c:10585 IP 46.101.114.158 Approved by acl "default[]". Access Granted.
  11. 2022-01-04 13:11:05.393328 94.90% [DEBUG] sofia.c:7499 Channel sofia/default/1604785422@46.101.114.158 entering state [received][100]
  12. 2022-01-04 13:11:05.393328 94.90% [DEBUG] sofia.c:7509 Remote SDP:
  13. v=0
  14. o=FreeSWITCH 1641286409 1641286410 IN IP4 46.101.114.158
  15. s=FreeSWITCH
  16. c=IN IP4 46.101.114.158
  17. t=0 0
  18. m=audio 15456 RTP/AVP 0 101
  19. a=rtpmap:0 PCMU/8000
  20. a=rtpmap:101 telephone-event/8000
  21. a=fmtp:101 0-16
  22. a=ptime:20
  23.  
  24. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  25. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  26. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  27. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  28. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/1604785422@46.101.114.158 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  29. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_codec.c:111 sofia/default/1604785422@46.101.114.158 Original read codec set to PCMU:0
  30. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  31. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_media.c:5973 sofia/default/1604785422@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101
  32. 2022-01-04 13:11:05.393328 94.90% [DEBUG] sofia.c:7933 (sofia/default/1604785422@46.101.114.158) State Change CS_NEW -> CS_INIT
  33. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1604785422@46.101.114.158) State NEW
  34. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 179)
  35. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1604785422@46.101.114.158) State INIT
  36. 2022-01-04 13:11:05.393328 94.90% [DEBUG] mod_sofia.c:97 sofia/default/1604785422@46.101.114.158 SOFIA INIT
  37. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:40 sofia/default/1604785422@46.101.114.158 Standard INIT
  38. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:48 (sofia/default/1604785422@46.101.114.158) State Change CS_INIT -> CS_ROUTING
  39. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1604785422@46.101.114.158) State INIT going to sleep
  40. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 179)
  41. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_channel.c:2380 (sofia/default/1604785422@46.101.114.158) Callstate Change DOWN -> RINGING
  42. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1604785422@46.101.114.158) State ROUTING
  43. 2022-01-04 13:11:05.393328 94.90% [DEBUG] mod_sofia.c:158 sofia/default/1604785422@46.101.114.158 SOFIA ROUTING
  44. 2022-01-04 13:11:05.393328 94.90% [DEBUG] switch_core_state_machine.c:230 sofia/default/1604785422@46.101.114.158 Standard ROUTING
  45. 2022-01-04 13:11:05.393328 94.90% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <1604785422>->10444 in context default
  46. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  47. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  48. 2022-01-04 13:11:05.413296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 10444
  49. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '10444' AND status=0 limit 1
  50. 2022-01-04 13:11:05.413296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway
  51. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  52. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '10444' limit 1
  53. 2022-01-04 13:11:05.413296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1604785422 / 1604785422
  54. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  55. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  56. 2022-01-04 13:11:05.413296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  57. 2022-01-04 13:11:05.433301 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  58. 2022-01-04 13:11:05.433301 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "10444"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  59. 2022-01-04 13:11:05.433301 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  60. 2022-01-04 13:11:05.433301 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  61. 2022-01-04 13:11:05.433301 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  62. 2022-01-04 13:11:05.433301 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="10444" AND (accountid = 0 OR status = 1) LIMIT 1
  63. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  64. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 4
  65. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^10444.*' OR patterns = '^1044.*' OR patterns = '^104.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  66. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="10444" AND A.accountid = '3' limit 1
  67. 2022-01-04 13:11:05.453298 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 10444
  68. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  69. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  70. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  71. 2022-01-04 13:11:05.453298 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  72. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '10444' OR number = '1044' OR number = '104' OR number = '10' OR number = '1' OR number ='--') OR (number = '10444*' OR number = '1044*' OR number = '104*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '1604785422' OR number = '160478542' OR number = '16047854' OR number = '1604785' OR number = '160478' OR number = '16047' OR number = '1604' OR number = '160' OR number = '16' OR number = '1' OR number ='--') OR (number = '1604785422*' OR number = '160478542*' OR number = '16047854*' OR number = '1604785*' OR number = '160478*' OR number = '16047*' OR number = '1604*' OR number = '160*' OR number = '16*' OR number = '1*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  73. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  74. 2022-01-04 13:11:05.453298 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '10444' OR routing_prefix = '1044' OR routing_prefix = '104' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  75. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  76. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3
  77. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894
  78. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  79. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 391.8
  80. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  81. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  82. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  83. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  84. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  85. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  86. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  87. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10444" LIMIT 1
  88. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  89. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  90. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  91. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  92. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  93. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  94. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  95. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 10444
  96. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  97. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3
  98. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  99. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  100. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your391.8 balance Accountid 3 !!!
  101. 2022-01-04 13:11:05.473296 94.90% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  102. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  103. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  104. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  105. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1
  106. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1
  107. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  108. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3
  109. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  110. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  111. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  112. 2022-01-04 13:11:05.473296 94.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  113. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 4  and status = 0 limit 1
  114. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  115. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] START:
  116. 2022-01-04 13:11:05.473296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec  FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="6239515281" limit 1
  117. 2022-01-04 13:11:05.493295 94.90% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML]  did_local_sip_codec :
  118. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  119. <document type="freeswitch/xml">
  120. <section name="dialplan" description="ASTPP Dialplan">
  121. <context name="default">
  122. <extension name="10444">
  123. <condition field="destination_number" expression="10444">
  124. <action application="set" data="effective_destination_number=10444"/>
  125. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  126. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  127. <action application="set" data="callstart=2022-01-04 13:11:05"/>
  128. <action application="set" data="hangup_after_bridge=true"/>
  129. <action application="set" data="continue_on_fail=TRUE"/>
  130. <action application="set" data="account_id=3"/>
  131. <action application="set" data="parent_id=0"/>
  132. <action application="set" data="entity_id=3"/>
  133. <action application="set" data="call_processed=internal"/>
  134. <action application="set" data="call_direction=inbound"/>
  135. <action application="set" data="accountname=Entdemo"/>
  136. <action application="set" data="origination_rates_did=ID:1|CODE:^10444.*|DESTINATION:10444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4"/>
  137. <action application="set" data="origination_rates=0"/>
  138. <action application="set" data="original_caller_id_name=1604785422"/>
  139. <action application="set" data="original_caller_id_number=1604785422"/>
  140. <action application="export" data="is_recording=1"/>
  141. <action application="export" data="media_bug_answer_req=true"/>
  142. <action application="export" data="record_sample_rate=8000"/>
  143. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}SIP-DID_4.wav"/>
  144. <action application="set" data="effective_caller_id_name=1604785422"/>
  145. <action application="set" data="effective_caller_id_number=1604785422"/>
  146. <action application="set" data="receiver_accid=4"/>
  147. <action application="set" data="did_id=1"/>
  148. <action application="set" data="transfer_call_type=5"/>
  149. <action application="set" data="transfer_extensions=6239515281"/>
  150. <action application="set" data="busy_status=1"/>
  151. <action application="set" data="no_answer_status=1"/>
  152. <action application="set" data="always_status=0"/>
  153. <action application="set" data="transfer_status=0"/>
  154. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  155. <action application="export" data="domain_name="/>
  156. <action application="export" data="sip_to_host="/>
  157. <action application="export" data="presence_data=x|||admin's(8243029697)|||||||||DID|||46.101.114.158"/>
  158. <action application="export" data="call_type=5"/>
  159. <action application="set" data="calltype=SIP-DID"/>
  160. <action application="bridge" data="{sip_contact_user=10444}[leg_timeout=20]sofia/${sofia_profile_name}/10444${regex(${sofia_contact(6239515281@${domain_name})}|^[^@]+(.*)|%1)}"/>
  161. <condition field="${cond(${user_data 6239515281@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  162. <action application="answer"/>
  163. <action application="export" data="voicemail_alternate_greet_id=10444"/>
  164. <action application="voicemail" data="default $${domain_name} 6239515281"/>
  165. <anti-action application="hangup" data="${originate_disposition}"/>
  166. </condition>
  167. <action application="set" data="did_id=1"/>
  168. <action application="set" data="destination_number=10444"/>
  169. <action application="set" data="leg_timeout=20"/>
  170. <action application="set" data="call_type_vm_flag=1"/>
  171. <action application="set" data="is_local_extension=1"/>
  172. <action application="lua" data="did_call_forwarding.lua"/>
  173. </condition>
  174. </extension>
  175. </context>
  176. </section>
  177. </document>
  178. Dialplan: sofia/default/1604785422@46.101.114.158 parsing [default->10444] continue=false
  179. Dialplan: sofia/default/1604785422@46.101.114.158 Regex (PASS) [10444] destination_number(10444) =~ /10444/ break=on-false
  180. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(effective_destination_number=10444)
  181. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  182. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  183. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(callstart=2022-01-04 13:11:05)
  184. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(hangup_after_bridge=true)
  185. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(continue_on_fail=TRUE)
  186. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(account_id=3)
  187. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(parent_id=0)
  188. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(entity_id=3)
  189. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(call_processed=internal)
  190. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(call_direction=inbound)
  191. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(accountname=Entdemo)
  192. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(origination_rates_did=ID:1|CODE:^10444.*|DESTINATION:10444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4)
  193. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(origination_rates=0)
  194. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(original_caller_id_name=1604785422)
  195. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(original_caller_id_number=1604785422)
  196. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(is_recording=1)
  197. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(media_bug_answer_req=true)
  198. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(record_sample_rate=8000)
  199. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}SIP-DID_4.wav)
  200. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(effective_caller_id_name=1604785422)
  201. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(effective_caller_id_number=1604785422)
  202. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(receiver_accid=4)
  203. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(did_id=1)
  204. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(transfer_call_type=5)
  205. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(transfer_extensions=6239515281)
  206. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(busy_status=1)
  207. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(no_answer_status=1)
  208. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(always_status=0)
  209. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(transfer_status=0)
  210. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(variable_sip_to_host=${domain_name})
  211. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(domain_name=)
  212. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(sip_to_host=)
  213. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(presence_data=x|||admin's(8243029697)|||||||||DID|||46.101.114.158)
  214. Dialplan: sofia/default/1604785422@46.101.114.158 Action export(call_type=5)
  215. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(calltype=SIP-DID)
  216. Dialplan: sofia/default/1604785422@46.101.114.158 Action bridge({sip_contact_user=10444}[leg_timeout=20]sofia/${sofia_profile_name}/10444${regex(${sofia_contact(6239515281@${domain_name})}|^[^@]+(.*)|%1)})
  217. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(did_id=1)
  218. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(destination_number=10444)
  219. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(leg_timeout=20)
  220. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(call_type_vm_flag=1)
  221. Dialplan: sofia/default/1604785422@46.101.114.158 Action set(is_local_extension=1)
  222. Dialplan: sofia/default/1604785422@46.101.114.158 Action lua(did_call_forwarding.lua)
  223. |--- Dialplan: Processing recursive conditions level:1 [10444_recur_1] require-nested=TRUE
  224. |--- Dialplan: sofia/default/1604785422@46.101.114.158 Regex (FAIL) [10444_recur_1] ${cond(${user_data 6239515281@${domain_name} param vm-enabled} == true ? YES : NO)}(NO) =~ /^YES$/ break=on-false
  225. |--- Dialplan: sofia/default/1604785422@46.101.114.158 ANTI-Action hangup(${originate_disposition})
  226. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_core_state_machine.c:281 (sofia/default/1604785422@46.101.114.158) State Change CS_ROUTING -> CS_EXECUTE
  227. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1604785422@46.101.114.158) State ROUTING going to sleep
  228. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_EXECUTE (Cur 1 Tot 179)
  229. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_core_state_machine.c:647 (sofia/default/1604785422@46.101.114.158) State EXECUTE
  230. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_sofia.c:213 sofia/default/1604785422@46.101.114.158 SOFIA EXECUTE
  231. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_core_state_machine.c:323 sofia/default/1604785422@46.101.114.158 Standard EXECUTE
  232. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(effective_destination_number=10444)
  233. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [effective_destination_number]=[10444]
  234. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(bridge_pre_execute_bleg_app=sched_hangup)
  235. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [bridge_pre_execute_bleg_app]=[sched_hangup]
  236. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  237. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  238. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(callstart=2022-01-04 13:11:05)
  239. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [callstart]=[2022-01-04 13:11:05]
  240. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(hangup_after_bridge=true)
  241. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [hangup_after_bridge]=[true]
  242. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(continue_on_fail=TRUE)
  243. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [continue_on_fail]=[TRUE]
  244. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(account_id=3)
  245. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [account_id]=[3]
  246. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(parent_id=0)
  247. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [parent_id]=[0]
  248. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(entity_id=3)
  249. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [entity_id]=[3]
  250. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(call_processed=internal)
  251. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [call_processed]=[internal]
  252. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(call_direction=inbound)
  253. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [call_direction]=[inbound]
  254. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(accountname=Entdemo)
  255. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [accountname]=[Entdemo]
  256. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(origination_rates_did=ID:1|CODE:^10444.*|DESTINATION:10444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4)
  257. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [origination_rates_did]=[ID:1|CODE:^10444.*|DESTINATION:10444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4]
  258. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(origination_rates=0)
  259. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [origination_rates]=[0]
  260. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(original_caller_id_name=1604785422)
  261. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [original_caller_id_name]=[1604785422]
  262. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(original_caller_id_number=1604785422)
  263. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [original_caller_id_number]=[1604785422]
  264. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(is_recording=1)
  265. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [is_recording]=[1]
  266. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(media_bug_answer_req=true)
  267. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [media_bug_answer_req]=[true]
  268. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(record_sample_rate=8000)
  269. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [record_sample_rate]=[8000]
  270. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/b399d615-d814-497c-beb4-5678e3e1f1c3SIP-DID_4.wav)
  271. 2022-01-04 13:11:05.493295 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/b399d615-d814-497c-beb4-5678e3e1f1c3SIP-DID_4.wav]
  272. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(effective_caller_id_name=1604785422)
  273. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [effective_caller_id_name]=[1604785422]
  274. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(effective_caller_id_number=1604785422)
  275. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [effective_caller_id_number]=[1604785422]
  276. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(receiver_accid=4)
  277. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [receiver_accid]=[4]
  278. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(did_id=1)
  279. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [did_id]=[1]
  280. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(transfer_call_type=5)
  281. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [transfer_call_type]=[5]
  282. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(transfer_extensions=6239515281)
  283. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [transfer_extensions]=[6239515281]
  284. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(busy_status=1)
  285. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [busy_status]=[1]
  286. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(no_answer_status=1)
  287. 2022-01-04 13:11:05.493295 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [no_answer_status]=[1]
  288. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(always_status=0)
  289. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [always_status]=[0]
  290. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(transfer_status=0)
  291. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [transfer_status]=[0]
  292. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(variable_sip_to_host=172.31.36.75)
  293. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [variable_sip_to_host]=[172.31.36.75]
  294. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(domain_name=)
  295. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF]
  296. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(sip_to_host=)
  297. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF]
  298. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(presence_data=x|||admin's(8243029697)|||||||||DID|||46.101.114.158)
  299. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||admin's(8243029697)|||||||||DID|||46.101.114.158]
  300. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 export(call_type=5)
  301. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[5]
  302. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(calltype=SIP-DID)
  303. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [calltype]=[SIP-DID]
  304. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 bridge({sip_contact_user=10444}[leg_timeout=20]sofia/default/10444@117.247.91.162:5126)
  305. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [is_recording]=[1] to event
  306. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  307. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  308. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/b399d615-d814-497c-beb4-5678e3e1f1c3SIP-DID_4.wav] to event
  309. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [presence_data]=[x|||admin's(8243029697)|||||||||DID|||46.101.114.158] to event
  310. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_channel.c:1269 sofia/default/1604785422@46.101.114.158 EXPORTING[export_vars] [call_type]=[5] to event
  311. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  312. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  313. 2022-01-04 13:11:05.513290 94.90% [NOTICE] switch_channel.c:1123 New Channel sofia/default/10444@117.247.91.162:5126 [7931a9b7-9219-46f4-9d95-6e527b4ed455]
  314. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_sofia.c:5121 (sofia/default/10444@117.247.91.162:5126) State Change CS_NEW -> CS_INIT
  315. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_ivr_originate.c:3151 sofia/default/10444@117.247.91.162:5126 Setting leg timeout to 20
  316. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_INIT (Cur 2 Tot 180)
  317. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10444@117.247.91.162:5126) State INIT
  318. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_sofia.c:97 sofia/default/10444@117.247.91.162:5126 SOFIA INIT
  319. 2022-01-04 13:11:05.513290 94.90% [INFO] sofia_glue.c:1651 sofia/default/10444@117.247.91.162:5126 sending invite call-id: (null)
  320. 2022-01-04 13:11:05.513290 94.90% [DEBUG] sofia_glue.c:1654 sofia/default/10444@117.247.91.162:5126 sending invite version: 1.10.7 -release-19-883d2cb662 64bit
  321. Local SDP:
  322. v=0
  323. o=FreeSWITCH 1641279823 1641279824 IN IP4 65.0.92.207
  324. s=FreeSWITCH
  325. c=IN IP4 65.0.92.207
  326. t=0 0
  327. m=audio 22042 RTP/AVP 0 101
  328. a=rtpmap:0 PCMU/8000
  329. a=rtpmap:101 telephone-event/8000
  330. a=fmtp:101 0-15
  331. a=ptime:20
  332. a=sendrecv
  333.  
  334. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:40 sofia/default/10444@117.247.91.162:5126 Standard INIT
  335. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:48 (sofia/default/10444@117.247.91.162:5126) State Change CS_INIT -> CS_ROUTING
  336. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10444@117.247.91.162:5126) State INIT going to sleep
  337. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_ROUTING (Cur 2 Tot 180)
  338. 2022-01-04 13:11:05.513290 94.90% [DEBUG] sofia.c:7499 Channel sofia/default/10444@117.247.91.162:5126 entering state [calling][0]
  339. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10444@117.247.91.162:5126) State ROUTING
  340. 2022-01-04 13:11:05.513290 94.90% [DEBUG] mod_sofia.c:158 sofia/default/10444@117.247.91.162:5126 SOFIA ROUTING
  341. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_ivr_originate.c:67 (sofia/default/10444@117.247.91.162:5126) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  342. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10444@117.247.91.162:5126) State ROUTING going to sleep
  343. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 180)
  344. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:659 (sofia/default/10444@117.247.91.162:5126) State CONSUME_MEDIA
  345. 2022-01-04 13:11:05.513290 94.90% [DEBUG] switch_core_state_machine.c:659 (sofia/default/10444@117.247.91.162:5126) State CONSUME_MEDIA going to sleep
  346. 2022-01-04 13:11:05.533296 94.90% [DEBUG] sofia.c:7499 Channel sofia/default/10444@117.247.91.162:5126 entering state [terminated][404]
  347. 2022-01-04 13:11:05.533296 94.90% [NOTICE] sofia.c:8738 Hangup sofia/default/10444@117.247.91.162:5126 [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]
  348. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_HANGUP (Cur 2 Tot 180)
  349. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:844 (sofia/default/10444@117.247.91.162:5126) Callstate Change DOWN -> HANGUP
  350. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10444@117.247.91.162:5126) State HANGUP
  351. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_sofia.c:468 Channel sofia/default/10444@117.247.91.162:5126 hanging up, cause: UNALLOCATED_NUMBER
  352. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:59 sofia/default/10444@117.247.91.162:5126 Standard HANGUP, cause: UNALLOCATED_NUMBER
  353. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10444@117.247.91.162:5126) State HANGUP going to sleep
  354. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:616 (sofia/default/10444@117.247.91.162:5126) State Change CS_HANGUP -> CS_REPORTING
  355. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_REPORTING (Cur 2 Tot 180)
  356. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10444@117.247.91.162:5126) State REPORTING
  357. 2022-01-04 13:11:05.533296 94.90% [INFO] mod_json_cdr.c:271 Process [7931a9b7-9219-46f4-9d95-6e527b4ed455.cdr.json]
  358. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 1 [UNALLOCATED_NUMBER]
  359. 2022-01-04 13:11:05.533296 94.90% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: UNALLOCATED_NUMBER
  360. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(did_id=1)
  361. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [did_id]=[1]
  362. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(destination_number=10444)
  363. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [destination_number]=[10444]
  364. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(leg_timeout=20)
  365. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [leg_timeout]=[20]
  366. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(call_type_vm_flag=1)
  367. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [call_type_vm_flag]=[1]
  368. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 set(is_local_extension=1)
  369. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/1604785422@46.101.114.158 [is_local_extension]=[1]
  370. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 lua(did_call_forwarding.lua)
  371. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  372. 2022-01-04 13:11:05.533296 94.90% [NOTICE] switch_cpp.cpp:1465 [ASTPP] SECTION
  373. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DID_Call_Forwading] This Is Last Opensips 1 This Is DiD Id :
  374. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_cpp.cpp:1209 sofia/default/1604785422@46.101.114.158 destroy/unlink session from object
  375. EXECUTE [depth=0] sofia/default/1604785422@46.101.114.158 hangup(UNALLOCATED_NUMBER)
  376. 2022-01-04 13:11:05.533296 94.90% [NOTICE] mod_dptools.c:1387 Hangup sofia/default/1604785422@46.101.114.158 [CS_EXECUTE] [UNALLOCATED_NUMBER]
  377. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_session.c:2983 sofia/default/1604785422@46.101.114.158 skip receive message [PHONE_EVENT] (channel is hungup already)
  378. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:647 (sofia/default/1604785422@46.101.114.158) State EXECUTE going to sleep
  379. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_HANGUP (Cur 2 Tot 180)
  380. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:844 (sofia/default/1604785422@46.101.114.158) Callstate Change RINGING -> HANGUP
  381. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1604785422@46.101.114.158) State HANGUP
  382. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_sofia.c:462 sofia/default/1604785422@46.101.114.158 Overriding SIP cause 404 with 404 from the other leg
  383. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_sofia.c:468 Channel sofia/default/1604785422@46.101.114.158 hanging up, cause: UNALLOCATED_NUMBER
  384. 2022-01-04 13:11:05.533296 94.90% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  385. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:59 sofia/default/1604785422@46.101.114.158 Standard HANGUP, cause: UNALLOCATED_NUMBER
  386. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1604785422@46.101.114.158) State HANGUP going to sleep
  387. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:616 (sofia/default/1604785422@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
  388. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1604785422@46.101.114.158) Running State Change CS_REPORTING (Cur 2 Tot 180)
  389. 2022-01-04 13:11:05.533296 94.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1604785422@46.101.114.158) State REPORTING
  390. 2022-01-04 13:11:05.533296 94.90% [INFO] mod_json_cdr.c:271 Process [b399d615-d814-497c-beb4-5678e3e1f1c3.cdr.json]
  391. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:168 sofia/default/10444@117.247.91.162:5126 Standard REPORTING, cause: UNALLOCATED_NUMBER
  392. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10444@117.247.91.162:5126) State REPORTING going to sleep
  393. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:607 (sofia/default/10444@117.247.91.162:5126) State Change CS_REPORTING -> CS_DESTROY
  394. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_session.c:1753 Session 180 (sofia/default/10444@117.247.91.162:5126) Locked, Waiting on external entities
  395. 2022-01-04 13:11:05.553293 94.90% [NOTICE] switch_core_session.c:1771 Session 180 (sofia/default/10444@117.247.91.162:5126) Ended
  396. 2022-01-04 13:11:05.553293 94.90% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/10444@117.247.91.162:5126 [CS_DESTROY]
  397. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:735 (sofia/default/10444@117.247.91.162:5126) Running State Change CS_DESTROY (Cur 1 Tot 180)
  398. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10444@117.247.91.162:5126) State DESTROY
  399. 2022-01-04 13:11:05.553293 94.90% [DEBUG] mod_sofia.c:379 sofia/default/10444@117.247.91.162:5126 SOFIA DESTROY
  400. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:175 sofia/default/10444@117.247.91.162:5126 Standard DESTROY
  401. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10444@117.247.91.162:5126) State DESTROY going to sleep
  402. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:168 sofia/default/1604785422@46.101.114.158 Standard REPORTING, cause: UNALLOCATED_NUMBER
  403. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1604785422@46.101.114.158) State REPORTING going to sleep
  404. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:607 (sofia/default/1604785422@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
  405. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_session.c:1753 Session 179 (sofia/default/1604785422@46.101.114.158) Locked, Waiting on external entities
  406. 2022-01-04 13:11:05.553293 94.90% [NOTICE] switch_core_session.c:1771 Session 179 (sofia/default/1604785422@46.101.114.158) Ended
  407. 2022-01-04 13:11:05.553293 94.90% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/1604785422@46.101.114.158 [CS_DESTROY]
  408. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:735 (sofia/default/1604785422@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 180)
  409. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1604785422@46.101.114.158) State DESTROY
  410. 2022-01-04 13:11:05.553293 94.90% [DEBUG] mod_sofia.c:379 sofia/default/1604785422@46.101.114.158 SOFIA DESTROY
  411. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:175 sofia/default/1604785422@46.101.114.158 Standard DESTROY
  412. 2022-01-04 13:11:05.553293 94.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1604785422@46.101.114.158) State DESTROY going to sleep
  413. freeswitch@ip-172-31-36-75> /exit
  414.  
  415. You have new mail in /var/mail/root
  416. root@ip-172-31-36-75:/home/admin#