From Prashant Kumar, 4 Months ago, written in FreeSWITCH.
- view diff
Embed
  1.  
  2. Type /help <enter> to see a list of commands
  3.  
  4.  
  5.  
  6. +OK log level  [7]
  7. freeswitch@ip-172-31-0-164>
  8. freeswitch@ip-172-31-0-164>
  9. freeswitch@ip-172-31-0-164>
  10. 2023-12-28 08:26:59.610988 61.60% [NOTICE] switch_channel.c:1142 New Channel sofia/default/5307724506@pk1betav602.astppbilling.org:5065 [38d670ba-5e18-4997-9df5-43dae8e5e706]
  11. 2023-12-28 08:26:59.610988 61.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_NEW (Cur 1 Tot 53)
  12. 2023-12-28 08:26:59.610988 61.60% [INFO] sofia.c:10459 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 receiving invite from 223.228.229.209:50952 version: 1.10.10-release  64bit call-id: ZWQ1MWE2OWU5NjNlYzUxZmZjN2U3ODdiNzkyMzljODQ.
  13. 2023-12-28 08:26:59.610988 61.60% [DEBUG] sofia.c:10553 verifying acl "default" for ip/port 223.228.229.209:0.
  14. 2023-12-28 08:26:59.610988 61.60% [DEBUG] sofia.c:2419 detaching session 38d670ba-5e18-4997-9df5-43dae8e5e706
  15. 2023-12-28 08:26:59.610988 61.60% [WARNING] sofia_reg.c:1842 SIP auth challenge (INVITE) on sofia profile 'default' for [13003030303@pk1betav602.astppbilling.org] from ip 223.228.229.209
  16. 2023-12-28 08:26:59.610988 61.60% [DEBUG] switch_core_state_machine.c:600 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State NEW
  17. 2023-12-28 08:27:00.168900 61.43% [DEBUG] sofia.c:2532 Re-attaching to session 38d670ba-5e18-4997-9df5-43dae8e5e706
  18. 2023-12-28 08:27:00.182945 61.43% [INFO] sofia.c:10459 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 receiving invite from 223.228.229.209:50952 version: 1.10.10-release  64bit call-id: ZWQ1MWE2OWU5NjNlYzUxZmZjN2U3ODdiNzkyMzljODQ.
  19. 2023-12-28 08:27:00.182945 61.43% [DEBUG] sofia.c:10553 verifying acl "default" for ip/port 223.228.229.209:0.
  20. 2023-12-28 08:27:00.261041 61.43% [DEBUG] sofia.c:11674 Setting NAT mode based on via received
  21. 2023-12-28 08:27:00.261041 61.43% [DEBUG] sofia.c:7493 Channel sofia/default/5307724506@pk1betav602.astppbilling.org:5065 entering state [received][100]
  22. 2023-12-28 08:27:00.261041 61.43% [DEBUG] sofia.c:7503 Remote SDP:
  23. v=0
  24. o=Z 0 0 IN IP4 223.228.229.209
  25. s=Z
  26. c=IN IP4 223.228.229.209
  27. t=0 0
  28. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  29. a=rtpmap:110 speex/8000
  30. a=rtpmap:98 iLBC/8000
  31. a=fmtp:98 mode=20
  32. a=rtpmap:101 telephone-event/8000
  33. a=fmtp:101 0-15
  34.  
  35. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  36. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  37. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  38. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  39. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  40. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  41. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  42. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  43. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  44. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  45. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  46. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  47. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
  48. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:3734 Set Codec sofia/default/5307724506@pk1betav602.astppbilling.org:5065 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  49. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_codec.c:111 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Original read codec set to PCMA:8
  50. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
  51. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_media.c:5856 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Set 2833 dtmf send payload to 101 recv payload to 101
  52. 2023-12-28 08:27:00.261041 61.43% [DEBUG] sofia.c:7927 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State Change CS_NEW -> CS_INIT
  53. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_INIT (Cur 1 Tot 53)
  54. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State INIT
  55. 2023-12-28 08:27:00.261041 61.43% [DEBUG] mod_sofia.c:97 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 SOFIA INIT
  56. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:40 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Standard INIT
  57. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:48 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State Change CS_INIT -> CS_ROUTING
  58. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State INIT going to sleep
  59. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_ROUTING (Cur 1 Tot 53)
  60. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_channel.c:2399 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Callstate Change DOWN -> RINGING
  61. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State ROUTING
  62. 2023-12-28 08:27:00.261041 61.43% [DEBUG] mod_sofia.c:158 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 SOFIA ROUTING
  63. 2023-12-28 08:27:00.261041 61.43% [DEBUG] switch_core_state_machine.c:230 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Standard ROUTING
  64. 2023-12-28 08:27:00.261041 61.43% [INFO] mod_dialplan_xml.c:639 Processing 5307724506 <5307724506>->13003030303 in context default
  65. 2023-12-28 08:27:00.393218 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  66. 2023-12-28 08:27:00.493299 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  67. 2023-12-28 08:27:00.493299 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  68. 2023-12-28 08:27:00.517292 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  69. 2023-12-28 08:27:00.621410 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  70. 2023-12-28 08:27:00.621410 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 13003030303
  71. 2023-12-28 08:27:00.621410 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '13003030303' limit 1
  72. 2023-12-28 08:27:00.661483 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  73. 2023-12-28 08:27:00.661483 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '13003030303' and status=0 LIMIT 1
  74. 2023-12-28 08:27:00.661483 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER5307724506
  75. 2023-12-28 08:27:00.661483 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  76. 2023-12-28 08:27:00.661483 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'pk1betav602.astppbilling.org' limit 1
  77. 2023-12-28 08:27:00.701563 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '13003030303' limit 1
  78. 2023-12-28 08:27:00.701563 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 5307724506 / 5307724506
  79. 2023-12-28 08:27:00.701563 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  80. 2023-12-28 08:27:00.701563 61.43% [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="13003030303"  AND domains.domain="pk1betav602.astppbilling.org" limit 1
  81. 2023-12-28 08:27:00.701563 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  82. 2023-12-28 08:27:00.701563 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 5307724506]
  83. 2023-12-28 08:27:00.701563 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "5307724506" OR id = "5307724506") AND deleted = 0 limit 1
  84. 2023-12-28 08:27:00.701563 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^13003030303.*' OR blocked_patterns = '^1300303030.*' OR blocked_patterns = '^130030303.*' OR blocked_patterns = '^13003030.*' OR blocked_patterns = '^1300303.*' OR blocked_patterns = '^130030.*' OR blocked_patterns = '^13003.*' OR blocked_patterns = '^1300.*' OR blocked_patterns = '^130.*' OR blocked_patterns = '^13.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 4 limit 1
  85. 2023-12-28 08:27:00.701563 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  86. 2023-12-28 08:27:00.701563 61.43% [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 = '^13003030303.*' OR patterns = '^1300303030.*' OR patterns = '^130030303.*' OR patterns = '^13003030.*' OR patterns = '^1300303.*' OR patterns = '^130030.*' OR patterns = '^13003.*' OR patterns = '^1300.*' OR patterns = '^130.*' OR patterns = '^13.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  87. 2023-12-28 08:27:00.741561 61.43% [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 ="13003030303" AND A.accountid = '4' limit 1
  88. 2023-12-28 08:27:00.741561 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 13003030303
  89. 2023-12-28 08:27:00.741561 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  90. 2023-12-28 08:27:00.741561 61.43% [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="13003030303"  AND domains.domain="pk1betav602.astppbilling.org" limit 1
  91. 2023-12-28 08:27:00.741561 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  92. 2023-12-28 08:27:00.781622 61.43% [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 = '13003030303' OR number = '1300303030' OR number = '130030303' OR number = '13003030' OR number = '1300303' OR number = '130030' OR number = '13003' OR number = '1300' OR number = '130' OR number = '13' OR number = '1' OR number ='--') OR (number = '13003030303*' OR number = '1300303030*' OR number = '130030303*' OR number = '13003030*' OR number = '1300303*' OR number = '130030*' OR number = '13003*' OR number = '1300*' OR number = '130*' OR number = '13*' OR number = '1*' OR number ='--') OR (number = '5307724506' OR number = '530772450' OR number = '53077245' OR number = '5307724' OR number = '530772' OR number = '53077' OR number = '5307' OR number = '530' OR number = '53' OR number = '5' OR number ='--') OR (number = '5307724506*' OR number = '530772450*' OR number = '53077245*' OR number = '5307724*' OR number = '530772*' OR number = '53077*' OR number = '5307*' OR number = '530*' OR number = '53*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  93. 2023-12-28 08:27:00.781622 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  94. 2023-12-28 08:27:00.781622 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '13003030303' OR routing_prefix = '1300303030' OR routing_prefix = '130030303' OR routing_prefix = '13003030' OR routing_prefix = '1300303' OR routing_prefix = '130030' OR routing_prefix = '13003' OR routing_prefix = '1300' OR routing_prefix = '130' OR routing_prefix = '13' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  95. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  96. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4
  97. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 5307724506
  98. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 75
  99. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  100. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  101. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  102. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  103. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  104. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::2
  105. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  106. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  107. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::2
  108. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^13003030303.*' OR pattern = '^1300303030.*' OR pattern = '^130030303.*' OR pattern = '^13003030.*' OR pattern = '^1300303.*' OR pattern = '^130030.*' OR pattern = '^13003.*' OR pattern = '^1300.*' OR pattern = '^130.*' OR pattern = '^13.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^5307724506.*' OR caller_id_pattern = '^530772450.*' OR caller_id_pattern = '^53077245.*' OR caller_id_pattern = '^5307724.*' OR caller_id_pattern = '^530772.*' OR caller_id_pattern = '^53077.*' OR caller_id_pattern = '^5307.*' OR caller_id_pattern = '^530.*' OR caller_id_pattern = '^53.*' OR caller_id_pattern = '^5.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 2 OR accountid=4)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  109. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  110. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  111. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
  112. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.1000000000
  113. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  114. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 2.0000000000
  115. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : USA
  116. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  117. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4
  118. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
  119. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  120. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  121. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your75 balance Accountid 4 !!!
  122. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 37.45 minutes
  123. 2023-12-28 08:27:00.821659 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 3
  124. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
  125. 2023-12-28 08:27:00.821659 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=2 ORDER by id asc
  126. 2023-12-28 08:27:00.861704 61.43% [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 = '^13003030303.*' OR pattern = '^1300303030.*' OR pattern = '^130030303.*' OR pattern = '^13003030.*' OR pattern = '^1300303.*' OR pattern = '^130030.*' OR pattern = '^13003.*' OR pattern = '^1300.*' OR pattern = '^130.*' OR pattern = '^13.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (3) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC
  127. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  128. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
  129. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^1.*
  130. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : USA
  131. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.1000000000
  132. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  133. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^1.*
  134. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  135. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  136. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3
  137. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : YGateway
  138. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  139. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  140. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  141. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  142. 2023-12-28 08:27:00.861704 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  143. 2023-12-28 08:27:00.861704 61.43% [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 = 4 AND status=0 LIMIT 1
  144. 2023-12-28 08:27:00.901695 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 37.45
  145. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_sip_device_info_for_did_pstn_call] Query :SELECT username FROM sip_devices WHERE username = '5307724506' and status = 0 limit 1
  146. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  147. 2023-12-28 08:27:00.901695 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  148. 2023-12-28 08:27:00.901695 61.43% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : outbound
  149. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as redial] destination_number :13003030303
  150. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as return] destination_number :13003030303
  151. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  152. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::2
  153. 2023-12-28 08:27:00.901695 61.43% [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
  154. 2023-12-28 08:27:00.901695 61.43% [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 = 3) AND status=0 limit 1
  155. 2023-12-28 08:27:00.901695 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="5307724506"  AND domains.domain="pk1betav602.astppbilling.org" limit 1
  156. 2023-12-28 08:27:00.941772 61.43% [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.use_did_as_cid_flag, A.codec as did_codec,A.provider_id as provider_id,A.always as always,A.always_destination as always_destination FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="13003030303" LIMIT 1
  157. 2023-12-28 08:27:00.941772 61.43% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  158. 2023-12-28 08:27:00.941772 61.43% [ERR] mod_lua.cpp:202 /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:276: attempt to index global 'didinfo' (a nil value)
  159. stack traceback:
  160.         /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:276: in function 'check_did'
  161.         /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:423: in function 'freeswitch_xml_outbound'
  162.         ...ocal/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:1079: in main chunk
  163.         [C]: in function 'dofile'
  164.         /usr/local/freeswitch/scripts/astpp/astpp.lua:141: in main chunk
  165. 2023-12-28 08:27:00.941772 61.43% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
  166. 2023-12-28 08:27:00.977828 61.43% [WARNING] mod_dialplan_xml.c:669 Context default not found
  167. 2023-12-28 08:27:00.977828 61.43% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  168. 2023-12-28 08:27:00.977828 61.43% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/5307724506@pk1betav602.astppbilling.org:5065 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  169. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State ROUTING going to sleep
  170. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_HANGUP (Cur 1 Tot 53)
  171. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:844 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Callstate Change RINGING -> HANGUP
  172. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State HANGUP
  173. 2023-12-28 08:27:00.977828 61.43% [DEBUG] mod_sofia.c:469 Channel sofia/default/5307724506@pk1betav602.astppbilling.org:5065 hanging up, cause: NO_ROUTE_DESTINATION
  174. 2023-12-28 08:27:00.977828 61.43% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 404
  175. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:59 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  176. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State HANGUP going to sleep
  177. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:616 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State Change CS_HANGUP -> CS_REPORTING
  178. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_REPORTING (Cur 1 Tot 53)
  179. 2023-12-28 08:27:00.977828 61.43% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State REPORTING
  180. 2023-12-28 08:27:00.977828 61.43% [INFO] mod_json_cdr.c:272 Process [38d670ba-5e18-4997-9df5-43dae8e5e706.cdr.json]
  181. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:168 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  182. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State REPORTING going to sleep
  183. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:607 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State Change CS_REPORTING -> CS_DESTROY
  184. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_session.c:1744 Session 53 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Locked, Waiting on external entities
  185. 2023-12-28 08:27:01.089997 59.90% [NOTICE] switch_core_session.c:1762 Session 53 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Ended
  186. 2023-12-28 08:27:01.089997 59.90% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/5307724506@pk1betav602.astppbilling.org:5065 [CS_DESTROY]
  187. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:735 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) Running State Change CS_DESTROY (Cur 0 Tot 53)
  188. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State DESTROY
  189. 2023-12-28 08:27:01.089997 59.90% [DEBUG] mod_sofia.c:380 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 SOFIA DESTROY
  190. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:175 sofia/default/5307724506@pk1betav602.astppbilling.org:5065 Standard DESTROY
  191. 2023-12-28 08:27:01.089997 59.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5307724506@pk1betav602.astppbilling.org:5065) State DESTROY going to sleep
  192. freeswitch@ip-172-31-0-164> /exit
  193.  
  194. root@ip-172-31-0-164:/opt/ASTPP/freeswitch/scripts_deb9#
  195. root@ip-172-31-0-164:/opt/ASTPP/freeswitch/scripts_deb9#
  196. root@ip-172-31-0-164:/opt/ASTPP/freeswitch/scripts_deb9#