From FS, 1 Year ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and Log
  1. span style="color: cornflowerblue; font-weight: bold;"> 2023-12-22 13:08:16.862622 41.73% [NOTICE] switch_channel.c:1123 New Channel sofia/default/9429212752@demov6.astppbilling.org [cae026da-9be3-4602-a40d-b01f156b304b]
  2. 2023-12-22 13:08:16.862622 41.73% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_NEW (Cur 1 Tot 3517)
  3. 2023-12-22 13:08:16.862622 41.73% [INFO] sofia.c:10462 sofia/default/9429212752@demov6.astppbilling.org receiving invite from 103.240.35.46:37924 version: 1.10.7 -release 64bit call-id: ODE4NmFmM2VmY2E4MTlmYzBlMzMwZTUzOWIzZjM5ZTI.                                                                                                                                                                                                
  4. 2023-12-22 13:08:16.862622 41.73% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  5. 2023-12-22 13:08:16.862622 41.73% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9505087186@demov6.astppbilling.org] from ip 103.240.35.46
  6. 2023-12-22 13:08:16.862622 41.73% [DEBUG] sofia.c:2419 detaching session cae026da-9be3-4602-a40d-b01f156b304b
  7. 2023-12-22 13:08:16.862622 41.73% [DEBUG] switch_core_state_machine.c:600 (sofia/default/9429212752@demov6.astppbilling.org) State NEW
  8. 2023-12-22 13:08:17.482621 41.70% [DEBUG] sofia.c:2532 Re-attaching to session cae026da-9be3-4602-a40d-b01f156b304b
  9. 2023-12-22 13:08:17.502617 41.70% [INFO] sofia.c:10462 sofia/default/9429212752@demov6.astppbilling.org receiving invite from 103.240.35.46:37924 version: 1.10.7 -release 64bit call-id: ODE4NmFmM2VmY2E4MTlmYzBlMzMwZTUzOWIzZjM5ZTI.                                                                                                                                                                                                
  10. 2023-12-22 13:08:17.502617 41.70% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  11. 2023-12-22 13:08:17.502617 41.70% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  12. 2023-12-22 13:08:17.502617 41.70% [DEBUG] sofia.c:7499 Channel sofia/default/9429212752@demov6.astppbilling.org entering state [received][100]
  13. 2023-12-22 13:08:17.502617 41.70% [DEBUG] sofia.c:7509 Remote SDP:
  14. v=0                                                                                                                                                                                                                
  15. o=Z 0 0 IN IP4 103.240.35.46                                                                                                                                                                                      
  16. s=Z                                                                                                                                                                                                                
  17. c=IN IP4 103.240.35.46                                                                                                                                                                                            
  18. t=0 0                                                                                                                                                                                                              
  19. m=audio 8000 RTP/AVP 3 110 8 0 98 101                                                                                                                                                                              
  20. a=rtpmap:110 speex/8000                                                                                                                                                                                            
  21. a=rtpmap:98 iLBC/8000                                                                                                                                                                                              
  22. a=fmtp:98 mode=20                                                                                                                                                                                                  
  23. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  24. a=fmtp:101 0-15                                                                                                                                                                                                    
  25.  
  26. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  27. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  29. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  30. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  31. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  32. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  33. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  34. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  36. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  37. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  38. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  39. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  40. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  41. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  42. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  43. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  44. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/9429212752@demov6.astppbilling.org PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  45. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_codec.c:111 sofia/default/9429212752@demov6.astppbilling.org Original read codec set to PCMA:8
  46. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  47. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_media.c:5973 sofia/default/9429212752@demov6.astppbilling.org Set 2833 dtmf send payload to 101 recv payload to 101
  48. 2023-12-22 13:08:17.502617 41.70% [DEBUG] sofia.c:7933 (sofia/default/9429212752@demov6.astppbilling.org) State Change CS_NEW -> CS_INIT
  49. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_INIT (Cur 1 Tot 3517)
  50. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9429212752@demov6.astppbilling.org) State INIT
  51. 2023-12-22 13:08:17.502617 41.70% [DEBUG] mod_sofia.c:97 sofia/default/9429212752@demov6.astppbilling.org SOFIA INIT
  52. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:40 sofia/default/9429212752@demov6.astppbilling.org Standard INIT
  53. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:48 (sofia/default/9429212752@demov6.astppbilling.org) State Change CS_INIT -> CS_ROUTING
  54. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9429212752@demov6.astppbilling.org) State INIT going to sleep
  55. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_ROUTING (Cur 1 Tot 3517)
  56. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_channel.c:2380 (sofia/default/9429212752@demov6.astppbilling.org) Callstate Change DOWN -> RINGING
  57. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9429212752@demov6.astppbilling.org) State ROUTING
  58. 2023-12-22 13:08:17.502617 41.70% [DEBUG] mod_sofia.c:158 sofia/default/9429212752@demov6.astppbilling.org SOFIA ROUTING
  59. 2023-12-22 13:08:17.502617 41.70% [DEBUG] switch_core_state_machine.c:230 sofia/default/9429212752@demov6.astppbilling.org Standard ROUTING
  60. 2023-12-22 13:08:17.502617 41.70% [INFO] mod_dialplan_xml.c:639 Processing 9429212752 <9429212752>->9505087186 in context default
  61. 2023-12-22 13:08:17.522619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] CACHE FAIL
  62. 2023-12-22 13:08:17.522619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  63. 2023-12-22 13:08:17.522619 41.70% [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. 2023-12-22 13:08:17.522619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  65. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  66. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 9505087186
  67. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '9505087186' limit 1
  68. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '9505087186' AND status=0 limit 1
  69. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '9505087186' and status=0 LIMIT 1                                                                                                                                                                                              
  70. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9429212752
  71. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  72. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'demov6.astppbilling.org' limit 1
  73. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '52' and username = '9505087186' limit 1
  74. 2023-12-22 13:08:17.542620 41.70% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  75. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9429212752 / 9429212752
  76. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 7186
  77. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 950508 AND status=0 limit 1
  78. 2023-12-22 13:08:17.542620 41.70% [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 ="9505087186" LIMIT 1                                      
  79. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions,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 ="9505087186" LIMIT 1                                                                                                                                                  
  80. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  81. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  82. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="52" and did_id ="6" and number ="9429212752" and status = '0' LIMIT 1                                                                                                                                                                                                    
  83. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  84. 2023-12-22 13:08:17.542620 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 6347854536]
  85. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =9505087186
  86. 2023-12-22 13:08:17.542620 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "6347854536" OR id = "6347854536") AND deleted = 0 limit 1
  87. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =52
  88. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="9505087186" AND (accountid = 0 OR status = 1) LIMIT 1
  89. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  90. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 52
  91. 2023-12-22 13:08:17.562619 41.70% [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 = '^9505087186.*' OR patterns = '^950508718.*' OR patterns = '^95050871.*' OR patterns = '^9505087.*' OR patterns = '^950508.*' OR patterns = '^95050.*' OR patterns = '^9505.*' OR patterns = '^950.*' OR patterns = '^95.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 52 ORDER BY LENGTH(PKGPTR.patterns) DESC                          
  92. 2023-12-22 13:08:17.562619 41.70% [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 ="9505087186" AND A.accountid = '52' limit 1                                                                                                                                                                  
  93. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 9505087186
  94. 2023-12-22 13:08:17.562619 41.70% [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 ="9505087186" LIMIT 1                                      
  95. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions,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 ="9505087186" LIMIT 1                                                                                                                                                  
  96. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  97. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  98. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="52" and did_id ="6" and number ="9429212752" and status = '0' LIMIT 1                                                                                                                                                                                                    
  99. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  100. 2023-12-22 13:08:17.562619 41.70% [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 = '9505087186' OR number = '950508718' OR number = '95050871' OR number = '9505087' OR number = '950508' OR number = '95050' OR number = '9505' OR number = '950' OR number = '95' OR number = '9' OR number ='--') OR (number = '9505087186*' OR number = '950508718*' OR number = '95050871*' OR number = '9505087*' OR number = '950508*' OR number = '95050*' OR number = '9505*' OR number = '950*' OR number = '95*' OR number = '9*' OR number ='--') OR (number = '9429212752' OR number = '942921275' OR number = '94292127' OR number = '9429212' OR number = '942921' OR number = '94292' OR number = '9429' OR number = '942' OR number = '94' OR number = '9' OR number ='--') OR (number = '9429212752*' OR number = '942921275*' OR number = '94292127*' OR number = '9429212*' OR number = '942921*' OR number = '94292*' OR number = '9429*' OR number = '942*' OR number = '94*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                          
  101. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  102. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '9505087186' OR routing_prefix = '950508718' OR routing_prefix = '95050871' OR routing_prefix = '9505087' OR routing_prefix = '950508' OR routing_prefix = '95050' OR routing_prefix = '9505' OR routing_prefix = '950' OR routing_prefix = '95' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                              
  103. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  104. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 52
  105. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 6347854536
  106. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =52
  107. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 5512.59259
  108. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  109. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 16
  110. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  111. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  112. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 16 AND status = 0
  113. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  114. 2023-12-22 13:08:17.562619 41.70% [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 ="9505087186" LIMIT 1                                      
  115. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions,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 ="9505087186" LIMIT 1                                                                                                                                                  
  116. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  117. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  118. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="52" and did_id ="6" and number ="9429212752" and status = '0' LIMIT 1                                                                                                                                                                                                    
  119. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  120. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  121. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000
  122. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:16
  123. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '16' and status=0                                                                                                                                                                                                                
  124. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000
  125. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  126. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 6
  127. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  128. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  129. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  130. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 9505087186
  131. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  132. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 52
  133. 2023-12-22 13:08:17.562619 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  134. 2023-12-22 13:08:17.562619 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =52
  135. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your5512.59259 balance Accountid 52 !!!
  136. 2023-12-22 13:08:17.582621 41.70% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  137. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 52
  138. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.00000
  139. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  140. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 0
  141. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 0
  142. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  143. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  144. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  145. 2023-12-22 13:08:17.582621 41.70% [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 = 52 AND status=0 LIMIT 1                                                                                                                                                                                        
  146. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (id = "52" OR number = "52") AND deleted = 0 limit 1
  147. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =52
  148. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:52
  149. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:52
  150. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 52
  151. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 52 limit 1
  152. 2023-12-22 13:08:17.582621 41.70% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : demov6.astppbilling.org
  153. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  154. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_sip_device_info_for_did_pstn_call] Query :SELECT username FROM sip_devices WHERE username = '9429212752' and status = 0 limit 1
  155. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  156. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  157. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  158. 2023-12-22 13:08:17.582621 41.70% [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 = "--" AND accounts.status = 0                                    
  159. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 52 limit 1
  160. 2023-12-22 13:08:17.582621 41.70% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : demov6.astppbilling.org
  161. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_7
  162. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : 7
  163. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : Ring Group
  164. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : Query - SELECT call_screening from accounts WHERE id = '52' LIMIT 1
  165. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : Screening Option - 1
  166. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : is_intro_recorded - false
  167. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : introduction_recording_name -
  168. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET RING GROUP INFO] Query :SELECT id as ringgroup_id,name as ringgroup_name,strategy as ringgroup_strategy,destinations as ringgroup_destinations,description as ringgroup_description,announcementid as ringgroup_announcementid,call_record as ringgroup_call_record,skip_busy as ringgroup_skip_busy,ringbackid as ringgroup_ringbackid,calleridname as ringgroup_calleridname,greetingid as ringgroup_greetingid,calleridnumber as ringgroup_calleridnumber,no_answer as ringgroup_no_answer,no_answer_call_type as no_answer_call_type,voicemail_set,no_answer_call_type_value, greetingid as ringgroup_greetingid, music_on_hold_type,music_on_hold from pbx_ringgroup WHERE id = -- and status = 0 LIMIT 1                                                                      
  169. 2023-12-22 13:08:17.582621 41.70% [ERR] switch_core_sqldb.c:1310 ERR: [SELECT id as ringgroup_id,name as ringgroup_name,strategy as ringgroup_strategy,destinations as ringgroup_destinations,description as ringgroup_description,announcementid as ringgroup_announcementid,call_record as ringgroup_call_record,skip_busy as ringgroup_skip_busy,ringbackid as ringgroup_ringbackid,calleridname as ringgroup_calleridname,greetingid as ringgroup_greetingid,calleridnumber as ringgroup_calleridnumber,no_answer as ringgroup_no_answer,no_answer_call_type as no_answer_call_type,voicemail_set,no_answer_call_type_value, greetingid as ringgroup_greetingid, music_on_hold_type,music_on_hold from pbx_ringgroup WHERE id = -- and status = 0 LIMIT 1]                                                                                                              
  170. [STATE: 42000 CODE 1064 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.30]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1                                                                                                                                                                                                          
  171. ]                                                                                                                                                                                                                  
  172. 2023-12-22 13:08:17.582621 41.70% [ERR] mod_lua.cpp:202 ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:785: assertion failed!
  173. stack traceback:
  174.         [C]: in function 'assert'
  175.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:785: in function 'get_ringgroup'
  176.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:103: in function 'did_pbx_info'
  177.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:2242: in function '?'
  178.         ./astpp/scripts/astpp.xml.lua:531: in function 'freeswitch_xml_inbound'
  179.         ./astpp/scripts/astpp.dialplan.lua:850: in main chunk
  180.         [C]: in function 'dofile'
  181.         ./astpp/astpp_deb9.lua:138: in main chunk
  182. 2023-12-22 13:08:17.582621 41.70% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  183. 2023-12-22 13:08:17.582621 41.70% [WARNING] mod_dialplan_xml.c:669 Context default not found
  184. 2023-12-22 13:08:17.582621 41.70% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  185. 2023-12-22 13:08:17.582621 41.70% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/9429212752@demov6.astppbilling.org [CS_ROUTING] [NO_ROUTE_DESTINATION]
  186. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9429212752@demov6.astppbilling.org) State ROUTING going to sleep
  187. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_HANGUP (Cur 1 Tot 3517)
  188. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:844 (sofia/default/9429212752@demov6.astppbilling.org) Callstate Change RINGING -> HANGUP
  189. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9429212752@demov6.astppbilling.org) State HANGUP
  190. 2023-12-22 13:08:17.582621 41.70% [DEBUG] mod_sofia.c:468 Channel sofia/default/9429212752@demov6.astppbilling.org hanging up, cause: NO_ROUTE_DESTINATION
  191. 2023-12-22 13:08:17.582621 41.70% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  192. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:59 sofia/default/9429212752@demov6.astppbilling.org Standard HANGUP, cause: NO_ROUTE_DESTINATION
  193. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9429212752@demov6.astppbilling.org) State HANGUP going to sleep
  194. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:616 (sofia/default/9429212752@demov6.astppbilling.org) State Change CS_HANGUP -> CS_REPORTING
  195. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_REPORTING (Cur 1 Tot 3517)
  196. 2023-12-22 13:08:17.582621 41.70% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9429212752@demov6.astppbilling.org) State REPORTING
  197. 2023-12-22 13:08:17.582621 41.70% [INFO] mod_json_cdr.c:271 Process [cae026da-9be3-4602-a40d-b01f156b304b.cdr.json]
  198. 2023-12-22 13:08:17.602618 41.70% [ERR] mod_json_cdr.c:396 Got error [500] posting to web server [http://localhost:8735/cdr.php]
  199. 2023-12-22 13:08:17.602618 41.70% [ERR] mod_json_cdr.c:415 Unable to post to web server
  200. 2023-12-22 13:08:17.602618 41.70% [INFO] mod_json_cdr.c:208 Backup file /var/log/freeswitch/json_cdr/cae026da-9be3-4602-a40d-b01f156b304b.cdr.json
  201. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:168 sofia/default/9429212752@demov6.astppbilling.org Standard REPORTING, cause: NO_ROUTE_DESTINATION
  202. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9429212752@demov6.astppbilling.org) State REPORTING going to sleep
  203. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:607 (sofia/default/9429212752@demov6.astppbilling.org) State Change CS_REPORTING -> CS_DESTROY
  204. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_session.c:1753 Session 3517 (sofia/default/9429212752@demov6.astppbilling.org) Locked, Waiting on external entities
  205. 2023-12-22 13:08:17.602618 41.70% [NOTICE] switch_core_session.c:1771 Session 3517 (sofia/default/9429212752@demov6.astppbilling.org) Ended
  206. 2023-12-22 13:08:17.602618 41.70% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/9429212752@demov6.astppbilling.org [CS_DESTROY]
  207. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:735 (sofia/default/9429212752@demov6.astppbilling.org) Running State Change CS_DESTROY (Cur 0 Tot 3517)
  208. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9429212752@demov6.astppbilling.org) State DESTROY
  209. 2023-12-22 13:08:17.602618 41.70% [DEBUG] mod_sofia.c:379 sofia/default/9429212752@demov6.astppbilling.org SOFIA DESTROY
  210. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:175 sofia/default/9429212752@demov6.astppbilling.org Standard DESTROY
  211. 2023-12-22 13:08:17.602618 41.70% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9429212752@demov6.astppbilling.org) State DESTROY going to sleep
  212. 2023-12-22 13:08:41.222658 47.23% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9429212752@demov6.astppbilling.org] from ip 103.240.35.46
  213. 2023-12-22 13:08:41.502683 47.27% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9276208548@demov6.astppbilling.org] from ip 103.240.35.46
  214. 2023-12-22 13:08:42.222636 47.27% [WARNING] sofia_reg.c:3223 Can't find user [9429212752@demov6.astppbilling.org] from 103.240.35.46
  215. You must define a domain called 'demov6.astppbilling.org' in your directory and add a user with the id="9429212752" attribute
  216. and you must configure your device to use the proper domain in its authentication credentials.
  217. 2023-12-22 13:08:42.422653 47.27% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9429212752@demov6.astppbilling.org] from ip 103.240.35.46
  218. 2023-12-22 13:08:42.502634 47.10% [WARNING] sofia_reg.c:3223 Can't find user [9276208548@demov6.astppbilling.org] from 103.240.35.46
  219. You must define a domain called 'demov6.astppbilling.org' in your directory and add a user with the id="9276208548" attribute
  220. and you must configure your device to use the proper domain in its authentication credentials.
  221. 2023-12-22 13:08:42.702623 47.10% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9276208548@demov6.astppbilling.org] from ip 103.240.35.46
  222.