From Prashant Kumar, 6 Months ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and DID-Voicemail not working when PBX addon install
  1. Type /help <enter> to see a list of commands
  2.  
  3.  
  4.  
  5. +OK log level  [7]
  6. 2024-05-15 03:33:13.517537 94.67% [NOTICE] switch_channel.c:1142 New Channel sofia/default/8584990905@78.47.101.152 [bdd29e67-4f1b-4ff3-a0db-0e5c578f2ba2]
  7. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8584990905@78.47.101.152) Running State Change CS_NEW (Cur 1 Tot 861)
  8. 2024-05-15 03:33:13.517537 94.67% [INFO] sofia.c:10459 sofia/default/8584990905@78.47.101.152 receiving invite from 78.47.101.152:5076 version: 1.10.10-release  64bit call-id: b36dc992-8d0e-123d-219a-960001ee9f91
  9. 2024-05-15 03:33:13.517537 94.67% [DEBUG] sofia.c:10553 verifying acl "default" for ip/port 78.47.101.152:0.
  10. 2024-05-15 03:33:13.517537 94.67% [DEBUG] sofia.c:10582 IP 78.47.101.152 Approved by acl "default[]". Access Granted.
  11. 2024-05-15 03:33:13.517537 94.67% [DEBUG] sofia.c:7493 Channel sofia/default/8584990905@78.47.101.152 entering state [received][100]
  12. 2024-05-15 03:33:13.517537 94.67% [DEBUG] sofia.c:7503 Remote SDP:
  13. v=0
  14. o=FreeSWITCH 1715711603 1715711604 IN IP4 78.47.101.152
  15. s=FreeSWITCH
  16. c=IN IP4 78.47.101.152
  17. t=0 0
  18. m=audio 32390 RTP/AVP 8 101
  19. a=rtpmap:8 PCMA/8000
  20. a=rtpmap:101 telephone-event/8000
  21. a=fmtp:101 0-15
  22. a=ptime:20
  23.  
  24. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  25. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  26. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  27. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
  28. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:3734 Set Codec sofia/default/8584990905@78.47.101.152 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  29. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_codec.c:111 sofia/default/8584990905@78.47.101.152 Original read codec set to PCMA:8
  30. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
  31. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_media.c:5856 sofia/default/8584990905@78.47.101.152 Set 2833 dtmf send payload to 101 recv payload to 101
  32. 2024-05-15 03:33:13.517537 94.67% [DEBUG] sofia.c:7927 (sofia/default/8584990905@78.47.101.152) State Change CS_NEW -> CS_INIT
  33. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:600 (sofia/default/8584990905@78.47.101.152) State NEW
  34. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8584990905@78.47.101.152) Running State Change CS_INIT (Cur 1 Tot 861)
  35. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8584990905@78.47.101.152) State INIT
  36. 2024-05-15 03:33:13.517537 94.67% [DEBUG] mod_sofia.c:97 sofia/default/8584990905@78.47.101.152 SOFIA INIT
  37. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:40 sofia/default/8584990905@78.47.101.152 Standard INIT
  38. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:48 (sofia/default/8584990905@78.47.101.152) State Change CS_INIT -> CS_ROUTING
  39. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8584990905@78.47.101.152) State INIT going to sleep
  40. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8584990905@78.47.101.152) Running State Change CS_ROUTING (Cur 1 Tot 861)
  41. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_channel.c:2399 (sofia/default/8584990905@78.47.101.152) Callstate Change DOWN -> RINGING
  42. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8584990905@78.47.101.152) State ROUTING
  43. 2024-05-15 03:33:13.517537 94.67% [DEBUG] mod_sofia.c:158 sofia/default/8584990905@78.47.101.152 SOFIA ROUTING
  44. 2024-05-15 03:33:13.517537 94.67% [DEBUG] switch_core_state_machine.c:230 sofia/default/8584990905@78.47.101.152 Standard ROUTING
  45. 2024-05-15 03:33:13.517537 94.67% [INFO] mod_dialplan_xml.c:639 Processing 8584990905 <8584990905>->10770 in context default
  46. 2024-05-15 03:33:13.537531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  47. 2024-05-15 03:33:13.537531 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  48. 2024-05-15 03:33:13.537531 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  49. 2024-05-15 03:33:13.537531 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  50. 2024-05-15 03:33:13.537531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  51. 2024-05-15 03:33:13.537531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  52. 2024-05-15 03:33:13.537531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 10770
  53. 2024-05-15 03:33:13.537531 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '10770' limit 1
  54. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  55. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '10770' and status=0 LIMIT 1
  56. 2024-05-15 03:33:13.557568 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
  57. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '3.7.65.234' limit 1
  59. 2024-05-15 03:33:13.557568 94.67% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  60. 2024-05-15 03:33:13.557568 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 8584990905 / 8584990905
  61. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  62. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  63. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  64. 2024-05-15 03:33:13.557568 94.67% [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 ="10770" LIMIT 1
  65. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  66. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :8584990905
  67. 2024-05-15 03:33:13.557568 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="2" and did_id ="3" and number ="8584990905" and status = '0' LIMIT 1
  68. 2024-05-15 03:33:13.577531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  69. 2024-05-15 03:33:13.577531 94.67% [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("78.47.101.152") 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 "10770"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  70. 2024-05-15 03:33:13.577531 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  71. 2024-05-15 03:33:13.577531 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "3673942894" OR id = "3673942894") AND deleted = 0 limit 1
  72. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =2
  73. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  74. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  75. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  76. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 2
  77. 2024-05-15 03:33:13.597539 94.67% [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 = '^10770.*' OR patterns = '^1077.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 2 ORDER BY LENGTH(PKGPTR.patterns) DESC
  78. 2024-05-15 03:33:13.597539 94.67% [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 ="10770" AND A.accountid = '3' limit 1
  79. 2024-05-15 03:33:13.597539 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 10770
  80. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  81. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  82. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  83. 2024-05-15 03:33:13.597539 94.67% [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 ="10770" LIMIT 1
  84. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  85. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :8584990905
  86. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="2" and did_id ="3" and number ="8584990905" and status = '0' LIMIT 1
  87. 2024-05-15 03:33:13.597539 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  88. 2024-05-15 03:33:13.597539 94.67% [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 = '10770' OR number = '1077' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '10770*' OR number = '1077*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '8584990905' OR number = '858499090' OR number = '85849909' OR number = '8584990' OR number = '858499' OR number = '85849' OR number = '8584' OR number = '858' OR number = '85' OR number = '8' OR number ='--') OR (number = '8584990905*' OR number = '858499090*' OR number = '85849909*' OR number = '8584990*' OR number = '858499*' OR number = '85849*' OR number = '8584*' OR number = '858*' OR number = '85*' OR number = '8*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  89. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  90. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '10770' OR routing_prefix = '1077' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  91. 2024-05-15 03:33:13.597539 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  92. 2024-05-15 03:33:13.597539 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3
  93. 2024-05-15 03:33:13.597539 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894
  94. 2024-05-15 03:33:13.597539 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =2
  95. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 9932.52
  96. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  97. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  98. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  99. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  100. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  101. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
  102. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  103. 2024-05-15 03:33:13.617535 94.67% [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 ="10770" LIMIT 1
  104. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  105. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :8584990905
  106. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="2" and did_id ="3" and number ="8584990905" and status = '0' LIMIT 1
  107. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 2  and status = 0 limit 1
  108. 2024-05-15 03:33:13.617535 94.67% [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 ="10770" LIMIT 1
  109. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  110. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :8584990905
  111. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="2" and did_id ="3" and number ="8584990905" and status = '0' LIMIT 1
  112. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  113. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  114. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
  115. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  116. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  117. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.00000
  118. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 10770
  119. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  120. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3
  121. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  122. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =2
  123. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your9932.52 balance Accountid 3 !!!
  124. 2024-05-15 03:33:13.617535 94.67% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  125. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  126. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  127. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  128. 2024-05-15 03:33:13.617535 94.67% [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
  129. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (id = "2" OR number = "2") AND deleted = 0 limit 1
  130. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =2
  131. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  132. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3
  133. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  134. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  135. 2024-05-15 03:33:13.617535 94.67% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : pk1betav602.astppbilling.org
  136. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  137. 2024-05-15 03:33:13.617535 94.67% [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
  138. 2024-05-15 03:33:13.617535 94.67% [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
  139. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_sip_device_info_for_did_pstn_call] Query :SELECT username FROM sip_devices WHERE username = 'FreeSWITCH' and status = 0 limit 1
  140. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  141. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  142. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  143. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "3856431247" AND accounts.status = 0
  144. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as redial] destination_number :10770
  145. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as return] destination_number :10770
  146. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  147. 2024-05-15 03:33:13.617535 94.67% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : pk1betav602.astppbilling.org
  148. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_VOICEMAIL
  149. 2024-05-15 03:33:13.617535 94.67% [ERR] mod_lua.cpp:202 /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:994: attempt to concatenate a nil value
  150. stack traceback:
  151.         /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:994: in function '?'
  152.         /usr/local/freeswitch/scripts/astpp/scripts/astpp.xml.lua:609: in function 'freeswitch_xml_inbound'
  153.         ...ocal/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:951: in main chunk
  154.         [C]: in function 'dofile'
  155.         /usr/local/freeswitch/scripts/astpp/astpp.lua:149: in main chunk
  156. 2024-05-15 03:33:13.617535 94.67% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
  157. 2024-05-15 03:33:13.617535 94.67% [WARNING] mod_dialplan_xml.c:669 Context default not found
  158. 2024-05-15 03:33:13.617535 94.67% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  159. 2024-05-15 03:33:13.617535 94.67% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/8584990905@78.47.101.152 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  160. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8584990905@78.47.101.152) State ROUTING going to sleep
  161. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8584990905@78.47.101.152) Running State Change CS_HANGUP (Cur 1 Tot 861)
  162. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:844 (sofia/default/8584990905@78.47.101.152) Callstate Change RINGING -> HANGUP
  163. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:846 (sofia/default/8584990905@78.47.101.152) State HANGUP
  164. 2024-05-15 03:33:13.617535 94.67% [DEBUG] mod_sofia.c:469 Channel sofia/default/8584990905@78.47.101.152 hanging up, cause: NO_ROUTE_DESTINATION
  165. 2024-05-15 03:33:13.617535 94.67% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 404
  166. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:59 sofia/default/8584990905@78.47.101.152 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  167. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:846 (sofia/default/8584990905@78.47.101.152) State HANGUP going to sleep
  168. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:616 (sofia/default/8584990905@78.47.101.152) State Change CS_HANGUP -> CS_REPORTING
  169. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8584990905@78.47.101.152) Running State Change CS_REPORTING (Cur 1 Tot 861)
  170. 2024-05-15 03:33:13.617535 94.67% [DEBUG] switch_core_state_machine.c:932 (sofia/default/8584990905@78.47.101.152) State REPORTING
  171. 2024-05-15 03:33:13.617535 94.67% [INFO] mod_json_cdr.c:272 Process [bdd29e67-4f1b-4ff3-a0db-0e5c578f2ba2.cdr.json]
  172. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:168 sofia/default/8584990905@78.47.101.152 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  173. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:932 (sofia/default/8584990905@78.47.101.152) State REPORTING going to sleep
  174. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:607 (sofia/default/8584990905@78.47.101.152) State Change CS_REPORTING -> CS_DESTROY
  175. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_session.c:1744 Session 861 (sofia/default/8584990905@78.47.101.152) Locked, Waiting on external entities
  176. 2024-05-15 03:33:13.637548 94.67% [NOTICE] switch_core_session.c:1762 Session 861 (sofia/default/8584990905@78.47.101.152) Ended
  177. 2024-05-15 03:33:13.637548 94.67% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/8584990905@78.47.101.152 [CS_DESTROY]
  178. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:735 (sofia/default/8584990905@78.47.101.152) Running State Change CS_DESTROY (Cur 0 Tot 861)
  179. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:745 (sofia/default/8584990905@78.47.101.152) State DESTROY
  180. 2024-05-15 03:33:13.637548 94.67% [DEBUG] mod_sofia.c:380 sofia/default/8584990905@78.47.101.152 SOFIA DESTROY
  181. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:175 sofia/default/8584990905@78.47.101.152 Standard DESTROY
  182. 2024-05-15 03:33:13.637548 94.67% [DEBUG] switch_core_state_machine.c:745 (sofia/default/8584990905@78.47.101.152) State DESTROY going to sleep
  183. 2024-05-15 03:33:30.117529 92.37% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  184. freeswitch@ip-172-31-0-36>