From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1.  
  2. Type /help <enter> to see a list of commands
  3.  
  4.  
  5.  
  6. +OK log level  [7]
  7. 2023-08-14 11:38:07.654214 98.37% [NOTICE] switch_channel.c:1123 New Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 [3a970827-05f5-4160-85bd-5a3a06b896ad]
  8. 2023-08-14 11:38:07.654214 98.37% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_NEW (Cur 1 Tot 7)
  9. 2023-08-14 11:38:07.654214 98.37% [INFO] sofia.c:10453 sofia/PKsipProfile/9084093664@13.232.246.166:5078 receiving invite from 103.250.137.137:20774 version: 1.10.9 -release-21-a615e85afc 64bit call-id: NzAzYzhlYmVkZjhmYmJmNmUwNjRkY2MwMjgyMTg4ZGQ.
  10. 2023-08-14 11:38:07.654214 98.37% [DEBUG] sofia.c:10547 verifying acl "PKsipProfile" for ip/port 103.250.137.137:0.
  11. 2023-08-14 11:38:07.654214 98.37% [DEBUG] sofia.c:2419 detaching session 3a970827-05f5-4160-85bd-5a3a06b896ad
  12. 2023-08-14 11:38:07.654214 98.37% [WARNING] sofia_reg.c:1846 SIP auth challenge (INVITE) on sofia profile 'PKsipProfile' for [10040403333@13.232.246.166] from ip 103.250.137.137
  13. 2023-08-14 11:38:07.654214 98.37% [DEBUG] switch_core_state_machine.c:600 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State NEW
  14. 2023-08-14 11:38:07.734195 98.30% [DEBUG] sofia.c:2532 Re-attaching to session 3a970827-05f5-4160-85bd-5a3a06b896ad
  15. 2023-08-14 11:38:07.734195 98.30% [INFO] sofia.c:10453 sofia/PKsipProfile/9084093664@13.232.246.166:5078 receiving invite from 103.250.137.137:20774 version: 1.10.9 -release-21-a615e85afc 64bit call-id: NzAzYzhlYmVkZjhmYmJmNmUwNjRkY2MwMjgyMTg4ZGQ.
  16. 2023-08-14 11:38:07.734195 98.30% [DEBUG] sofia.c:10547 verifying acl "PKsipProfile" for ip/port 103.250.137.137:0.
  17. 2023-08-14 11:38:07.734195 98.30% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 entering state [received][100]
  18. 2023-08-14 11:38:07.734195 98.30% [DEBUG] sofia.c:7497 Remote SDP:
  19. v=0
  20. o=Z 0 0 IN IP4 103.250.137.137
  21. s=Z
  22. c=IN IP4 103.250.137.137
  23. t=0 0
  24. m=audio 20592 RTP/AVP 3 110 8 0 98 101
  25. a=rtpmap:110 speex/8000
  26. a=rtpmap:98 iLBC/8000
  27. a=fmtp:98 mode=20
  28. a=rtpmap:101 telephone-event/8000
  29. a=fmtp:101 0-15
  30.  
  31. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  32. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  33. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  34. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  35. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  36. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  37. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  38. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  39. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  40. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  41. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  42. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  43. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  44. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  45. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  46. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  47. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  48. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000
  49. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:3750 Set Codec sofia/PKsipProfile/9084093664@13.232.246.166:5078 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  50. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_codec.c:111 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Original read codec set to PCMA:8
  51. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000
  52. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_media.c:5850 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Set 2833 dtmf send payload to 101 recv payload to 101
  53. 2023-08-14 11:38:07.734195 98.30% [DEBUG] sofia.c:7921 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State Change CS_NEW -> CS_INIT
  54. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_INIT (Cur 1 Tot 7)
  55. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:624 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State INIT
  56. 2023-08-14 11:38:07.734195 98.30% [DEBUG] mod_sofia.c:97 sofia/PKsipProfile/9084093664@13.232.246.166:5078 SOFIA INIT
  57. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:40 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard INIT
  58. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:48 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State Change CS_INIT -> CS_ROUTING
  59. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:624 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State INIT going to sleep
  60. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_ROUTING (Cur 1 Tot 7)
  61. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_channel.c:2380 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Callstate Change DOWN -> RINGING
  62. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:640 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State ROUTING
  63. 2023-08-14 11:38:07.734195 98.30% [DEBUG] mod_sofia.c:158 sofia/PKsipProfile/9084093664@13.232.246.166:5078 SOFIA ROUTING
  64. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_core_state_machine.c:230 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard ROUTING
  65. 2023-08-14 11:38:07.734195 98.30% [INFO] mod_dialplan_xml.c:639 Processing 9084093664 <9084093664>->10040403333 in context default
  66. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  67. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  68. 2023-08-14 11:38:07.734195 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 10040403333
  69. 2023-08-14 11:38:07.734195 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '10040403333' AND status=0 limit 1
  70. 2023-08-14 11:38:07.734195 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9084093664 / 9084093664
  71. 2023-08-14 11:38:07.734195 98.30% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10040403333" LIMIT 1
  72. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation 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="10040403333" limit 1
  73. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  74. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9084093665]
  75. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9084093665" AND deleted = 0 limit 1
  76. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^10040403333.*' OR blocked_patterns = '^1004040333.*' OR blocked_patterns = '^100404033.*' OR blocked_patterns = '^10040403.*' OR blocked_patterns = '^1004040.*' OR blocked_patterns = '^100404.*' OR blocked_patterns = '^10040.*' OR blocked_patterns = '^1004.*' OR blocked_patterns = '^100.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 13 limit 1
  77. 2023-08-14 11:38:07.754194 98.30% [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 ="10040403333" AND A.accountid = '13' limit 1
  78. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 10040403333
  79. 2023-08-14 11:38:07.754194 98.30% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10040403333" LIMIT 1
  80. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation 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="10040403333" limit 1
  81. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call direction : outbound
  82. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="10040403333" AND (accountid = 0 OR status = 1) LIMIT 1
  83. 2023-08-14 11:38:07.754194 98.30% [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 = '^10040403333.*' OR patterns = '^1004040333.*' OR patterns = '^100404033.*' OR patterns = '^10040403.*' OR patterns = '^1004040.*' OR patterns = '^100404.*' OR patterns = '^10040.*' OR patterns = '^1004.*' OR patterns = '^100.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 13 ORDER BY LENGTH(PKGPTR.patterns) DESC
  84. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  85. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 13
  86. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9084093665
  87. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 55948.98248
  88. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  89. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  90. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  91. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  92. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  93. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^10040403333.*' OR pattern = '^1004040333.*' OR pattern = '^100404033.*' OR pattern = '^10040403.*' OR pattern = '^1004040.*' OR pattern = '^100404.*' OR pattern = '^10040.*' OR pattern = '^1004.*' OR pattern = '^100.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  94. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: outbound
  95. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  96. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  97. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  98. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  99. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.20000
  100. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : USA
  101. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  102. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 13
  103. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
  104. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  105. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  106. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your55948.98248 balance Accountid 13 !!!
  107. 2023-08-14 11:38:07.754194 98.30% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 10000 mins!
  108. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max length duration : 10000 minutes
  109. 2023-08-14 11:38:07.754194 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 1
  110. 2023-08-14 11:38:07.754194 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=1 ORDER by id asc
  111. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.sip_cid_type,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^10040403333.*' OR pattern = '^1004040333.*' OR pattern = '^100404033.*' OR pattern = '^10040403.*' OR pattern = '^1004040.*' OR pattern = '^100404.*' OR pattern = '^10040.*' OR pattern = '^1004.*' OR pattern = '^100.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence
  112. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  113. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  114. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^1.*
  115. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : USA
  116. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  117. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  118. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^1.*
  119. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  120. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  121. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 1
  122. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : YourProvider
  123. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  124. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  125. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  126. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  127. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : YourProvider
  128. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  129. 2023-08-14 11:38:07.774196 98.30% [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 = 13 AND status=0 LIMIT 1
  130. 2023-08-14 11:38:07.774196 98.30% [INFO] switch_cpp.cpp:1465 [ASTPP] maxlength::::::::: 10000
  131. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  132. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 1) AND status=0 limit 1
  133. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  134. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  135. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  136. <document type="freeswitch/xml">
  137. <section name="dialplan" description="ASTPP Dialplan">
  138. <context name="default">
  139. <extension name="10040403333">
  140. <condition field="destination_number" expression="10040403333">
  141. <action application="set" data="effective_destination_number=10040403333"/>
  142. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  143. <action application="set" data="bridge_pre_execute_bleg_data=+600000 normal_clearing"/>
  144. <action application="set" data="callstart=2023-08-14 11:38:07"/>
  145. <action application="set" data="hangup_after_bridge=true"/>
  146. <action application="set" data="continue_on_fail=TRUE"/>
  147. <action application="set" data="account_id=13"/>
  148. <action application="set" data="parent_id=0"/>
  149. <action application="set" data="entity_id=0"/>
  150. <action application="set" data="call_processed=internal"/>
  151. <action application="set" data="call_direction=outbound"/>
  152. <action application="set" data="accountname=default"/>
  153. <action application="set" data="origination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:30|RATEGROUP:1|MARKUP:0|CI:0|ACCID:13"/>
  154. <action application="set" data="original_caller_id_name=9084093664"/>
  155. <action application="set" data="original_caller_id_number=9084093664"/>
  156.  
  157. <action application="set" data="calltype=STANDARD"/>
  158. <action application="set" data="termination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:60|INITIALBLOCK:30|TRUNK:1|PROVIDER:3"/>
  159. <action application="set" data="trunk_id=1"/>
  160. <action application="set" data="provider_id=3"/>
  161. <action application="set" data="rate_flag=0"/>
  162. <action application="set" data="force_trunk_flag=1"/>
  163. <action application="export" data="presence_data=trunk_id=1"/>
  164. <action application="set" data="intcall=0"/>
  165. <action application="export" data="presence_data=x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD"/>
  166. <action application="bridge" data="{sip_cid_type=none}[leg_timeout=700,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/10040403333"/>
  167. </condition>
  168. </extension>
  169. </context>
  170. </section>
  171. </document>
  172. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 parsing [default->10040403333] continue=false
  173. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Regex (PASS) [10040403333] destination_number(10040403333) =~ /10040403333/ break=on-false
  174. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(effective_destination_number=10040403333)
  175. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  176. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(bridge_pre_execute_bleg_data=+600000 normal_clearing)
  177. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(callstart=2023-08-14 11:38:07)
  178. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(hangup_after_bridge=true)
  179. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(continue_on_fail=TRUE)
  180. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(account_id=13)
  181. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(parent_id=0)
  182. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(entity_id=0)
  183. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(call_processed=internal)
  184. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(call_direction=outbound)
  185. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(accountname=default)
  186. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(origination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:30|RATEGROUP:1|MARKUP:0|CI:0|ACCID:13)
  187. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(original_caller_id_name=9084093664)
  188. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(original_caller_id_number=9084093664)
  189. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(calltype=STANDARD)
  190. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(termination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:60|INITIALBLOCK:30|TRUNK:1|PROVIDER:3)
  191. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(trunk_id=1)
  192. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(provider_id=3)
  193. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(rate_flag=0)
  194. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(force_trunk_flag=1)
  195. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action export(presence_data=trunk_id=1)
  196. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action set(intcall=0)
  197. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action export(presence_data=x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD)
  198. Dialplan: sofia/PKsipProfile/9084093664@13.232.246.166:5078 Action bridge({sip_cid_type=none}[leg_timeout=700,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/10040403333)
  199. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_core_state_machine.c:281 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State Change CS_ROUTING -> CS_EXECUTE
  200. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_core_state_machine.c:640 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State ROUTING going to sleep
  201. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_EXECUTE (Cur 1 Tot 7)
  202. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_core_state_machine.c:647 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State EXECUTE
  203. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_sofia.c:213 sofia/PKsipProfile/9084093664@13.232.246.166:5078 SOFIA EXECUTE
  204. 2023-08-14 11:38:07.774196 98.30% [DEBUG] switch_core_state_machine.c:323 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard EXECUTE
  205. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(effective_destination_number=10040403333)
  206. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [effective_destination_number]=[10040403333]
  207. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(bridge_pre_execute_bleg_app=sched_hangup)
  208. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [bridge_pre_execute_bleg_app]=[sched_hangup]
  209. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(bridge_pre_execute_bleg_data=+600000 normal_clearing)
  210. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [bridge_pre_execute_bleg_data]=[+600000 normal_clearing]
  211. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(callstart=2023-08-14 11:38:07)
  212. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [callstart]=[2023-08-14 11:38:07]
  213. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(hangup_after_bridge=true)
  214. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [hangup_after_bridge]=[true]
  215. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(continue_on_fail=TRUE)
  216. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [continue_on_fail]=[TRUE]
  217. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(account_id=13)
  218. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [account_id]=[13]
  219. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(parent_id=0)
  220. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [parent_id]=[0]
  221. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(entity_id=0)
  222. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [entity_id]=[0]
  223. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(call_processed=internal)
  224. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [call_processed]=[internal]
  225. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(call_direction=outbound)
  226. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [call_direction]=[outbound]
  227. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(accountname=default)
  228. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [accountname]=[default]
  229. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(origination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:30|RATEGROUP:1|MARKUP:0|CI:0|ACCID:13)
  230. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:30|RATEGROUP:1|MARKUP:0|CI:0|ACCID:13]
  231. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(original_caller_id_name=9084093664)
  232. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [original_caller_id_name]=[9084093664]
  233. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(original_caller_id_number=9084093664)
  234. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [original_caller_id_number]=[9084093664]
  235. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(calltype=STANDARD)
  236. 2023-08-14 11:38:07.774196 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [calltype]=[STANDARD]
  237. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(termination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:60|INITIALBLOCK:30|TRUNK:1|PROVIDER:3)
  238. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:60|INITIALBLOCK:30|TRUNK:1|PROVIDER:3]
  239. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(trunk_id=1)
  240. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [trunk_id]=[1]
  241. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(provider_id=3)
  242. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [provider_id]=[3]
  243. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(rate_flag=0)
  244. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [rate_flag]=[0]
  245. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(force_trunk_flag=1)
  246. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [force_trunk_flag]=[1]
  247. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 export(presence_data=trunk_id=1)
  248. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=1]
  249. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 set(intcall=0)
  250. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_dptools.c:1673 SET sofia/PKsipProfile/9084093664@13.232.246.166:5078 [intcall]=[0]
  251. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 export(presence_data=x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD)
  252. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD]
  253. EXECUTE [depth=0] sofia/PKsipProfile/9084093664@13.232.246.166:5078 bridge({sip_cid_type=none}[leg_timeout=700,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/10040403333)
  254. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_channel.c:1269 sofia/PKsipProfile/9084093664@13.232.246.166:5078 EXPORTING[export_vars] [presence_data]=[x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD] to event
  255. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_channel.c:1269 sofia/PKsipProfile/9084093664@13.232.246.166:5078 EXPORTING[export_vars] [presence_data]=[x|||PKPostpaidCustomer(9084093665)|||^1.* // USA // 0.20000 // trunk_id=0|||YourProvider // ^1.* // USA // 0.10000 // trunk_id=1|||STD] to event
  256. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_ivr_originate.c:2291 Parsing global variables
  257. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_ivr_originate.c:2853 Parsing session specific variables
  258. 2023-08-14 11:38:07.794192 98.30% [NOTICE] switch_channel.c:1123 New Channel sofia/PKsipProfile/10040403333 [476fd664-f99b-4e33-be03-d2d816fa5391]
  259. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_sofia.c:5117 (sofia/PKsipProfile/10040403333) State Change CS_NEW -> CS_INIT
  260. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_ivr_originate.c:3161 sofia/PKsipProfile/10040403333 Setting leg timeout to 700
  261. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_INIT (Cur 2 Tot 8)
  262. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:624 (sofia/PKsipProfile/10040403333) State INIT
  263. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_sofia.c:97 sofia/PKsipProfile/10040403333 SOFIA INIT
  264. 2023-08-14 11:38:07.794192 98.30% [INFO] sofia_glue.c:1654 sofia/PKsipProfile/10040403333 sending invite call-id: (null)
  265. 2023-08-14 11:38:07.794192 98.30% [DEBUG] sofia_glue.c:1657 sofia/PKsipProfile/10040403333 sending invite version: 1.10.9 -release-21-a615e85afc 64bit
  266. Local SDP:
  267. v=0
  268. o=FreeSWITCH 1691990107 1691990108 IN IP4 172.31.38.83
  269. s=FreeSWITCH
  270. c=IN IP4 172.31.38.83
  271. t=0 0
  272. m=audio 22980 RTP/AVP 8 18 101
  273. a=rtpmap:8 PCMA/8000
  274. a=rtpmap:18 G729/8000
  275. a=rtpmap:101 telephone-event/8000
  276. a=fmtp:101 0-15
  277. a=ptime:20
  278. a=sendrecv
  279.  
  280. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:40 sofia/PKsipProfile/10040403333 Standard INIT
  281. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:48 (sofia/PKsipProfile/10040403333) State Change CS_INIT -> CS_ROUTING
  282. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:624 (sofia/PKsipProfile/10040403333) State INIT going to sleep
  283. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_ROUTING (Cur 2 Tot 8)
  284. 2023-08-14 11:38:07.794192 98.30% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/10040403333 entering state [calling][0]
  285. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:640 (sofia/PKsipProfile/10040403333) State ROUTING
  286. 2023-08-14 11:38:07.794192 98.30% [DEBUG] mod_sofia.c:158 sofia/PKsipProfile/10040403333 SOFIA ROUTING
  287. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_ivr_originate.c:67 (sofia/PKsipProfile/10040403333) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  288. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:640 (sofia/PKsipProfile/10040403333) State ROUTING going to sleep
  289. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 8)
  290. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:659 (sofia/PKsipProfile/10040403333) State CONSUME_MEDIA
  291. 2023-08-14 11:38:07.794192 98.30% [DEBUG] switch_core_state_machine.c:659 (sofia/PKsipProfile/10040403333) State CONSUME_MEDIA going to sleep
  292. 2023-08-14 11:38:07.974194 98.30% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/10040403333 entering state [proceeding][180]
  293. 2023-08-14 11:38:07.974194 98.30% [NOTICE] sofia.c:7598 Ring-Ready sofia/PKsipProfile/10040403333!
  294. 2023-08-14 11:38:07.974194 98.30% [DEBUG] switch_channel.c:3494 (sofia/PKsipProfile/10040403333) Callstate Change DOWN -> RINGING
  295. 2023-08-14 11:38:07.994248 98.30% [NOTICE] mod_sofia.c:2516 Ring-Ready sofia/PKsipProfile/9084093664@13.232.246.166:5078!
  296. 2023-08-14 11:38:07.994248 98.30% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 entering state [early][180]
  297. 2023-08-14 11:38:07.994248 98.30% [NOTICE] switch_ivr_originate.c:565 Ring Ready sofia/PKsipProfile/9084093664@13.232.246.166:5078!
  298. 2023-08-14 11:38:17.994202 97.93% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/10040403333 entering state [completing][200]
  299. 2023-08-14 11:38:17.994202 97.93% [DEBUG] sofia.c:7497 Remote SDP:
  300. v=0
  301. o=root 568017019 568017019 IN IP4 159.203.131.36
  302. s=Asterisk PBX 16.4.0
  303. c=IN IP4 159.203.131.36
  304. t=0 0
  305. m=audio 17622 RTP/AVP 8 101
  306. a=rtpmap:8 PCMA/8000
  307. a=rtpmap:101 telephone-event/8000
  308. a=fmtp:101 0-16
  309. a=maxptime:150
  310.  
  311. 2023-08-14 11:38:17.994202 97.93% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/10040403333 entering state [ready][200]
  312. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  313. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  314. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1]
  315. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000
  316. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:3750 Set Codec sofia/PKsipProfile/10040403333 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  317. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_codec.c:111 sofia/PKsipProfile/10040403333 Original read codec set to PCMA:8
  318. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000
  319. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:5850 sofia/PKsipProfile/10040403333 Set 2833 dtmf send payload to 101 recv payload to 101
  320. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8651 AUDIO RTP [sofia/PKsipProfile/10040403333] 172.31.38.83 port 22980 -> 159.203.131.36 port 17622 codec: 8 ms: 20
  321. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_rtp.c:4399 Not using a timer
  322. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8963 sofia/PKsipProfile/10040403333 Set 2833 dtmf send payload to 101
  323. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8970 sofia/PKsipProfile/10040403333 Set 2833 dtmf receive payload to 101
  324. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8993 sofia/PKsipProfile/10040403333 Set rtp dtmf delay to 40
  325. 2023-08-14 11:38:17.994202 97.93% [NOTICE] sofia.c:8674 Channel [sofia/PKsipProfile/10040403333] has been answered
  326. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_channel.c:3893 (sofia/PKsipProfile/10040403333) Callstate Change RINGING -> ACTIVE
  327. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8651 AUDIO RTP [sofia/PKsipProfile/9084093664@13.232.246.166:5078] 172.31.38.83 port 24902 -> 103.250.137.137 port 20592 codec: 8 ms: 20
  328. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_rtp.c:4399 Not using a timer
  329. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8963 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Set 2833 dtmf send payload to 101
  330. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8970 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Set 2833 dtmf receive payload to 101
  331. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_media.c:8993 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Set rtp dtmf delay to 40
  332. 2023-08-14 11:38:17.994202 97.93% [DEBUG] mod_sofia.c:913 Local SDP sofia/PKsipProfile/9084093664@13.232.246.166:5078:
  333. v=0
  334. o=FreeSWITCH 1691988195 1691988196 IN IP4 172.31.38.83
  335. s=FreeSWITCH
  336. c=IN IP4 172.31.38.83
  337. t=0 0
  338. m=audio 24902 RTP/AVP 8 101
  339. a=rtpmap:8 PCMA/8000
  340. a=rtpmap:101 telephone-event/8000
  341. a=fmtp:101 0-15
  342. a=ptime:20
  343. a=sendrecv
  344.  
  345. 2023-08-14 11:38:17.994202 97.93% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 entering state [completed][200]
  346. 2023-08-14 11:38:17.994202 97.93% [NOTICE] switch_ivr_originate.c:3844 Channel [sofia/PKsipProfile/9084093664@13.232.246.166:5078] has been answered
  347. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_channel.c:3893 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Callstate Change RINGING -> ACTIVE
  348. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_ivr_originate.c:3902 Originate Resulted in Success: [sofia/PKsipProfile/10040403333] Peer UUID: 476fd664-f99b-4e33-be03-d2d816fa5391
  349. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_ivr_bridge.c:1791 (sofia/PKsipProfile/10040403333) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  350. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 8)
  351. 2023-08-14 11:38:17.994202 97.93% [DEBUG] switch_core_state_machine.c:650 (sofia/PKsipProfile/10040403333) State EXCHANGE_MEDIA
  352. 2023-08-14 11:38:17.994202 97.93% [DEBUG] mod_sofia.c:671 SOFIA EXCHANGE_MEDIA
  353. 2023-08-14 11:38:49.994247 98.80% [DEBUG] sofia.c:7487 Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 entering state [terminating][0]
  354. 2023-08-14 11:38:49.994247 98.80% [NOTICE] sofia.c:8729 Hangup sofia/PKsipProfile/9084093664@13.232.246.166:5078 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
  355. 2023-08-14 11:38:49.994247 98.80% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/PKsipProfile/9084093664@13.232.246.166:5078]
  356. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/PKsipProfile/10040403333]
  357. 2023-08-14 11:38:50.014224 98.80% [NOTICE] switch_ivr_bridge.c:1027 Hangup sofia/PKsipProfile/10040403333 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  358. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:650 (sofia/PKsipProfile/10040403333) State EXCHANGE_MEDIA going to sleep
  359. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_HANGUP (Cur 2 Tot 8)
  360. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:844 (sofia/PKsipProfile/10040403333) Callstate Change ACTIVE -> HANGUP
  361. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:846 (sofia/PKsipProfile/10040403333) State HANGUP
  362. 2023-08-14 11:38:50.014224 98.80% [DEBUG] mod_sofia.c:468 Channel sofia/PKsipProfile/10040403333 hanging up, cause: NORMAL_CLEARING
  363. 2023-08-14 11:38:50.014224 98.80% [DEBUG] mod_sofia.c:522 Sending BYE to sofia/PKsipProfile/10040403333
  364. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:59 sofia/PKsipProfile/10040403333 Standard HANGUP, cause: NORMAL_CLEARING
  365. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:846 (sofia/PKsipProfile/10040403333) State HANGUP going to sleep
  366. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:616 (sofia/PKsipProfile/10040403333) State Change CS_HANGUP -> CS_REPORTING
  367. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/10040403333) Running State Change CS_REPORTING (Cur 2 Tot 8)
  368. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:932 (sofia/PKsipProfile/10040403333) State REPORTING
  369. 2023-08-14 11:38:50.014224 98.80% [INFO] mod_json_cdr.c:272 Process [476fd664-f99b-4e33-be03-d2d816fa5391.cdr.json]
  370. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_ivr_bridge.c:1890 sofia/PKsipProfile/10040403333 skip receive message [UNBRIDGE] (channel is hungup already)
  371. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_ivr_bridge.c:1893 sofia/PKsipProfile/9084093664@13.232.246.166:5078 skip receive message [UNBRIDGE] (channel is hungup already)
  372. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_session.c:2973 sofia/PKsipProfile/9084093664@13.232.246.166:5078 skip receive message [PHONE_EVENT] (channel is hungup already)
  373. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:647 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State EXECUTE going to sleep
  374. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_HANGUP (Cur 2 Tot 8)
  375. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:844 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Callstate Change ACTIVE -> HANGUP
  376. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:846 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State HANGUP
  377. 2023-08-14 11:38:50.014224 98.80% [DEBUG] mod_sofia.c:468 Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 hanging up, cause: NORMAL_UNSPECIFIED
  378. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:59 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard HANGUP, cause: NORMAL_UNSPECIFIED
  379. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:846 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State HANGUP going to sleep
  380. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:616 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State Change CS_HANGUP -> CS_REPORTING
  381. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:581 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_REPORTING (Cur 2 Tot 8)
  382. 2023-08-14 11:38:50.014224 98.80% [DEBUG] switch_core_state_machine.c:932 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State REPORTING
  383. 2023-08-14 11:38:50.014224 98.80% [INFO] mod_json_cdr.c:272 Process [3a970827-05f5-4160-85bd-5a3a06b896ad.cdr.json]
  384. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:168 sofia/PKsipProfile/10040403333 Standard REPORTING, cause: NORMAL_CLEARING
  385. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:932 (sofia/PKsipProfile/10040403333) State REPORTING going to sleep
  386. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:607 (sofia/PKsipProfile/10040403333) State Change CS_REPORTING -> CS_DESTROY
  387. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_session.c:1743 Session 8 (sofia/PKsipProfile/10040403333) Locked, Waiting on external entities
  388. 2023-08-14 11:38:50.034211 98.80% [NOTICE] switch_core_session.c:1761 Session 8 (sofia/PKsipProfile/10040403333) Ended
  389. 2023-08-14 11:38:50.034211 98.80% [NOTICE] switch_core_session.c:1765 Close Channel sofia/PKsipProfile/10040403333 [CS_DESTROY]
  390. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:735 (sofia/PKsipProfile/10040403333) Running State Change CS_DESTROY (Cur 1 Tot 8)
  391. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:745 (sofia/PKsipProfile/10040403333) State DESTROY
  392. 2023-08-14 11:38:50.034211 98.80% [DEBUG] mod_sofia.c:379 sofia/PKsipProfile/10040403333 SOFIA DESTROY
  393. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:175 sofia/PKsipProfile/10040403333 Standard DESTROY
  394. 2023-08-14 11:38:50.034211 98.80% [DEBUG] switch_core_state_machine.c:745 (sofia/PKsipProfile/10040403333) State DESTROY going to sleep
  395. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:168 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard REPORTING, cause: NORMAL_UNSPECIFIED
  396. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:932 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State REPORTING going to sleep
  397. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:607 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State Change CS_REPORTING -> CS_DESTROY
  398. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_session.c:1743 Session 7 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Locked, Waiting on external entities
  399. 2023-08-14 11:38:50.054214 98.80% [NOTICE] switch_core_session.c:1761 Session 7 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Ended
  400. 2023-08-14 11:38:50.054214 98.80% [NOTICE] switch_core_session.c:1765 Close Channel sofia/PKsipProfile/9084093664@13.232.246.166:5078 [CS_DESTROY]
  401. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:735 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) Running State Change CS_DESTROY (Cur 0 Tot 8)
  402. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:745 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State DESTROY
  403. 2023-08-14 11:38:50.054214 98.80% [DEBUG] mod_sofia.c:379 sofia/PKsipProfile/9084093664@13.232.246.166:5078 SOFIA DESTROY
  404. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:175 sofia/PKsipProfile/9084093664@13.232.246.166:5078 Standard DESTROY
  405. 2023-08-14 11:38:50.054214 98.80% [DEBUG] switch_core_state_machine.c:745 (sofia/PKsipProfile/9084093664@13.232.246.166:5078) State DESTROY going to sleep
  406. freeswitch@172.31.38.83> /exit
  407.  
  408. You have new mail in /var/mail/root
  409. root@172:/home/admin#