From Prashant Kumar , 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2021-07-07 05:52:35.172307 [NOTICE] switch_channel.c:1118 New Channel sofia/default/5144668937@entdemo.astppbilling.org:5077 [922baf4c-afda-4e1a-a248-89461052b433]
  2. 2021-07-07 05:52:35.172307 [DEBUG] switch_core_state_machine.c:585 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Running State Change CS_NEW (Cur 1 Tot 2424)
  3. 2021-07-07 05:52:35.172307 [DEBUG] sofia.c:10280 sofia/default/5144668937@entdemo.astppbilling.org:5077 receiving invite from 117.247.91.162:51158 version: 1.10.5 -release-17-25569c1631 64bit
  4. 2021-07-07 05:52:35.172307 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  5. 2021-07-07 05:52:35.172307 [DEBUG] sofia.c:2434 detaching session 922baf4c-afda-4e1a-a248-89461052b433
  6. 2021-07-07 05:52:35.172307 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [310987777@entdemo.astppbilling.org] from ip 117.247.91.162
  7. 2021-07-07 05:52:35.172307 [DEBUG] switch_core_state_machine.c:604 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State NEW
  8. 2021-07-07 05:52:35.512320 [DEBUG] sofia.c:2544 Re-attaching to session 922baf4c-afda-4e1a-a248-89461052b433
  9. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:10280 sofia/default/5144668937@entdemo.astppbilling.org:5077 receiving invite from 117.247.91.162:51158 version: 1.10.5 -release-17-25569c1631 64bit
  10. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  11. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:11477 Setting NAT mode based on via port
  12. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:7326 Channel sofia/default/5144668937@entdemo.astppbilling.org:5077 entering state [received][100]
  13. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:7336 Remote SDP:
  14. v=0
  15. o=Z 0 0 IN IP4 117.247.91.162
  16. s=Z
  17. c=IN IP4 117.247.91.162
  18. t=0 0
  19. m=audio 8000 RTP/AVP 3 110 8 0 97 101
  20. a=rtpmap:110 speex/8000
  21. a=rtpmap:97 iLBC/8000
  22. a=fmtp:97 mode=30
  23. a=rtpmap:101 telephone-event/8000
  24. a=fmtp:101 0-16
  25.  
  26. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  27. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  29. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  30. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  31. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  32. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  34. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  36. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  37. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  38. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  39. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/5144668937@entdemo.astppbilling.org:5077 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  40. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_codec.c:111 sofia/default/5144668937@entdemo.astppbilling.org:5077 Original read codec set to PCMA:8
  41. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  42. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_media.c:5911 sofia/default/5144668937@entdemo.astppbilling.org:5077 Set 2833 dtmf send payload to 101 recv payload to 101
  43. 2021-07-07 05:52:35.532302 [DEBUG] sofia.c:7760 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State Change CS_NEW -> CS_INIT
  44. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:585 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Running State Change CS_INIT (Cur 1 Tot 2424)
  45. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:628 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State INIT
  46. 2021-07-07 05:52:35.532302 [DEBUG] mod_sofia.c:93 sofia/default/5144668937@entdemo.astppbilling.org:5077 SOFIA INIT
  47. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:40 sofia/default/5144668937@entdemo.astppbilling.org:5077 Standard INIT
  48. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:48 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State Change CS_INIT -> CS_ROUTING
  49. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:628 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State INIT going to sleep
  50. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:585 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Running State Change CS_ROUTING (Cur 1 Tot 2424)
  51. 2021-07-07 05:52:35.532302 [DEBUG] switch_channel.c:2332 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Callstate Change DOWN -> RINGING
  52. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:644 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State ROUTING
  53. 2021-07-07 05:52:35.532302 [DEBUG] mod_sofia.c:154 sofia/default/5144668937@entdemo.astppbilling.org:5077 SOFIA ROUTING
  54. 2021-07-07 05:52:35.532302 [DEBUG] switch_core_state_machine.c:236 sofia/default/5144668937@entdemo.astppbilling.org:5077 Standard ROUTING
  55. 2021-07-07 05:52:35.532302 [INFO] mod_dialplan_xml.c:637 Processing 5144668937 <5144668937>->310987777 in context default
  56. 2021-07-07 05:52:35.552274 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  57. 2021-07-07 05:52:35.552274 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2021-07-07 05:52:35.592269 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  59. 2021-07-07 05:52:35.592269 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 310987777
  60. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '310987777' limit 1
  61. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '310987777' AND status=0 limit 1
  62. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '310987777' and status=0 LIMIT 1
  63. 2021-07-07 05:52:35.592269 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  64. 2021-07-07 05:52:35.592269 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 5144999999 / 5144999999
  65. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [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 ="310987777" LIMIT 1
  66. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="310987777"  AND domains.domain="entdemo.astppbilling.org" limit 1
  67. 2021-07-07 05:52:35.592269 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound
  68. 2021-07-07 05:52:35.592269 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 5144668937]
  69. 2021-07-07 05:52:35.592269 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "5144668937" AND deleted = 0 limit 1
  70. 2021-07-07 05:52:36.592297 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^310987777.*' OR blocked_patterns = '^31098777.*' OR blocked_patterns = '^3109877.*' OR blocked_patterns = '^310987.*' OR blocked_patterns = '^31098.*' OR blocked_patterns = '^3109.*' OR blocked_patterns = '^310.*' OR blocked_patterns = '^31.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 10 limit 1
  71. 2021-07-07 05:52:36.592297 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="310987777" AND (accountid = 0 OR status = 1) LIMIT 1
  72. 2021-07-07 05:52:36.592297 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  73. 2021-07-07 05:52:36.592297 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  74. 2021-07-07 05:52:36.592297 [DEBUG] switch_cpp.cpp:1447 [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 = '^310987777.*' OR patterns = '^31098777.*' OR patterns = '^3109877.*' OR patterns = '^310987.*' OR patterns = '^31098.*' OR patterns = '^3109.*' OR patterns = '^310.*' OR patterns = '^31.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 10 ORDER BY LENGTH(PKGPTR.patterns) DESC
  75. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [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 ="310987777" AND A.accountid = '10' limit 1
  76. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 310987777
  77. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [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 ="310987777" LIMIT 1
  78. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="310987777"  AND domains.domain="entdemo.astppbilling.org" limit 1
  79. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : outbound
  80. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '310987777' OR number = '31098777' OR number = '3109877' OR number = '310987' OR number = '31098' OR number = '3109' OR number = '310' OR number = '31' OR number = '3' OR number ='--') OR (number = '310987777*' OR number = '31098777*' OR number = '3109877*' OR number = '310987*' OR number = '31098*' OR number = '3109*' OR number = '310*' OR number = '31*' OR number = '3*' OR number ='--') OR (number = '5144999999' OR number = '514499999' OR number = '51449999' OR number = '5144999' OR number = '514499' OR number = '51449' OR number = '5144' OR number = '514' OR number = '51' OR number = '5' OR number ='--') OR (number = '5144999999*' OR number = '514499999*' OR number = '51449999*' OR number = '5144999*' OR number = '514499*' OR number = '51449*' OR number = '5144*' OR number = '514*' OR number = '51*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  81. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  82. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '310987777' OR routing_prefix = '31098777' OR routing_prefix = '3109877' OR routing_prefix = '310987' OR routing_prefix = '31098' OR routing_prefix = '3109' OR routing_prefix = '310' OR routing_prefix = '31' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  83. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  84. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 10
  85. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 5144668937
  86. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 9173.6941
  87. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  88. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 10
  89. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  90. 2021-07-07 05:52:36.612272 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  91. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  92. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  93. 2021-07-07 05:52:36.612272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  94. 2021-07-07 05:52:36.632273 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^310987777.*' OR pattern = '^31098777.*' OR pattern = '^3109877.*' OR pattern = '^310987.*' OR pattern = '^31098.*' OR pattern = '^3109.*' OR pattern = '^310.*' OR pattern = '^31.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 10 OR accountid=10)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  95. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : outbound
  96. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  97. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 27
  98. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  99. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  100. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 3.00000
  101. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment :
  102. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0
  103. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 10
  104. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID:
  105. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type:
  106. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  107. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your9173.6941 balance Accountid 10 !!!
  108. 2021-07-07 05:52:36.632273 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  109. 2021-07-07 05:52:36.632273 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 100 minutes
  110. 2021-07-07 05:52:36.632273 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :
  111. 2021-07-07 05:52:36.632273 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=10 ORDER by id asc
  112. 2021-07-07 05:52:36.632273 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,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 = '^310987777.*' OR pattern = '^31098777.*' OR pattern = '^3109877.*' OR pattern = '^310987.*' OR pattern = '^31098.*' OR pattern = '^3109.*' OR pattern = '^310.*' OR pattern = '^31.*' OR pattern = '^3.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC
  113. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information ===================
  114. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 12
  115. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^31.*
  116. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination :
  117. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  118. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0
  119. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^31.*
  120. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip :
  121. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend :
  122. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 5
  123. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : PkGateway
  124. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable :
  125. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway :
  126. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3
  127. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0
  128. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : TrunkPK
  129. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES=======================
  130. 2021-07-07 05:52:36.712283 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 10 AND status=0 LIMIT 1
  131. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 100
  132. 2021-07-07 05:52:36.712283 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  133. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  134. 2021-07-07 05:52:36.712283 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : outbound
  135. 2021-07-07 05:52:36.712283 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  136. 2021-07-07 05:52:36.732272 [DEBUG] switch_cpp.cpp:1447 [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 = 5) AND status=0 limit 1
  137. 2021-07-07 05:52:36.732272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  138. 2021-07-07 05:52:36.732272 [DEBUG] switch_cpp.cpp:1447 [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 ="310987777" LIMIT 1
  139. 2021-07-07 05:52:36.732272 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  140. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  141. <document type="freeswitch/xml">
  142. <section name="dialplan" description="ASTPP Dialplan">
  143. <context name="default">
  144. <extension name="310987777">
  145. <condition field="destination_number" expression="310987777">
  146. <action application="set" data="effective_destination_number=310987777"/>
  147. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  148. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  149. <action application="set" data="callstart=2021-07-07 05:52:36"/>
  150. <action application="set" data="hangup_after_bridge=true"/>
  151. <action application="set" data="continue_on_fail=TRUE"/>
  152. <action application="set" data="account_id=10"/>
  153. <action application="set" data="parent_id=0"/>
  154. <action application="set" data="entity_id=0"/>
  155. <action application="set" data="call_processed=internal"/>
  156. <action application="set" data="call_direction=outbound"/>
  157. <action application="set" data="accountname=default"/>
  158. <action application="set" data="filename1=astpp.pbx.lua"/>
  159. <action application="set" data="origination_rates=ID:27|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:1|INITIALBLOCK:1|RATEGROUP:10|MARKUP:0|CI:0|ACCID:10"/>
  160. <action application="set" data="original_caller_id_name=Force caller"/>
  161. <action application="set" data="original_caller_id_number=18001802222"/>
  162. <action application="limit" data="db 5144668937 user_5144668937 6 "/>
  163.  
  164. <action application="set" data="effective_caller_id_name=Force caller"/>
  165. <action application="set" data="effective_caller_id_number=18001802222"/>
  166. <action application="set" data="calltype=STANDARD"/>
  167. <action application="set" data="termination_rates=ID:12|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:5|PROVIDER:3"/>
  168. <action application="set" data="trunk_id=5"/>
  169. <action application="set" data="provider_id=3"/>
  170. <action application="set" data="rate_flag=0"/>
  171. <action application="set" data="force_trunk_flag=0"/>
  172. <action application="export" data="presence_data=trunk_id=5"/>
  173. <action application="set" data="intcall=0"/>
  174. <action application="export" data="presence_id=310987777"/>
  175. <action application="export" data="presence_data=x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162"/>
  176. <action application="bridge" data="[leg_timeout=0]sofia/gateway/PkGateway/310987777"/>
  177. </condition>
  178. </extension>
  179. </context>
  180. </section>
  181. </document>
  182. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 parsing [default->310987777] continue=false
  183. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Regex (PASS) [310987777] destination_number(310987777) =~ /310987777/ break=on-false
  184. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(effective_destination_number=310987777)
  185. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  186. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  187. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(callstart=2021-07-07 05:52:36)
  188. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(hangup_after_bridge=true)
  189. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(continue_on_fail=TRUE)
  190. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(account_id=10)
  191. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(parent_id=0)
  192. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(entity_id=0)
  193. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(call_processed=internal)
  194. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(call_direction=outbound)
  195. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(accountname=default)
  196. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(filename1=astpp.pbx.lua)
  197. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(origination_rates=ID:27|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:1|INITIALBLOCK:1|RATEGROUP:10|MARKUP:0|CI:0|ACCID:10)
  198. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(original_caller_id_name=Force caller)
  199. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(original_caller_id_number=18001802222)
  200. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action limit(db 5144668937 user_5144668937 6 )
  201. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(effective_caller_id_name=Force caller)
  202. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(effective_caller_id_number=18001802222)
  203. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(calltype=STANDARD)
  204. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(termination_rates=ID:12|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:5|PROVIDER:3)
  205. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(trunk_id=5)
  206. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(provider_id=3)
  207. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(rate_flag=0)
  208. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(force_trunk_flag=0)
  209. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action export(presence_data=trunk_id=5)
  210. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action set(intcall=0)
  211. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action export(presence_id=310987777)
  212. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action export(presence_data=x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162)
  213. Dialplan: sofia/default/5144668937@entdemo.astppbilling.org:5077 Action bridge([leg_timeout=0]sofia/gateway/PkGateway/310987777)
  214. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:287 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State Change CS_ROUTING -> CS_EXECUTE
  215. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:644 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State ROUTING going to sleep
  216. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Running State Change CS_EXECUTE (Cur 1 Tot 2424)
  217. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:651 (sofia/default/5144668937@entdemo.astppbilling.org:5077) State EXECUTE
  218. 2021-07-07 05:52:36.732272 [DEBUG] mod_sofia.c:209 sofia/default/5144668937@entdemo.astppbilling.org:5077 SOFIA EXECUTE
  219. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:329 sofia/default/5144668937@entdemo.astppbilling.org:5077 Standard EXECUTE
  220. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(effective_destination_number=310987777)
  221. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [effective_destination_number]=[310987777]
  222. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(bridge_pre_execute_bleg_app=sched_hangup)
  223. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [bridge_pre_execute_bleg_app]=[sched_hangup]
  224. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  225. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  226. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(callstart=2021-07-07 05:52:36)
  227. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [callstart]=[2021-07-07 05:52:36]
  228. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(hangup_after_bridge=true)
  229. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [hangup_after_bridge]=[true]
  230. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(continue_on_fail=TRUE)
  231. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [continue_on_fail]=[TRUE]
  232. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(account_id=10)
  233. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [account_id]=[10]
  234. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(parent_id=0)
  235. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [parent_id]=[0]
  236. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(entity_id=0)
  237. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [entity_id]=[0]
  238. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(call_processed=internal)
  239. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [call_processed]=[internal]
  240. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(call_direction=outbound)
  241. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [call_direction]=[outbound]
  242. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(accountname=default)
  243. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [accountname]=[default]
  244. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(filename1=astpp.pbx.lua)
  245. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [filename1]=[astpp.pbx.lua]
  246. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(origination_rates=ID:27|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:1|INITIALBLOCK:1|RATEGROUP:10|MARKUP:0|CI:0|ACCID:10)
  247. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [origination_rates]=[ID:27|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:1|INITIALBLOCK:1|RATEGROUP:10|MARKUP:0|CI:0|ACCID:10]
  248. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(original_caller_id_name=Force caller)
  249. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [original_caller_id_name]=[Force caller]
  250. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(original_caller_id_number=18001802222)
  251. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [original_caller_id_number]=[18001802222]
  252. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 limit(db 5144668937 user_5144668937 6 )
  253. 2021-07-07 05:52:36.732272 [DEBUG] switch_limit.c:124 incr called: 5144668937_user_5144668937 max:6, interval:0
  254. 2021-07-07 05:52:36.732272 [DEBUG] mod_db.c:194 Usage for 5144668937_user_5144668937 is now 1/6
  255. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(effective_caller_id_name=Force caller)
  256. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [effective_caller_id_name]=[Force caller]
  257. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(effective_caller_id_number=18001802222)
  258. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [effective_caller_id_number]=[18001802222]
  259. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(calltype=STANDARD)
  260. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [calltype]=[STANDARD]
  261. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(termination_rates=ID:12|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:5|PROVIDER:3)
  262. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [termination_rates]=[ID:12|CODE:^31.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:5|PROVIDER:3]
  263. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(trunk_id=5)
  264. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [trunk_id]=[5]
  265. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(provider_id=3)
  266. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [provider_id]=[3]
  267. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(rate_flag=0)
  268. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [rate_flag]=[0]
  269. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(force_trunk_flag=0)
  270. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [force_trunk_flag]=[0]
  271. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 export(presence_data=trunk_id=5)
  272. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  273. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 set(intcall=0)
  274. 2021-07-07 05:52:36.732272 [DEBUG] mod_dptools.c:1672 SET sofia/default/5144668937@entdemo.astppbilling.org:5077 [intcall]=[0]
  275. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 export(presence_id=310987777)
  276. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_id]=[310987777]
  277. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 export(presence_data=x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162)
  278. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162]
  279. EXECUTE [depth=0] sofia/default/5144668937@entdemo.astppbilling.org:5077 bridge([leg_timeout=0]sofia/gateway/PkGateway/310987777)
  280. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1264 sofia/default/5144668937@entdemo.astppbilling.org:5077 EXPORTING[export_vars] [presence_data]=[x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162] to event
  281. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1264 sofia/default/5144668937@entdemo.astppbilling.org:5077 EXPORTING[export_vars] [presence_id]=[310987777] to event
  282. 2021-07-07 05:52:36.732272 [DEBUG] switch_channel.c:1264 sofia/default/5144668937@entdemo.astppbilling.org:5077 EXPORTING[export_vars] [presence_data]=[x|||Pk(5144668937)|||^31.* //  // 3.00000 // trunk_id=|||TrunkPK // ^31.* //  // 1.00000 // trunk_id=5|||STD|||117.247.91.162] to event
  283. 2021-07-07 05:52:36.732272 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  284. 2021-07-07 05:52:36.732272 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  285. 2021-07-07 05:52:36.732272 [NOTICE] switch_channel.c:1118 New Channel sofia/default/310987777 [a8c98290-f396-48e5-bb4f-cf67dcc31d66]
  286. 2021-07-07 05:52:36.732272 [DEBUG] mod_sofia.c:5089 (sofia/default/310987777) State Change CS_NEW -> CS_INIT
  287. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/310987777) Running State Change CS_INIT (Cur 2 Tot 2425)
  288. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:628 (sofia/default/310987777) State INIT
  289. 2021-07-07 05:52:36.732272 [DEBUG] mod_sofia.c:93 sofia/default/310987777 SOFIA INIT
  290. 2021-07-07 05:52:36.732272 [DEBUG] sofia_glue.c:1618 sofia/default/310987777 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  291. Local SDP:
  292. v=0
  293. o=FreeSWITCH 1625597868 1625597869 IN IP4 46.101.114.158
  294. s=FreeSWITCH
  295. c=IN IP4 46.101.114.158
  296. t=0 0
  297. m=audio 39288 RTP/AVP 8 101
  298. a=rtpmap:8 PCMA/8000
  299. a=rtpmap:101 telephone-event/8000
  300. a=fmtp:101 0-16
  301. a=ptime:20
  302. a=sendrecv
  303.  
  304. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:40 sofia/default/310987777 Standard INIT
  305. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:48 (sofia/default/310987777) State Change CS_INIT -> CS_ROUTING
  306. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:628 (sofia/default/310987777) State INIT going to sleep
  307. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/310987777) Running State Change CS_ROUTING (Cur 2 Tot 2425)
  308. 2021-07-07 05:52:36.732272 [DEBUG] sofia.c:7326 Channel sofia/default/310987777 entering state [calling][0]
  309. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:644 (sofia/default/310987777) State ROUTING
  310. 2021-07-07 05:52:36.732272 [DEBUG] mod_sofia.c:154 sofia/default/310987777 SOFIA ROUTING
  311. 2021-07-07 05:52:36.732272 [DEBUG] switch_ivr_originate.c:67 (sofia/default/310987777) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  312. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:644 (sofia/default/310987777) State ROUTING going to sleep
  313. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/310987777) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 2425)
  314. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:663 (sofia/default/310987777) State CONSUME_MEDIA
  315. 2021-07-07 05:52:36.732272 [DEBUG] switch_core_state_machine.c:663 (sofia/default/310987777) State CONSUME_MEDIA going to sleep
  316. 2021-07-07 05:52:36.832275 [DEBUG] sofia.c:7326 Channel sofia/default/310987777 entering state [completing][200]
  317. 2021-07-07 05:52:36.832275 [DEBUG] sofia.c:7336 Remote SDP:
  318. v=0
  319. o=root 160053488 160053488 IN IP4 159.203.131.36
  320. s=Asterisk PBX 16.4.0
  321. c=IN IP4 159.203.131.36
  322. t=0 0
  323. m=audio 16460 RTP/AVP 8 101
  324. a=rtpmap:8 PCMA/8000
  325. a=rtpmap:101 telephone-event/8000
  326. a=fmtp:101 0-16
  327. a=maxptime:150
  328.  
  329. 2021-07-07 05:52:36.832275 [DEBUG] sofia.c:7326 Channel sofia/default/310987777 entering state [ready][200]
  330. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  331. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  332. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  333. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/310987777 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  334. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_codec.c:111 sofia/default/310987777 Original read codec set to PCMA:8
  335. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  336. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:5911 sofia/default/310987777 Set 2833 dtmf send payload to 101 recv payload to 101
  337. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/310987777] 46.101.114.158 port 39288 -> 159.203.131.36 port 16460 codec: 8 ms: 20
  338. 2021-07-07 05:52:36.832275 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  339. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8977 sofia/default/310987777 Set 2833 dtmf send payload to 101
  340. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8984 sofia/default/310987777 Set 2833 dtmf receive payload to 101
  341. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:9007 sofia/default/310987777 Set rtp dtmf delay to 40
  342. 2021-07-07 05:52:36.832275 [NOTICE] sofia.c:8504 Channel [sofia/default/310987777] has been answered
  343. 2021-07-07 05:52:36.832275 [DEBUG] switch_channel.c:3865 (sofia/default/310987777) Callstate Change DOWN -> ACTIVE
  344. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/5144668937@entdemo.astppbilling.org:5077] 46.101.114.158 port 25692 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  345. 2021-07-07 05:52:36.832275 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  346. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8977 sofia/default/5144668937@entdemo.astppbilling.org:5077 Set 2833 dtmf send payload to 101
  347. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:8984 sofia/default/5144668937@entdemo.astppbilling.org:5077 Set 2833 dtmf receive payload to 101
  348. 2021-07-07 05:52:36.832275 [DEBUG] switch_core_media.c:9007 sofia/default/5144668937@entdemo.astppbilling.org:5077 Set rtp dtmf delay to 40
  349. 2021-07-07 05:52:36.832275 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/5144668937@entdemo.astppbilling.org:5077:
  350. v=0
  351. o=FreeSWITCH 1625611464 1625611465 IN IP4 46.101.114.158
  352. s=FreeSWITCH
  353. c=IN IP4 46.101.114.158
  354. t=0 0
  355. m=audio 25692 RTP/AVP 8 101
  356. a=rtpmap:8 PCMA/8000
  357. a=rtpmap:101 telephone-event/8000
  358. a=fmtp:101 0-16
  359. a=ptime:20
  360. a=sendrecv
  361.  
  362. 2021-07-07 05:52:36.832275 [DEBUG] sofia.c:7326 Channel sofia/default/5144668937@entdemo.astppbilling.org:5077 entering state [completed][200]
  363. 2021-07-07 05:52:36.832275 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/5144668937@entdemo.astppbilling.org:5077] has been answered
  364. 2021-07-07 05:52:36.832275 [DEBUG] switch_channel.c:3865 (sofia/default/5144668937@entdemo.astppbilling.org:5077) Callstate Change RINGING -> ACTIVE
  365. 2021-07-07 05:52:36.832275 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/310987777]
  366. 2021-07-07 05:52:36.852270 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/310987777) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  367. 2021-07-07 05:52:36.852270 [DEBUG] switch_core_state_machine.c:585 (sofia/default/310987777) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 2425)
  368. 2021-07-07 05:52:36.852270 [DEBUG] switch_core_state_machine.c:654 (sofia/default/310987777) State EXCHANGE_MEDIA
  369. 2021-07-07 05:52:36.852270 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  370. 2021-07-07 05:52:36.992284 [DEBUG] sofia.c:7326 Channel sofia/default/5144668937@entdemo.astppbilling.org:5077 entering state [ready][200]
  371. 2021-07-07 05:52:37.032313 [DEBUG] switch_ivr_bridge.c:655 sofia/default/310987777 Bridge execute app sched_hangup(+6000 normal_clearing)
  372. 2021-07-07 05:52:37.052295 [DEBUG] switch_ivr.c:632 sofia/default/310987777 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
  373. EXECUTE [depth=0] sofia/default/310987777 sched_hangup(+6000 normal_clearing)
  374. 2021-07-07 05:52:37.052295 [DEBUG] switch_scheduler.c:252 Added task 29 switch_ivr_schedule_hangup (a8c98290-f396-48e5-bb4f-cf67dcc31d66) to run at 1625643157
  375. 2021-07-07 05:52:37.172275 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  376. 2021-07-07 05:52:37.292280 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  377.