From Prashant Kumar, 9 Months ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@ip-172-31-42-21>
  2. 2024-02-29 05:00:21.946548 93.60% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  3. 2024-02-29 05:00:21.946548 93.60% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  4. 2024-02-29 05:00:21.946548 93.60% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  5. 2024-02-29 05:00:26.146467 93.57% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  6. 2024-02-29 05:00:33.406536 96.97% [NOTICE] switch_channel.c:1142 New Channel sofia/default/1800180222@3.110.187.230 [063dfaad-0055-4866-bfb0-05d221a00196]
  7. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1800180222@3.110.187.230) Running State Change CS_NEW (Cur 1 Tot 12422)
  8. 2024-02-29 05:00:33.406536 96.97% [INFO] sofia.c:10459 sofia/default/1800180222@3.110.187.230 receiving invite from 3.110.187.230:5077 version: 1.10.10-release  64bit call-id: 4f4b2806-5162-123d-67ad-021eb38071a8
  9. 2024-02-29 05:00:33.406536 96.97% [DEBUG] sofia.c:10553 verifying acl "default" for ip/port 3.110.187.230:0.
  10. 2024-02-29 05:00:33.406536 96.97% [DEBUG] sofia.c:10582 IP 3.110.187.230 Approved by acl "default[]". Access Granted.
  11. 2024-02-29 05:00:33.406536 96.97% [DEBUG] sofia.c:7493 Channel sofia/default/1800180222@3.110.187.230 entering state [received][100]
  12. 2024-02-29 05:00:33.406536 96.97% [DEBUG] sofia.c:7503 Remote SDP:
  13. v=0
  14. o=FreeSWITCH 1709159897 1709159898 IN IP4 3.110.187.230
  15. s=FreeSWITCH
  16. c=IN IP4 3.110.187.230
  17. t=0 0
  18. m=audio 22936 RTP/AVP 8 18 101
  19. a=rtpmap:8 PCMA/8000
  20. a=rtpmap:18 G729/8000
  21. a=rtpmap:101 telephone-event/8000
  22. a=fmtp:101 0-15
  23. a=ptime:20
  24.  
  25. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  26. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  27. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  28. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  29. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  30. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
  31. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:3734 Set Codec sofia/default/1800180222@3.110.187.230 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  32. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_codec.c:111 sofia/default/1800180222@3.110.187.230 Original read codec set to PCMA:8
  33. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
  34. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_media.c:5856 sofia/default/1800180222@3.110.187.230 Set 2833 dtmf send payload to 101 recv payload to 101
  35. 2024-02-29 05:00:33.406536 96.97% [DEBUG] sofia.c:7927 (sofia/default/1800180222@3.110.187.230) State Change CS_NEW -> CS_INIT
  36. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1800180222@3.110.187.230) State NEW
  37. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1800180222@3.110.187.230) Running State Change CS_INIT (Cur 1 Tot 12422)
  38. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1800180222@3.110.187.230) State INIT
  39. 2024-02-29 05:00:33.406536 96.97% [DEBUG] mod_sofia.c:97 sofia/default/1800180222@3.110.187.230 SOFIA INIT
  40. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:40 sofia/default/1800180222@3.110.187.230 Standard INIT
  41. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:48 (sofia/default/1800180222@3.110.187.230) State Change CS_INIT -> CS_ROUTING
  42. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1800180222@3.110.187.230) State INIT going to sleep
  43. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1800180222@3.110.187.230) Running State Change CS_ROUTING (Cur 1 Tot 12422)
  44. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_channel.c:2399 (sofia/default/1800180222@3.110.187.230) Callstate Change DOWN -> RINGING
  45. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1800180222@3.110.187.230) State ROUTING
  46. 2024-02-29 05:00:33.406536 96.97% [DEBUG] mod_sofia.c:158 sofia/default/1800180222@3.110.187.230 SOFIA ROUTING
  47. 2024-02-29 05:00:33.406536 96.97% [DEBUG] switch_core_state_machine.c:230 sofia/default/1800180222@3.110.187.230 Standard ROUTING
  48. 2024-02-29 05:00:33.406536 96.97% [INFO] mod_dialplan_xml.c:639 Processing 1800180222 <1800180222>->120400 in context default
  49. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  50. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  51. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  52. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  53. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  54. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 120400
  55. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  56. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PKServerMaster
  57. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '120400' limit 1
  59. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1800180222 / 1800180222
  60. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  61. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  62. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  63. 2024-02-29 05:00:33.426506 97.57% [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,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 ="120400" LIMIT 1
  64. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  65. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  66. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("3.110.187.230") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "120400"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  67. 2024-02-29 05:00:33.426506 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  68. 2024-02-29 05:00:33.426506 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "3673942894" OR id = "3673942894") AND deleted = 0 limit 1
  69. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  70. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  71. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  72. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  73. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 6
  74. 2024-02-29 05:00:33.446505 97.57% [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 = '^120400.*' OR patterns = '^12040.*' OR patterns = '^1204.*' OR patterns = '^120.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 6 ORDER BY LENGTH(PKGPTR.patterns) DESC
  75. 2024-02-29 05:00:33.446505 97.57% [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 ="120400" AND A.accountid = '3' limit 1
  76. 2024-02-29 05:00:33.446505 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 120400
  77. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  78. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  79. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  80. 2024-02-29 05:00:33.446505 97.57% [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,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 ="120400" LIMIT 1
  81. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  82. 2024-02-29 05:00:33.446505 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  83. 2024-02-29 05:00:33.446505 97.57% [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 = '120400' OR number = '12040' OR number = '1204' OR number = '120' OR number = '12' OR number = '1' OR number ='--') OR (number = '120400*' OR number = '12040*' OR number = '1204*' OR number = '120*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '1800180222' OR number = '180018022' OR number = '18001802' OR number = '1800180' OR number = '180018' OR number = '18001' OR number = '1800' OR number = '180' OR number = '18' OR number = '1' OR number ='--') OR (number = '1800180222*' OR number = '180018022*' OR number = '18001802*' OR number = '1800180*' OR number = '180018*' OR number = '18001*' OR number = '1800*' OR number = '180*' OR number = '18*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  84. 2024-02-29 05:00:33.446505 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  85. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '120400' OR routing_prefix = '12040' OR routing_prefix = '1204' OR routing_prefix = '120' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  86. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  87. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3
  88. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894
  89. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  90. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 49996.4
  91. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  92. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  93. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  94. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  95. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  96. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
  97. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  98. 2024-02-29 05:00:33.466515 97.57% [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,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 ="120400" LIMIT 1
  99. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  100. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 6  and status = 0 limit 1
  101. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :0.....120400
  102. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_RESELLER] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.connectcost,A.includedseconds,A.cost,C.reseller_cost as reseller_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,A.always as always,A.always_destination as always_destination,D.id as product_id FROM dids AS A,accounts AS B, reseller_products AS C, products AS D WHERE B.status=0 AND B.deleted=0 AND A.product_id=C.product_id AND A.parent_id=C.account_id AND B.id=A.accountid AND A.number ="120400" LIMIT 1
  103. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  104. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  105. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  106. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  107. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  108. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.77000
  109. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 120400
  110. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 130
  111. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3
  112. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  113. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  114. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your49996.4 balance Accountid 3 !!!
  115. 2024-02-29 05:00:33.466515 97.57% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  116. 2024-02-29 05:00:33.466515 97.57% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 5
  117. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (id = "5" OR number = "5") AND deleted = 0 limit 1
  118. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  119. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  120. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 5
  121. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9516041852
  122. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  123. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 49996.4
  124. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  125. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  126. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  127. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::2
  128. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  129. 2024-02-29 05:00:33.466515 97.57% [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,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 ="120400" LIMIT 1
  130. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  131. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  132. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  133. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  134. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  135. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  136. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.77000
  137. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 120400
  138. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 130
  139. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 5
  140. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  141. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  142. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your49996.4 balance Accountid 5 !!!
  143. 2024-02-29 05:00:33.466515 97.57% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  144. 2024-02-29 05:00:33.466515 97.57% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  145. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Daily call credit limit : 100
  146. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] check_routing_type for resellers origination rates  
  147. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:1|CODE:^120400.*|DESTINATION:120400|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:DID-LOCAL|COST:0.77000|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:130|ACCID:6||ID:1|CODE:^120400.*|DESTINATION:120400|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:SELECTED|COST:0.77000|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:130|ACCID:5
  148. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  149. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 1
  150. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  151. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  152. 2024-02-29 05:00:33.466515 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  153. 2024-02-29 05:00:33.466515 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1
  154. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (id = "6" OR number = "6") AND deleted = 0 limit 1
  155. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =6
  156. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  157. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3
  158. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  159. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  160. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  161. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  162. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_sip_device_info_for_did_pstn_call] Query :SELECT username FROM sip_devices WHERE username = 'gw+PKServerMaster' and status = 0 limit 1
  163. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  164. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  165. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_SELECTED
  166. 2024-02-29 05:00:33.486516 97.57% [ERR] mod_lua.cpp:202 /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:585: attempt to call field '?' (a nil value)
  167. stack traceback:
  168.         /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:585: in function 'freeswitch_xml_inbound'
  169.         ...ocal/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:916: in main chunk
  170.         [C]: in function 'dofile'
  171.         /usr/local/freeswitch/scripts/astpp/astpp.lua:149: in main chunk
  172. 2024-02-29 05:00:33.486516 97.57% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
  173. 2024-02-29 05:00:33.486516 97.57% [WARNING] mod_dialplan_xml.c:669 Context default not found
  174. 2024-02-29 05:00:33.486516 97.57% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  175. 2024-02-29 05:00:33.486516 97.57% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/1800180222@3.110.187.230 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  176. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1800180222@3.110.187.230) State ROUTING going to sleep
  177. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1800180222@3.110.187.230) Running State Change CS_HANGUP (Cur 1 Tot 12422)
  178. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:844 (sofia/default/1800180222@3.110.187.230) Callstate Change RINGING -> HANGUP
  179. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1800180222@3.110.187.230) State HANGUP
  180. 2024-02-29 05:00:33.486516 97.57% [DEBUG] mod_sofia.c:469 Channel sofia/default/1800180222@3.110.187.230 hanging up, cause: NO_ROUTE_DESTINATION
  181. 2024-02-29 05:00:33.486516 97.57% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 404
  182. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:59 sofia/default/1800180222@3.110.187.230 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  183. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1800180222@3.110.187.230) State HANGUP going to sleep
  184. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:616 (sofia/default/1800180222@3.110.187.230) State Change CS_HANGUP -> CS_REPORTING
  185. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1800180222@3.110.187.230) Running State Change CS_REPORTING (Cur 1 Tot 12422)
  186. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1800180222@3.110.187.230) State REPORTING
  187. 2024-02-29 05:00:33.486516 97.57% [INFO] mod_json_cdr.c:272 Process [063dfaad-0055-4866-bfb0-05d221a00196.cdr.json]
  188. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:168 sofia/default/1800180222@3.110.187.230 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  189. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1800180222@3.110.187.230) State REPORTING going to sleep
  190. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:607 (sofia/default/1800180222@3.110.187.230) State Change CS_REPORTING -> CS_DESTROY
  191. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_session.c:1744 Session 12422 (sofia/default/1800180222@3.110.187.230) Locked, Waiting on external entities
  192. 2024-02-29 05:00:33.486516 97.57% [NOTICE] switch_core_session.c:1762 Session 12422 (sofia/default/1800180222@3.110.187.230) Ended
  193. 2024-02-29 05:00:33.486516 97.57% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/1800180222@3.110.187.230 [CS_DESTROY]
  194. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:735 (sofia/default/1800180222@3.110.187.230) Running State Change CS_DESTROY (Cur 0 Tot 12422)
  195. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1800180222@3.110.187.230) State DESTROY
  196. 2024-02-29 05:00:33.486516 97.57% [DEBUG] mod_sofia.c:380 sofia/default/1800180222@3.110.187.230 SOFIA DESTROY
  197. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:175 sofia/default/1800180222@3.110.187.230 Standard DESTROY
  198. 2024-02-29 05:00:33.486516 97.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1800180222@3.110.187.230) State DESTROY going to sleep
  199. 2024-02-29 05:00:36.746464 97.33% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  200. 2024-02-29 05:00:36.746464 97.33% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  201. 2024-02-29 05:00:36.746464 97.33% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  202. 2024-02-29 05:00:40.946543 97.37% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  203. Type control-D or /exit or /quit or /bye to exit.
  204.  
  205. freeswitch@ip-172-31-42-21>
  206. freeswitch@ip-172-31-42-21> /exit
  207.