From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and Reseller time Demand Priority based charge
  1. freeswitch@ip-172-31-14-218>
  2. freeswitch@ip-172-31-14-218>
  3. freeswitch@ip-172-31-14-218>
  4. 2022-04-01 13:55:32.652050 97.90% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9436051259@w07version61.astppbilling.org] from ip 117.247.91.162
  5. 2022-04-01 13:57:43.092133 98.87% [NOTICE] switch_channel.c:1123 New Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 [4e788e94-3997-4065-b37d-d1d5347eae99]
  6. 2022-04-01 13:57:43.092133 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_NEW (Cur 1 Tot 26)
  7. 2022-04-01 13:57:43.092133 98.87% [INFO] sofia.c:10462 sofia/default/9436051259@w07version61.astppbilling.org:5074 receiving invite from 117.247.91.162:50655 version: 1.10.7 -release-19-883d2cb662 64bit call-id: ZTExZDJmNDQwZmFkNmQwODU3ZjIxNmVhYmNhZGY5Y2I.
  8. 2022-04-01 13:57:43.092133 98.87% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  9. 2022-04-01 13:57:43.092133 98.87% [DEBUG] sofia.c:2419 detaching session 4e788e94-3997-4065-b37d-d1d5347eae99
  10. 2022-04-01 13:57:43.092133 98.87% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [104005005@w07version61.astppbilling.org] from ip 117.247.91.162
  11. 2022-04-01 13:57:43.092133 98.87% [DEBUG] switch_core_state_machine.c:600 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State NEW
  12. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:2532 Re-attaching to session 4e788e94-3997-4065-b37d-d1d5347eae99
  13. 2022-04-01 13:57:43.212041 98.87% [INFO] sofia.c:10462 sofia/default/9436051259@w07version61.astppbilling.org:5074 receiving invite from 117.247.91.162:50655 version: 1.10.7 -release-19-883d2cb662 64bit call-id: ZTExZDJmNDQwZmFkNmQwODU3ZjIxNmVhYmNhZGY5Y2I.
  14. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  15. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  16. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 entering state [received][100]
  17. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:7509 Remote SDP:
  18. v=0
  19. o=3cxVCE 131153280 230481150 IN IP4 192.168.1.13
  20. s=3cxVCE Audio Call
  21. c=IN IP4 192.168.1.13
  22. t=0 0
  23. m=audio 40024 RTP/AVP 0 8 3 101
  24. a=rtpmap:0 PCMU/8000
  25. a=rtpmap:8 PCMA/8000
  26. a=rtpmap:3 GSM/8000
  27. a=rtpmap:101 telephone-event/8000
  28. a=fmtp:101 0-15
  29. a=ptime:20
  30. m=video 40022 RTP/AVP 34
  31. c=IN IP4 192.168.1.13
  32. a=rtpmap:34 H263/90000
  33. a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1
  34.  
  35. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  36. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  37. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  38. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  39. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  40. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  41. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  42. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  43. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  44. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/9436051259@w07version61.astppbilling.org:5074 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  45. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_codec.c:111 sofia/default/9436051259@w07version61.astppbilling.org:5074 Original read codec set to PCMU:0
  46. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  47. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:5973 sofia/default/9436051259@w07version61.astppbilling.org:5074 Set 2833 dtmf send payload to 101 recv payload to 101
  48. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:6301 No matches with FTMP, fallback to ignoring FMTP
  49. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_media.c:6309 No matches with inherit_codec, fallback to ignoring PT
  50. 2022-04-01 13:57:43.212041 98.87% [DEBUG] sofia.c:7933 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State Change CS_NEW -> CS_INIT
  51. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_INIT (Cur 1 Tot 26)
  52. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State INIT
  53. 2022-04-01 13:57:43.212041 98.87% [DEBUG] mod_sofia.c:97 sofia/default/9436051259@w07version61.astppbilling.org:5074 SOFIA INIT
  54. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:40 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard INIT
  55. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:48 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State Change CS_INIT -> CS_ROUTING
  56. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State INIT going to sleep
  57. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_ROUTING (Cur 1 Tot 26)
  58. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_channel.c:2380 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Callstate Change DOWN -> RINGING
  59. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State ROUTING
  60. 2022-04-01 13:57:43.212041 98.87% [DEBUG] mod_sofia.c:158 sofia/default/9436051259@w07version61.astppbilling.org:5074 SOFIA ROUTING
  61. 2022-04-01 13:57:43.212041 98.87% [DEBUG] switch_core_state_machine.c:230 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard ROUTING
  62. 2022-04-01 13:57:43.212041 98.87% [INFO] mod_dialplan_xml.c:639 Processing 9436051259 <9436051259>->104005005 in context default
  63. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes','interconnect_code')
  64. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  65. 2022-04-01 13:57:43.232091 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  66. 2022-04-01 13:57:43.232091 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 104005005
  67. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '104005005' limit 1
  68. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '104005005' AND status=0 limit 1
  69. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '104005005' and status=0 LIMIT 1
  70. 2022-04-01 13:57:43.232091 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9436051259
  71. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  72. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'w07version61.astppbilling.org' limit 1
  73. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '5' and username = '104005005' limit 1
  74. 2022-04-01 13:57:43.232091 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9436051259 / 9436051259
  75. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 005005
  76. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 104 AND status=0 limit 1
  77. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="104005005" LIMIT 1
  78. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  79. 2022-04-01 13:57:43.232091 98.87% [DEBUG] switch_cpp.cpp:1465 [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,sip_devices.codec as sip_codec 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="104005005"  AND domains.domain="w07version61.astppbilling.org" limit 1
  80. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  81. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9436051259]
  82. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9436051259" AND deleted = 0 limit 1
  83. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^104005005.*' OR blocked_patterns = '^10400500.*' OR blocked_patterns = '^1040050.*' OR blocked_patterns = '^104005.*' OR blocked_patterns = '^10400.*' OR blocked_patterns = '^1040.*' OR blocked_patterns = '^104.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 5 limit 1
  84. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="104005005" AND (accountid = 0 OR status = 1) LIMIT 1
  85. 2022-04-01 13:57:43.252135 98.87% [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 P.is_terminated = 0 AND (patterns = '^104005005.*' OR patterns = '^10400500.*' OR patterns = '^1040050.*' OR patterns = '^104005.*' OR patterns = '^10400.*' OR patterns = '^1040.*' OR patterns = '^104.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 5 ORDER BY LENGTH(PKGPTR.patterns) DESC
  86. 2022-04-01 13:57:43.252135 98.87% [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 ="104005005" AND A.accountid = '5' limit 1
  87. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 104005005
  88. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="104005005" LIMIT 1
  89. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  90. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [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,sip_devices.codec as sip_codec 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="104005005"  AND domains.domain="w07version61.astppbilling.org" limit 1
  91. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  92. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '104005005' OR number = '10400500' OR number = '1040050' OR number = '104005' OR number = '10400' OR number = '1040' OR number = '104' OR number = '10' OR number = '1' OR number ='--') OR (number = '104005005*' OR number = '10400500*' OR number = '1040050*' OR number = '104005*' OR number = '10400*' OR number = '1040*' OR number = '104*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '9436051259' OR number = '943605125' OR number = '94360512' OR number = '9436051' OR number = '943605' OR number = '94360' OR number = '9436' OR number = '943' OR number = '94' OR number = '9' OR number ='--') OR (number = '9436051259*' OR number = '943605125*' OR number = '94360512*' OR number = '9436051*' OR number = '943605*' OR number = '94360*' OR number = '9436*' OR number = '943*' OR number = '94*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  93. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  94. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '104005005' OR routing_prefix = '10400500' OR routing_prefix = '1040050' OR routing_prefix = '104005' OR routing_prefix = '10400' OR routing_prefix = '1040' OR routing_prefix = '104' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 4 limit 1
  95. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  96. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 5
  97. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9436051259
  98. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 1982
  99. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  100. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 3
  101. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  102. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  103. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  104. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  105. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  106. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^104005005.*' OR pattern = '^10400500.*' OR pattern = '^1040050.*' OR pattern = '^104005.*' OR pattern = '^10400.*' OR pattern = '^1040.*' OR pattern = '^104.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^9436051259.*' OR caller_id_pattern = '^943605125.*' OR caller_id_pattern = '^94360512.*' OR caller_id_pattern = '^9436051.*' OR caller_id_pattern = '^943605.*' OR caller_id_pattern = '^94360.*' OR caller_id_pattern = '^9436.*' OR caller_id_pattern = '^943.*' OR caller_id_pattern = '^94.*' OR caller_id_pattern = '^9.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 3 OR accountid=5)  ORDER BY accountid DESC,LENGTH(pattern),LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  107. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  108. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  109. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:2.00000
  110. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:3
  111. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '3' and status=0
  112. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] holiday_based_routing :
  113. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] today_date :1-4
  114. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] demand_based_condition :
  115. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_time :13.57
  116. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_wday :6
  117. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Demand based routing Match for priority :1
  118. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:3.2
  119. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  120. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 4
  121. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  122. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  123. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 3.2
  124. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Demand Based testing
  125. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  126. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 5
  127. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  128. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  129. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  130. 2022-04-01 13:57:43.252135 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your1982 balance Accountid 5 !!!
  131. 2022-04-01 13:57:43.252135 98.87% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  132. 2022-04-01 13:57:43.252135 98.87% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 4
  133. 2022-04-01 13:57:43.252135 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1
  134. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^104005005.*' OR blocked_patterns = '^10400500.*' OR blocked_patterns = '^1040050.*' OR blocked_patterns = '^104005.*' OR blocked_patterns = '^10400.*' OR blocked_patterns = '^1040.*' OR blocked_patterns = '^104.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 4 limit 1
  135. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  136. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4
  137. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9483691308
  138. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 1990.8
  139. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  140. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  141. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  142. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  143. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  144. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^104005005.*' OR pattern = '^10400500.*' OR pattern = '^1040050.*' OR pattern = '^104005.*' OR pattern = '^10400.*' OR pattern = '^1040.*' OR pattern = '^104.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^9436051259.*' OR caller_id_pattern = '^943605125.*' OR caller_id_pattern = '^94360512.*' OR caller_id_pattern = '^9436051.*' OR caller_id_pattern = '^943605.*' OR caller_id_pattern = '^94360.*' OR caller_id_pattern = '^9436.*' OR caller_id_pattern = '^943.*' OR caller_id_pattern = '^94.*' OR caller_id_pattern = '^9.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 1 OR accountid=4)  ORDER BY accountid DESC,LENGTH(pattern),LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  145. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  146. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  147. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:1.00000
  148. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:1
  149. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '1' and status=0
  150. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] holiday_based_routing :
  151. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] today_date :1-4
  152. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] today_date mday:2-1
  153. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] demand_based_condition :
  154. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_time :13.57
  155. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] current_wday :6
  156. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Demand based routing Match for priority :1
  157. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:1.3
  158. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  159. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  160. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  161. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  162. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.3
  163. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : USA
  164. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  165. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4
  166. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  167. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  168. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  169. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your1990.8 balance Accountid 4 !!!
  170. 2022-04-01 13:57:43.272098 98.87% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  171. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:4|CODE:^1.*|DESTINATION:Demand Based testing|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.2|INC:60|INITIALBLOCK:60|RATEGROUP:3|MARKUP:0|CI:0|ACCID:5||ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.3|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:4
  172. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  173. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 0
  174. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  175. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  176. 2022-04-01 13:57:43.272098 98.87% [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
  177. 2022-04-01 13:57:43.272098 98.87% [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 = '^104005005.*' OR pattern = '^10400500.*' OR pattern = '^1040050.*' OR pattern = '^104005.*' OR pattern = '^10400.*' OR pattern = '^1040.*' OR pattern = '^104.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC
  178. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  179. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  180. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^1.*
  181. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : USA
  182. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  183. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  184. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^1.*
  185. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  186. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  187. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 1
  188. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : YourProvider
  189. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  190. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  191. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  192. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  193. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : YourTrunk
  194. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  195. 2022-04-01 13:57:43.272098 98.87% [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 = 5 AND status=0 LIMIT 1
  196. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  197. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  198. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  199. 2022-04-01 13:57:43.272098 98.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : outbound
  200. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  201. 2022-04-01 13:57:43.272098 98.87% [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 accounts where id = 3) AND status=0 limit 1
  202. 2022-04-01 13:57:43.272098 98.87% [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
  203. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="104005005" LIMIT 1
  204. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  205. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  206. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  207. <document type="freeswitch/xml">
  208. <section name="dialplan" description="ASTPP Dialplan">
  209. <context name="default">
  210. <extension name="104005005">
  211. <condition field="destination_number" expression="104005005">
  212. <action application="set" data="effective_destination_number=104005005"/>
  213. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  214. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  215. <action application="set" data="callstart=2022-04-01 13:57:43"/>
  216. <action application="set" data="hangup_after_bridge=true"/>
  217. <action application="set" data="continue_on_fail=TRUE"/>
  218. <action application="set" data="account_id=5"/>
  219. <action application="set" data="parent_id=4"/>
  220. <action application="set" data="entity_id=0"/>
  221. <action application="set" data="call_processed=internal"/>
  222. <action application="set" data="call_direction=outbound"/>
  223. <action application="set" data="accountname=default"/>
  224. <action application="set" data="origination_rates=ID:4|CODE:^1.*|DESTINATION:Demand Based testing|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.2|INC:60|INITIALBLOCK:60|RATEGROUP:3|MARKUP:0|CI:0|ACCID:5||ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.3|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:4"/>
  225. <action application="set" data="original_caller_id_name=9436051259"/>
  226. <action application="set" data="original_caller_id_number=9436051259"/>
  227.  
  228. <action application="export" data="is_recording=1"/>
  229. <action application="export" data="media_bug_answer_req=true"/>
  230. <action application="export" data="RECORD_STEREO=true"/>
  231. <action application="export" data="record_sample_rate=8000"/>
  232. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  233. <action application="set" data="effective_caller_id_name=9436051259"/>
  234. <action application="set" data="effective_caller_id_number=9436051259"/>
  235. <action application="set" data="calltype=STANDARD"/>
  236. <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"/>
  237. <action application="set" data="trunk_id=1"/>
  238. <action application="set" data="provider_id=3"/>
  239. <action application="set" data="rate_flag=0"/>
  240. <action application="set" data="force_trunk_flag=0"/>
  241. <action application="export" data="presence_data=trunk_id=1"/>
  242. <action application="set" data="intcall=0"/>
  243. <action application="export" data="presence_id=104005005"/>
  244. <action application="export" data="presence_data=x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA"/>
  245. <action application="bridge" data="{sip_cid_type=none}[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/104005005"/>
  246. </condition>
  247. </extension>
  248. </context>
  249. </section>
  250. </document>
  251. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 parsing [default->104005005] continue=false
  252. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Regex (PASS) [104005005] destination_number(104005005) =~ /104005005/ break=on-false
  253. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(effective_destination_number=104005005)
  254. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  255. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  256. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(callstart=2022-04-01 13:57:43)
  257. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(hangup_after_bridge=true)
  258. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(continue_on_fail=TRUE)
  259. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(account_id=5)
  260. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(parent_id=4)
  261. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(entity_id=0)
  262. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(call_processed=internal)
  263. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(call_direction=outbound)
  264. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(accountname=default)
  265. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(origination_rates=ID:4|CODE:^1.*|DESTINATION:Demand Based testing|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.2|INC:60|INITIALBLOCK:60|RATEGROUP:3|MARKUP:0|CI:0|ACCID:5||ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.3|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:4)
  266. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(original_caller_id_name=9436051259)
  267. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(original_caller_id_number=9436051259)
  268. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(is_recording=1)
  269. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(media_bug_answer_req=true)
  270. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(RECORD_STEREO=true)
  271. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(record_sample_rate=8000)
  272. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav)
  273. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(effective_caller_id_name=9436051259)
  274. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(effective_caller_id_number=9436051259)
  275. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(calltype=STANDARD)
  276. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 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)
  277. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(trunk_id=1)
  278. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(provider_id=3)
  279. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(rate_flag=0)
  280. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(force_trunk_flag=0)
  281. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(presence_data=trunk_id=1)
  282. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action set(intcall=0)
  283. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(presence_id=104005005)
  284. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action export(presence_data=x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA)
  285. Dialplan: sofia/default/9436051259@w07version61.astppbilling.org:5074 Action bridge({sip_cid_type=none}[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/104005005)
  286. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:281 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State Change CS_ROUTING -> CS_EXECUTE
  287. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State ROUTING going to sleep
  288. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_EXECUTE (Cur 1 Tot 26)
  289. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State EXECUTE
  290. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_sofia.c:213 sofia/default/9436051259@w07version61.astppbilling.org:5074 SOFIA EXECUTE
  291. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:323 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard EXECUTE
  292. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(effective_destination_number=104005005)
  293. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [effective_destination_number]=[104005005]
  294. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(bridge_pre_execute_bleg_app=sched_hangup)
  295. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [bridge_pre_execute_bleg_app]=[sched_hangup]
  296. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  297. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  298. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(callstart=2022-04-01 13:57:43)
  299. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [callstart]=[2022-04-01 13:57:43]
  300. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(hangup_after_bridge=true)
  301. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [hangup_after_bridge]=[true]
  302. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(continue_on_fail=TRUE)
  303. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [continue_on_fail]=[TRUE]
  304. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(account_id=5)
  305. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [account_id]=[5]
  306. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(parent_id=4)
  307. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [parent_id]=[4]
  308. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(entity_id=0)
  309. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [entity_id]=[0]
  310. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(call_processed=internal)
  311. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [call_processed]=[internal]
  312. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(call_direction=outbound)
  313. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [call_direction]=[outbound]
  314. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(accountname=default)
  315. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [accountname]=[default]
  316. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(origination_rates=ID:4|CODE:^1.*|DESTINATION:Demand Based testing|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.2|INC:60|INITIALBLOCK:60|RATEGROUP:3|MARKUP:0|CI:0|ACCID:5||ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.3|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:4)
  317. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [origination_rates]=[ID:4|CODE:^1.*|DESTINATION:Demand Based testing|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.2|INC:60|INITIALBLOCK:60|RATEGROUP:3|MARKUP:0|CI:0|ACCID:5||ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.3|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:4]
  318. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(original_caller_id_name=9436051259)
  319. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [original_caller_id_name]=[9436051259]
  320. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(original_caller_id_number=9436051259)
  321. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [original_caller_id_number]=[9436051259]
  322. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(is_recording=1)
  323. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [is_recording]=[1]
  324. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(media_bug_answer_req=true)
  325. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [media_bug_answer_req]=[true]
  326. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(RECORD_STEREO=true)
  327. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [RECORD_STEREO]=[true]
  328. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(record_sample_rate=8000)
  329. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [record_sample_rate]=[8000]
  330. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav)
  331. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav]
  332. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(effective_caller_id_name=9436051259)
  333. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [effective_caller_id_name]=[9436051259]
  334. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(effective_caller_id_number=9436051259)
  335. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [effective_caller_id_number]=[9436051259]
  336. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(calltype=STANDARD)
  337. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [calltype]=[STANDARD]
  338. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 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)
  339. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:60|INITIALBLOCK:30|TRUNK:1|PROVIDER:3]
  340. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(trunk_id=1)
  341. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [trunk_id]=[1]
  342. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(provider_id=3)
  343. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [provider_id]=[3]
  344. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(rate_flag=0)
  345. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [rate_flag]=[0]
  346. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(force_trunk_flag=0)
  347. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [force_trunk_flag]=[0]
  348. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(presence_data=trunk_id=1)
  349. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=1]
  350. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 set(intcall=0)
  351. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_dptools.c:1685 SET sofia/default/9436051259@w07version61.astppbilling.org:5074 [intcall]=[0]
  352. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(presence_id=104005005)
  353. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[104005005]
  354. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 export(presence_data=x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA)
  355. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA]
  356. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 bridge({sip_cid_type=none}[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/104005005)
  357. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [is_recording]=[1] to event
  358. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  359. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  360. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  361. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav] to event
  362. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [presence_data]=[x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA] to event
  363. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [presence_id]=[104005005] to event
  364. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_channel.c:1269 sofia/default/9436051259@w07version61.astppbilling.org:5074 EXPORTING[export_vars] [presence_data]=[x//4|||Resellers PK Cust(9436051259)|||^1.* // Demand Based testing // 3.2 |||YourTrunk // ^1.* // USA // 0.10000 // trunk_id=1|||STD|||117.247.91.162|||1.3 // ^1.* // USA] to event
  365. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  366. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  367. 2022-04-01 13:57:43.272098 98.87% [NOTICE] switch_channel.c:1123 New Channel sofia/default/104005005 [8d724a10-50a7-4ae9-9a88-eea8d83cb479]
  368. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_sofia.c:5121 (sofia/default/104005005) State Change CS_NEW -> CS_INIT
  369. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_ivr_originate.c:3151 sofia/default/104005005 Setting leg timeout to 30
  370. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_INIT (Cur 2 Tot 27)
  371. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:624 (sofia/default/104005005) State INIT
  372. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_sofia.c:97 sofia/default/104005005 SOFIA INIT
  373. 2022-04-01 13:57:43.272098 98.87% [INFO] sofia_glue.c:1651 sofia/default/104005005 sending invite call-id: (null)
  374. 2022-04-01 13:57:43.272098 98.87% [DEBUG] sofia_glue.c:1654 sofia/default/104005005 sending invite version: 1.10.7 -release-19-883d2cb662 64bit
  375. Local SDP:
  376. v=0
  377. o=FreeSWITCH 1648793507 1648793508 IN IP4 3.7.66.233
  378. s=FreeSWITCH
  379. c=IN IP4 3.7.66.233
  380. t=0 0
  381. m=audio 27956 RTP/AVP 8 18 101
  382. a=rtpmap:8 PCMA/8000
  383. a=rtpmap:18 G729/8000
  384. a=rtpmap:101 telephone-event/8000
  385. a=fmtp:101 0-15
  386. a=ptime:20
  387. a=sendrecv
  388.  
  389. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:40 sofia/default/104005005 Standard INIT
  390. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:48 (sofia/default/104005005) State Change CS_INIT -> CS_ROUTING
  391. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:624 (sofia/default/104005005) State INIT going to sleep
  392. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_ROUTING (Cur 2 Tot 27)
  393. 2022-04-01 13:57:43.272098 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/104005005 entering state [calling][0]
  394. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:640 (sofia/default/104005005) State ROUTING
  395. 2022-04-01 13:57:43.272098 98.87% [DEBUG] mod_sofia.c:158 sofia/default/104005005 SOFIA ROUTING
  396. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_ivr_originate.c:67 (sofia/default/104005005) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  397. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:640 (sofia/default/104005005) State ROUTING going to sleep
  398. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 27)
  399. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:659 (sofia/default/104005005) State CONSUME_MEDIA
  400. 2022-04-01 13:57:43.272098 98.87% [DEBUG] switch_core_state_machine.c:659 (sofia/default/104005005) State CONSUME_MEDIA going to sleep
  401. 2022-04-01 13:57:43.472127 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/104005005 entering state [completing][200]
  402. 2022-04-01 13:57:43.472127 98.87% [DEBUG] sofia.c:7509 Remote SDP:
  403. v=0
  404. o=root 992949122 992949122 IN IP4 159.203.131.36
  405. s=Asterisk PBX 16.4.0
  406. c=IN IP4 159.203.131.36
  407. t=0 0
  408. m=audio 18698 RTP/AVP 8 101
  409. a=rtpmap:8 PCMA/8000
  410. a=rtpmap:101 telephone-event/8000
  411. a=fmtp:101 0-16
  412. a=maxptime:150
  413.  
  414. 2022-04-01 13:57:43.472127 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/104005005 entering state [ready][200]
  415. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  416. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  417. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1]
  418. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  419. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/104005005 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  420. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_codec.c:111 sofia/default/104005005 Original read codec set to PCMA:8
  421. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  422. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:5973 sofia/default/104005005 Set 2833 dtmf send payload to 101 recv payload to 101
  423. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/104005005] 172.31.14.218 port 27956 -> 159.203.131.36 port 18698 codec: 8 ms: 20
  424. 2022-04-01 13:57:43.472127 98.87% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
  425. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9089 sofia/default/104005005 Set 2833 dtmf send payload to 101
  426. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9096 sofia/default/104005005 Set 2833 dtmf receive payload to 101
  427. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9119 sofia/default/104005005 Set rtp dtmf delay to 40
  428. 2022-04-01 13:57:43.492116 98.87% [NOTICE] sofia.c:8683 Channel [sofia/default/104005005] has been answered
  429. EXECUTE [depth=1] sofia/default/104005005 record_session(/var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav)
  430. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/9436051259@w07version61.astppbilling.org:5074] 172.31.14.218 port 24052 -> 192.168.1.13 port 40024 codec: 0 ms: 20
  431. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
  432. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9089 sofia/default/9436051259@w07version61.astppbilling.org:5074 Set 2833 dtmf send payload to 101
  433. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9096 sofia/default/9436051259@w07version61.astppbilling.org:5074 Set 2833 dtmf receive payload to 101
  434. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media.c:9119 sofia/default/9436051259@w07version61.astppbilling.org:5074 Set rtp dtmf delay to 40
  435. 2022-04-01 13:57:43.492116 98.87% [DEBUG] mod_sofia.c:913 Local SDP sofia/default/9436051259@w07version61.astppbilling.org:5074:
  436. v=0
  437. o=FreeSWITCH 1648797411 1648797412 IN IP4 3.7.66.233
  438. s=FreeSWITCH
  439. c=IN IP4 3.7.66.233
  440. t=0 0
  441. m=audio 24052 RTP/AVP 0 101
  442. a=rtpmap:0 PCMU/8000
  443. a=rtpmap:101 telephone-event/8000
  444. a=fmtp:101 0-15
  445. a=ptime:20
  446. a=sendrecv
  447. m=video 0 RTP/AVP 19
  448.  
  449. 2022-04-01 13:57:43.492116 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 entering state [completed][200]
  450. 2022-04-01 13:57:43.492116 98.87% [NOTICE] switch_ivr_originate.c:3834 Channel [sofia/default/9436051259@w07version61.astppbilling.org:5074] has been answered
  451. EXECUTE [depth=0] sofia/default/9436051259@w07version61.astppbilling.org:5074 record_session(/var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav)
  452. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_ivr_async.c:1503 Record session sample rate: 8000 -> 8000
  453. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media_bug.c:978 Attaching BUG to sofia/default/104005005
  454. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_channel.c:3950 (sofia/default/104005005) Callstate Change DOWN -> ACTIVE
  455. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_ivr_async.c:1503 Record session sample rate: 8000 -> 8000
  456. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_media_bug.c:978 Attaching BUG to sofia/default/9436051259@w07version61.astppbilling.org:5074
  457. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_channel.c:3950 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Callstate Change RINGING -> ACTIVE
  458. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_ivr_originate.c:3892 Originate Resulted in Success: [sofia/default/104005005] Peer UUID: 8d724a10-50a7-4ae9-9a88-eea8d83cb479
  459. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/104005005) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  460. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 27)
  461. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_core_state_machine.c:650 (sofia/default/104005005) State EXCHANGE_MEDIA
  462. 2022-04-01 13:57:43.492116 98.87% [DEBUG] mod_sofia.c:671 SOFIA EXCHANGE_MEDIA
  463. 2022-04-01 13:57:43.492116 98.87% [DEBUG] switch_ivr_async.c:1777 No silence detection configured; assuming start of speech
  464. 2022-04-01 13:57:43.512117 98.87% [DEBUG] switch_ivr_async.c:1777 No silence detection configured; assuming start of speech
  465. 2022-04-01 13:57:43.552115 98.87% [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMU:0
  466. 2022-04-01 13:57:43.632040 98.87% [DEBUG] sofia.c:7499 Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 entering state [ready][200]
  467. 2022-04-01 13:57:43.672117 98.87% [DEBUG] switch_ivr_bridge.c:655 sofia/default/104005005 Bridge execute app sched_hangup(+6000 normal_clearing)
  468. 2022-04-01 13:57:43.692113 98.87% [DEBUG] switch_ivr.c:632 sofia/default/104005005 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
  469. EXECUTE [depth=0] sofia/default/104005005 sched_hangup(+6000 normal_clearing)
  470. 2022-04-01 13:57:43.692113 98.87% [DEBUG] switch_scheduler.c:263 Added task 16 switch_ivr_schedule_hangup (8d724a10-50a7-4ae9-9a88-eea8d83cb479) to run at 1648827463
  471. 2022-04-01 13:57:43.772123 98.87% [INFO] switch_rtp.c:7894 Auto Changing audio port from 192.168.1.13:40024 to 117.247.91.162:40024
  472. 2022-04-01 13:57:43.772123 98.87% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
  473. 2022-04-01 13:57:43.772123 98.87% [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMA:8
  474. 2022-04-01 13:58:47.952117 98.40% [NOTICE] sofia.c:1065 Hangup sofia/default/9436051259@w07version61.astppbilling.org:5074 [CS_EXECUTE] [NORMAL_CLEARING]
  475. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/9436051259@w07version61.astppbilling.org:5074]
  476. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_bridge.c:820 sofia/default/9436051259@w07version61.astppbilling.org:5074 ending bridge by request from write function
  477. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/104005005]
  478. 2022-04-01 13:58:47.952117 98.40% [NOTICE] switch_ivr_bridge.c:1029 Hangup sofia/default/104005005 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  479. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_core_state_machine.c:650 (sofia/default/104005005) State EXCHANGE_MEDIA going to sleep
  480. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_HANGUP (Cur 2 Tot 27)
  481. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_async.c:1596 Stop recording file /var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav
  482. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_bridge.c:1892 sofia/default/104005005 skip receive message [UNBRIDGE] (channel is hungup already)
  483. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_bridge.c:1895 sofia/default/9436051259@w07version61.astppbilling.org:5074 skip receive message [UNBRIDGE] (channel is hungup already)
  484. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_core_session.c:2983 sofia/default/9436051259@w07version61.astppbilling.org:5074 skip receive message [PHONE_EVENT] (channel is hungup already)
  485. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State EXECUTE going to sleep
  486. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_HANGUP (Cur 2 Tot 27)
  487. 2022-04-01 13:58:47.952117 98.40% [DEBUG] switch_ivr_async.c:1596 Stop recording file /var/lib/freeswitch/recordings/4e788e94-3997-4065-b37d-d1d5347eae99.wav
  488. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_ivr_async.c:1677 Channel is hung up
  489. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_media_bug.c:1328 Removing BUG from sofia/default/9436051259@w07version61.astppbilling.org:5074
  490. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:844 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Callstate Change ACTIVE -> HANGUP
  491. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State HANGUP
  492. 2022-04-01 13:58:47.972102 98.40% [DEBUG] mod_sofia.c:468 Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 hanging up, cause: NORMAL_CLEARING
  493. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:59 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard HANGUP, cause: NORMAL_CLEARING
  494. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State HANGUP going to sleep
  495. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:616 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State Change CS_HANGUP -> CS_REPORTING
  496. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_REPORTING (Cur 2 Tot 27)
  497. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State REPORTING
  498. 2022-04-01 13:58:47.972102 98.40% [INFO] mod_json_cdr.c:271 Process [4e788e94-3997-4065-b37d-d1d5347eae99.cdr.json]
  499. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_ivr_async.c:1677 Channel is hung up
  500. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_media_bug.c:1328 Removing BUG from sofia/default/104005005
  501. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:844 (sofia/default/104005005) Callstate Change ACTIVE -> HANGUP
  502. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/104005005) State HANGUP
  503. 2022-04-01 13:58:47.972102 98.40% [DEBUG] mod_sofia.c:462 sofia/default/104005005 Overriding SIP cause 480 with 200 from the other leg
  504. 2022-04-01 13:58:47.972102 98.40% [DEBUG] mod_sofia.c:468 Channel sofia/default/104005005 hanging up, cause: NORMAL_CLEARING
  505. 2022-04-01 13:58:47.972102 98.40% [DEBUG] mod_sofia.c:522 Sending BYE to sofia/default/104005005
  506. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:59 sofia/default/104005005 Standard HANGUP, cause: NORMAL_CLEARING
  507. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/104005005) State HANGUP going to sleep
  508. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:616 (sofia/default/104005005) State Change CS_HANGUP -> CS_REPORTING
  509. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/104005005) Running State Change CS_REPORTING (Cur 2 Tot 27)
  510. 2022-04-01 13:58:47.972102 98.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/104005005) State REPORTING
  511. 2022-04-01 13:58:47.972102 98.40% [INFO] mod_json_cdr.c:271 Process [8d724a10-50a7-4ae9-9a88-eea8d83cb479.cdr.json]
  512. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:168 sofia/default/104005005 Standard REPORTING, cause: NORMAL_CLEARING
  513. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/104005005) State REPORTING going to sleep
  514. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:607 (sofia/default/104005005) State Change CS_REPORTING -> CS_DESTROY
  515. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_session.c:1753 Session 27 (sofia/default/104005005) Locked, Waiting on external entities
  516. 2022-04-01 13:58:47.992101 98.40% [NOTICE] switch_core_session.c:1771 Session 27 (sofia/default/104005005) Ended
  517. 2022-04-01 13:58:47.992101 98.40% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/104005005 [CS_DESTROY]
  518. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:735 (sofia/default/104005005) Running State Change CS_DESTROY (Cur 1 Tot 27)
  519. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/104005005) State DESTROY
  520. 2022-04-01 13:58:47.992101 98.40% [DEBUG] mod_sofia.c:379 sofia/default/104005005 SOFIA DESTROY
  521. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:175 sofia/default/104005005 Standard DESTROY
  522. 2022-04-01 13:58:47.992101 98.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/104005005) State DESTROY going to sleep
  523. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:168 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard REPORTING, cause: NORMAL_CLEARING
  524. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State REPORTING going to sleep
  525. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:607 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State Change CS_REPORTING -> CS_DESTROY
  526. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_session.c:1753 Session 26 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Locked, Waiting on external entities
  527. 2022-04-01 13:58:48.032119 98.40% [NOTICE] switch_core_session.c:1771 Session 26 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Ended
  528. 2022-04-01 13:58:48.032119 98.40% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/9436051259@w07version61.astppbilling.org:5074 [CS_DESTROY]
  529. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:735 (sofia/default/9436051259@w07version61.astppbilling.org:5074) Running State Change CS_DESTROY (Cur 0 Tot 27)
  530. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State DESTROY
  531. 2022-04-01 13:58:48.032119 98.40% [DEBUG] mod_sofia.c:379 sofia/default/9436051259@w07version61.astppbilling.org:5074 SOFIA DESTROY
  532. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:175 sofia/default/9436051259@w07version61.astppbilling.org:5074 Standard DESTROY
  533. 2022-04-01 13:58:48.032119 98.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9436051259@w07version61.astppbilling.org:5074) State DESTROY going to sleep
  534. 2022-04-01 13:58:48.212136 98.40% [DEBUG] switch_scheduler.c:147 Deleting task 16 switch_ivr_schedule_hangup (8d724a10-50a7-4ae9-9a88-eea8d83cb479)
  535. freeswitch@ip-172-31-14-218>
  536.