From Wet Goose, 1 Year ago, written in Plain Text.
- go back
Embed
Viewing differences between and FS log
  1. 753586397-414391595-581038321
  2. 2023-07-05 11:23:28.001385 0.30% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 64.20.208.112:0.
  3. 2023-07-05 11:23:28.001385 0.30% [DEBUG] sofia.c:10585 IP 64.20.208.112 Approved by acl "default[]". Access Granted.
  4. 2023-07-05 11:23:28.001385 0.30% [DEBUG] sofia.c:7499 Channel sofia/default/10001@137.184.136.244 entering state [received][100]
  5. 2023-07-05 11:23:28.001385 0.30% [DEBUG] sofia.c:7509 Remote SDP:
  6. v=0
  7. o=10001 16264 18299 IN IP4 192.168.1.83
  8. s=call
  9. c=IN IP4 192.168.1.83
  10. t=0 0
  11. m=audio 25282 RTP/AVP 0 101
  12. a=rtpmap:0 pcmu/8000
  13. a=rtpmap:101 telephone-event/8000
  14. a=fmtp:101 0-11
  15.  
  16. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  17. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  18. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  19. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  20. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  21. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/10001@137.184.136.244 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  22. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_codec.c:111 sofia/default/10001@137.184.136.244 Original read codec set to PCMU:0
  23. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  24. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_media.c:5973 sofia/default/10001@137.184.136.244 Set 2833 dtmf send payload to 101 recv payload to 101
  25. 2023-07-05 11:23:28.001385 0.30% [DEBUG] sofia.c:7933 (sofia/default/10001@137.184.136.244) State Change CS_NEW -> CS_INIT
  26. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:600 (sofia/default/10001@137.184.136.244) State NEW
  27. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_INIT (Cur 1 Tot 403456)
  28. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10001@137.184.136.244) State INIT
  29. 2023-07-05 11:23:28.001385 0.30% [DEBUG] mod_sofia.c:97 sofia/default/10001@137.184.136.244 SOFIA INIT
  30. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:40 sofia/default/10001@137.184.136.244 Standard INIT
  31. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:48 (sofia/default/10001@137.184.136.244) State Change CS_INIT -> CS_ROUTING
  32. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10001@137.184.136.244) State INIT going to sleep
  33. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_ROUTING (Cur 1 Tot 403456)
  34. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_channel.c:2380 (sofia/default/10001@137.184.136.244) Callstate Change DOWN -> RINGING
  35. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10001@137.184.136.244) State ROUTING
  36. 2023-07-05 11:23:28.001385 0.30% [DEBUG] mod_sofia.c:158 sofia/default/10001@137.184.136.244 SOFIA ROUTING
  37. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_core_state_machine.c:230 sofia/default/10001@137.184.136.244 Standard ROUTING
  38. 2023-07-05 11:23:28.001385 0.30% [INFO] mod_dialplan_xml.c:639 Processing 10001 <10001>->024400442086385601 in context default
  39. 2023-07-05 11:23:28.001385 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] CACHE FAIL
  40. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  41. 2023-07-05 11:23:28.001385 0.30% [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')
  42. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  43. 2023-07-05 11:23:28.001385 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  44. 2023-07-05 11:23:28.001385 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 024400442086385601
  45. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '024400442086385601' limit 1
  46. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '024400442086385601' AND status=0 limit 1
  47. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '024400442086385601' and status=0 LIMIT 1
  48. 2023-07-05 11:23:28.001385 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER10001
  49. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  50. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '024400442086385601' limit 1
  51. 2023-07-05 11:23:28.001385 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 10001 / 10001
  52. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 00442086385601
  53. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 0244 AND status=0 limit 1
  54. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="024400442086385601" LIMIT 1
  55. 2023-07-05 11:23:28.001385 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  56. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="024400442086385601"  AND domains.domain="137.184.136.244" limit 1
  57. 2023-07-05 11:23:28.021359 0.30% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  58. 2023-07-05 11:23:28.021359 0.30% [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("64.20.208.112") 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 "024400442086385601"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  59. 2023-07-05 11:23:28.021359 0.30% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call authentication fail..!!1
  60. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP]  Post Cdrs : 0
  61. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 0
  62. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  63. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  64. <document type="freeswitch/xml">
  65. <section name="dialplan" description="ASTPP Dialplan">
  66. <context name="default">
  67. <extension name="024400442086385601">
  68. <condition field="destination_number" expression="024400442086385601">
  69. <action application="log" data="WARNING Accountcode  is not authenticated!!"/>
  70. <action application="set" data="original_caller_id_name=10001"/>
  71. <action application="set" data="original_caller_id_number=10001"/>
  72. <action application="set" data="error_cdr=1"/>
  73. <action application="set" data="callstart=2023-07-05 05:53:28"/>
  74. <action application="set" data="account_id=0"/>
  75. <action application="set" data="parent_id=0"/>
  76. <action application="set" data="call_direction=outbound"/>
  77. <action application="set" data="sip_ignore_remote_cause=true"/>
  78. <action application="set" data="call_processed=internal"/>
  79. <action application="set" data="effective_destination_number=024400442086385601"/>
  80. <action application="set" data="last_bridge_hangup_cause=AUTHENTICATION_FAIL"/>
  81. <action application="hangup" data="AUTHENTICATION_FAIL"/>
  82. </condition>
  83. </extension>
  84. </context>
  85. </section>
  86. </document>
  87. Dialplan: sofia/default/10001@137.184.136.244 parsing [default->024400442086385601] continue=false
  88. Dialplan: sofia/default/10001@137.184.136.244 Regex (PASS) [024400442086385601] destination_number(024400442086385601) =~ /024400442086385601/ break=on-false
  89. Dialplan: sofia/default/10001@137.184.136.244 Action log(WARNING Accountcode  is not authenticated!!)
  90. Dialplan: sofia/default/10001@137.184.136.244 Action set(original_caller_id_name=10001)
  91. Dialplan: sofia/default/10001@137.184.136.244 Action set(original_caller_id_number=10001)
  92. Dialplan: sofia/default/10001@137.184.136.244 Action set(error_cdr=1)
  93. Dialplan: sofia/default/10001@137.184.136.244 Action set(callstart=2023-07-05 05:53:28)
  94. Dialplan: sofia/default/10001@137.184.136.244 Action set(account_id=0)
  95. Dialplan: sofia/default/10001@137.184.136.244 Action set(parent_id=0)
  96. Dialplan: sofia/default/10001@137.184.136.244 Action set(call_direction=outbound)
  97. Dialplan: sofia/default/10001@137.184.136.244 Action set(sip_ignore_remote_cause=true)
  98. Dialplan: sofia/default/10001@137.184.136.244 Action set(call_processed=internal)
  99. Dialplan: sofia/default/10001@137.184.136.244 Action set(effective_destination_number=024400442086385601)
  100. Dialplan: sofia/default/10001@137.184.136.244 Action set(last_bridge_hangup_cause=AUTHENTICATION_FAIL)
  101. Dialplan: sofia/default/10001@137.184.136.244 Action hangup(AUTHENTICATION_FAIL)
  102. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:281 (sofia/default/10001@137.184.136.244) State Change CS_ROUTING -> CS_EXECUTE
  103. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10001@137.184.136.244) State ROUTING going to sleep
  104. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_EXECUTE (Cur 1 Tot 403456)
  105. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:647 (sofia/default/10001@137.184.136.244) State EXECUTE
  106. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_sofia.c:213 sofia/default/10001@137.184.136.244 SOFIA EXECUTE
  107. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:323 sofia/default/10001@137.184.136.244 Standard EXECUTE
  108. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 log(WARNING Accountcode  is not authenticated!!)
  109. 2023-07-05 11:23:28.021359 0.30% [WARNING] mod_dptools.c:1879 Accountcode  is not authenticated!!
  110. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(original_caller_id_name=10001)
  111. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [original_caller_id_name]=[10001]
  112. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(original_caller_id_number=10001)
  113. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [original_caller_id_number]=[10001]
  114. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(error_cdr=1)
  115. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [error_cdr]=[1]
  116. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(callstart=2023-07-05 05:53:28)
  117. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [callstart]=[2023-07-05 05:53:28]
  118. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(account_id=0)
  119. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [account_id]=[0]
  120. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(parent_id=0)
  121. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [parent_id]=[0]
  122. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(call_direction=outbound)
  123. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [call_direction]=[outbound]
  124. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(sip_ignore_remote_cause=true)
  125. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [sip_ignore_remote_cause]=[true]
  126. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(call_processed=internal)
  127. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [call_processed]=[internal]
  128. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(effective_destination_number=024400442086385601)
  129. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [effective_destination_number]=[024400442086385601]
  130. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 set(last_bridge_hangup_cause=AUTHENTICATION_FAIL)
  131. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_dptools.c:1685 SET sofia/default/10001@137.184.136.244 [last_bridge_hangup_cause]=[AUTHENTICATION_FAIL]
  132. EXECUTE [depth=0] sofia/default/10001@137.184.136.244 hangup(AUTHENTICATION_FAIL)
  133. 2023-07-05 11:23:28.021359 0.30% [NOTICE] mod_dptools.c:1387 Hangup sofia/default/10001@137.184.136.244 [CS_EXECUTE] [NORMAL_CLEARING]
  134. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_session.c:2983 sofia/default/10001@137.184.136.244 skip receive message [PHONE_EVENT] (channel is hungup already)
  135. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:647 (sofia/default/10001@137.184.136.244) State EXECUTE going to sleep
  136. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_HANGUP (Cur 1 Tot 403456)
  137. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:844 (sofia/default/10001@137.184.136.244) Callstate Change RINGING -> HANGUP
  138. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10001@137.184.136.244) State HANGUP
  139. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_sofia.c:468 Channel sofia/default/10001@137.184.136.244 hanging up, cause: NORMAL_CLEARING
  140. 2023-07-05 11:23:28.021359 0.30% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  141. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:59 sofia/default/10001@137.184.136.244 Standard HANGUP, cause: NORMAL_CLEARING
  142. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10001@137.184.136.244) State HANGUP going to sleep
  143. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:616 (sofia/default/10001@137.184.136.244) State Change CS_HANGUP -> CS_REPORTING
  144. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_REPORTING (Cur 1 Tot 403456)
  145. 2023-07-05 11:23:28.021359 0.30% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10001@137.184.136.244) State REPORTING
  146. 2023-07-05 11:23:28.021359 0.30% [INFO] mod_json_cdr.c:271 Process [0da277b6-2f49-4f66-9526-6656b9d11f9d.cdr.json]
  147. 2023-07-05 11:23:28.041358 0.30% [DEBUG] switch_core_state_machine.c:168 sofia/default/10001@137.184.136.244 Standard REPORTING, cause: NORMAL_CLEARING
  148. 2023-07-05 11:23:28.041358 0.30% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10001@137.184.136.244) State REPORTING going to sleep
  149. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_state_machine.c:607 (sofia/default/10001@137.184.136.244) State Change CS_REPORTING -> CS_DESTROY
  150. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_session.c:1753 Session 403456 (sofia/default/10001@137.184.136.244) Locked, Waiting on external entities
  151. 2023-07-05 11:23:28.062262 0.30% [NOTICE] switch_core_session.c:1771 Session 403456 (sofia/default/10001@137.184.136.244) Ended
  152. 2023-07-05 11:23:28.062262 0.30% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/10001@137.184.136.244 [CS_DESTROY]
  153. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_state_machine.c:735 (sofia/default/10001@137.184.136.244) Running State Change CS_DESTROY (Cur 0 Tot 403456)
  154. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10001@137.184.136.244) State DESTROY
  155. 2023-07-05 11:23:28.062262 0.30% [DEBUG] mod_sofia.c:379 sofia/default/10001@137.184.136.244 SOFIA DESTROY
  156. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_state_machine.c:175 sofia/default/10001@137.184.136.244 Standard DESTROY
  157. 2023-07-05 11:23:28.062262 0.30% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10001@137.184.136.244) State DESTROY going to sleep
  158. 2023-07-05 11:23:36.461373 0.17% [NOTICE] switch_channel.c:1123 New Channel sofia/default/10001@137.184.136.244 [1129ee12-5548-43c8-8faf-986578f0881e]
  159. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_NEW (Cur 1 Tot 403457)
  160. 2023-07-05 11:23:36.461373 0.17% [INFO] sofia.c:10462 sofia/default/10001@137.184.136.244 receiving invite from 64.20.208.112:49697 version: 1.10.7 -release 64bit call-id: 710196744-350105274-978360850
  161. 2023-07-05 11:23:36.461373 0.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 64.20.208.112:0.
  162. 2023-07-05 11:23:36.461373 0.17% [DEBUG] sofia.c:10585 IP 64.20.208.112 Approved by acl "default[]". Access Granted.
  163. 2023-07-05 11:23:36.461373 0.17% [DEBUG] sofia.c:7499 Channel sofia/default/10001@137.184.136.244 entering state [received][100]
  164. 2023-07-05 11:23:36.461373 0.17% [DEBUG] sofia.c:7509 Remote SDP:
  165. v=0
  166. o=10001 16264 18299 IN IP4 192.168.1.83
  167. s=call
  168. c=IN IP4 192.168.1.83
  169. t=0 0
  170. m=audio 25282 RTP/AVP 0 101
  171. a=rtpmap:0 pcmu/8000
  172. a=rtpmap:101 telephone-event/8000
  173. a=fmtp:101 0-11
  174.  
  175. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  176. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  177. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  178. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  179. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  180. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/10001@137.184.136.244 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  181. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_codec.c:111 sofia/default/10001@137.184.136.244 Original read codec set to PCMU:0
  182. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  183. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_media.c:5973 sofia/default/10001@137.184.136.244 Set 2833 dtmf send payload to 101 recv payload to 101
  184. 2023-07-05 11:23:36.461373 0.17% [DEBUG] sofia.c:7933 (sofia/default/10001@137.184.136.244) State Change CS_NEW -> CS_INIT
  185. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:600 (sofia/default/10001@137.184.136.244) State NEW
  186. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_INIT (Cur 1 Tot 403457)
  187. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10001@137.184.136.244) State INIT
  188. 2023-07-05 11:23:36.461373 0.17% [DEBUG] mod_sofia.c:97 sofia/default/10001@137.184.136.244 SOFIA INIT
  189. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:40 sofia/default/10001@137.184.136.244 Standard INIT
  190. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:48 (sofia/default/10001@137.184.136.244) State Change CS_INIT -> CS_ROUTING
  191. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10001@137.184.136.244) State INIT going to sleep
  192. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_ROUTING (Cur 1 Tot 403457)
  193. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_channel.c:2380 (sofia/default/10001@137.184.136.244) Callstate Change DOWN -> RINGING
  194. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10001@137.184.136.244) State ROUTING
  195. 2023-07-05 11:23:36.461373 0.17% [DEBUG] mod_sofia.c:158 sofia/default/10001@137.184.136.244 SOFIA ROUTING
  196. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_core_state_machine.c:230 sofia/default/10001@137.184.136.244 Standard ROUTING
  197. 2023-07-05 11:23:36.461373 0.17% [INFO] mod_dialplan_xml.c:639 Processing 10001 <10001>->*243011442086385601 in context default
  198. 2023-07-05 11:23:36.461373 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP] CACHE FAIL
  199. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  200. 2023-07-05 11:23:36.461373 0.17% [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')
  201. 2023-07-05 11:23:36.461373 0.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  202. 2023-07-05 11:23:36.461373 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  203. 2023-07-05 11:23:36.461373 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Hunt Destination Number: *243011442086385601
  204. 2023-07-05 11:23:36.461373 0.17% [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
  205. 2023-07-05 11:23:36.461373 0.17% [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
  206. 2023-07-05 11:23:36.481369 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Feature Code Transfer Blind Value :*2
  207. 2023-07-05 11:23:36.481369 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Destination Number43011442086385601
  208. 2023-07-05 11:23:36.481369 0.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Feature Code Action 3: call Transfer Blind
  209. 2023-07-05 11:23:36.481369 0.17% [ERR] mod_lua.cpp:202 ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1369: attempt to concatenate global 'user_domain' (a nil value)
  210. stack traceback:
  211.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1369: in function 'get_sip_accountcode'
  212.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1402: in function 'set_feature_code_action'
  213.         ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:2247: in function 'feature_code_call_transfer'
  214.         ./astpp/scripts/astpp.dialplan.lua:42: in main chunk
  215.         [C]: in function 'dofile'
  216.         ./astpp/astpp_deb9.lua:138: in main chunk
  217. 2023-07-05 11:23:36.481369 0.17% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  218. 2023-07-05 11:23:36.481369 0.17% [WARNING] mod_dialplan_xml.c:669 Context default not found
  219. 2023-07-05 11:23:36.481369 0.17% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  220. 2023-07-05 11:23:36.481369 0.17% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/10001@137.184.136.244 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  221. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10001@137.184.136.244) State ROUTING going to sleep
  222. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_HANGUP (Cur 1 Tot 403457)
  223. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/10001@137.184.136.244) Callstate Change RINGING -> HANGUP
  224. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10001@137.184.136.244) State HANGUP
  225. 2023-07-05 11:23:36.481369 0.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/10001@137.184.136.244 hanging up, cause: NO_ROUTE_DESTINATION
  226. 2023-07-05 11:23:36.481369 0.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  227. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/10001@137.184.136.244 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  228. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10001@137.184.136.244) State HANGUP going to sleep
  229. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/10001@137.184.136.244) State Change CS_HANGUP -> CS_REPORTING
  230. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10001@137.184.136.244) Running State Change CS_REPORTING (Cur 1 Tot 403457)
  231. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10001@137.184.136.244) State REPORTING
  232. 2023-07-05 11:23:36.481369 0.17% [INFO] mod_json_cdr.c:271 Process [1129ee12-5548-43c8-8faf-986578f0881e.cdr.json]
  233. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/10001@137.184.136.244 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  234. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10001@137.184.136.244) State REPORTING going to sleep
  235. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/10001@137.184.136.244) State Change CS_REPORTING -> CS_DESTROY
  236. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_session.c:1753 Session 403457 (sofia/default/10001@137.184.136.244) Locked, Waiting on external entities
  237. 2023-07-05 11:23:36.481369 0.17% [NOTICE] switch_core_session.c:1771 Session 403457 (sofia/default/10001@137.184.136.244) Ended
  238. 2023-07-05 11:23:36.481369 0.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/10001@137.184.136.244 [CS_DESTROY]
  239. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/10001@137.184.136.244) Running State Change CS_DESTROY (Cur 0 Tot 403457)
  240. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10001@137.184.136.244) State DESTROY
  241. 2023-07-05 11:23:36.481369 0.17% [DEBUG] mod_sofia.c:379 sofia/default/10001@137.184.136.244 SOFIA DESTROY
  242. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/10001@137.184.136.244 Standard DESTROY
  243. 2023-07-05 11:23:36.481369 0.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10001@137.184.136.244) State DESTROY going to sleep
  244. 2023-07-05 11:23:44.862398 0.10% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1001@137.184.136.244 [dfa81bd5-d7d0-4052-90ee-f84804c91572]
  245. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@137.184.136.244) Running State Change CS_NEW (Cur 1 Tot 403458)
  246. 2023-07-05 11:23:44.862398 0.10% [INFO] sofia.c:10462 sofia/default/1001@137.184.136.244 receiving invite from 64.20.208.186:63989 version: 1.10.7 -release 64bit call-id: 1844404547-846903676-1098641597
  247. 2023-07-05 11:23:44.862398 0.10% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 64.20.208.186:0.
  248. 2023-07-05 11:23:44.862398 0.10% [DEBUG] sofia.c:10585 IP 64.20.208.186 Approved by acl "default[]". Access Granted.
  249. 2023-07-05 11:23:44.862398 0.10% [DEBUG] sofia.c:7499 Channel sofia/default/1001@137.184.136.244 entering state [received][100]
  250. 2023-07-05 11:23:44.862398 0.10% [DEBUG] sofia.c:7509 Remote SDP:
  251. v=0
  252. o=1001 16264 18299 IN IP4 192.168.1.83
  253. s=call
  254. c=IN IP4 192.168.1.83
  255. t=0 0
  256. m=audio 25282 RTP/AVP 0 101
  257. a=rtpmap:0 pcmu/8000
  258. a=rtpmap:101 telephone-event/8000
  259. a=fmtp:101 0-11
  260.  
  261. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  262. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  263. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  264. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [pcmu:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  265. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  266. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/1001@137.184.136.244 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  267. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_codec.c:111 sofia/default/1001@137.184.136.244 Original read codec set to PCMU:0
  268. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  269. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_media.c:5973 sofia/default/1001@137.184.136.244 Set 2833 dtmf send payload to 101 recv payload to 101
  270. 2023-07-05 11:23:44.862398 0.10% [DEBUG] sofia.c:7933 (sofia/default/1001@137.184.136.244) State Change CS_NEW -> CS_INIT
  271. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1001@137.184.136.244) State NEW
  272. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@137.184.136.244) Running State Change CS_INIT (Cur 1 Tot 403458)
  273. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1001@137.184.136.244) State INIT
  274. 2023-07-05 11:23:44.862398 0.10% [DEBUG] mod_sofia.c:97 sofia/default/1001@137.184.136.244 SOFIA INIT
  275. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:40 sofia/default/1001@137.184.136.244 Standard INIT
  276. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:48 (sofia/default/1001@137.184.136.244) State Change CS_INIT -> CS_ROUTING
  277. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1001@137.184.136.244) State INIT going to sleep
  278. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@137.184.136.244) Running State Change CS_ROUTING (Cur 1 Tot 403458)
  279. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_channel.c:2380 (sofia/default/1001@137.184.136.244) Callstate Change DOWN -> RINGING
  280. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1001@137.184.136.244) State ROUTING
  281. 2023-07-05 11:23:44.862398 0.10% [DEBUG] mod_sofia.c:158 sofia/default/1001@137.184.136.244 SOFIA ROUTING
  282. 2023-07-05 11:23:44.862398 0.10% [DEBUG] switch_core_state_machine.c:230 sofia/default/1001@137.184.136.244 Standard ROUTING
  283. 2023-07-05 11:23:44.862398 0.10% [INFO] mod_dialplan_xml.c:639 Processing 1001 <1001>->7643442086385601 in context default
  284. 2023-07-05 11:23:44.881364 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] CACHE FAIL
  285. 2023-07-05 11:23:44.881364 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  286. 2023-07-05 11:23:44.881364 0.10% [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')
  287. 2023-07-05 11:23:44.881364 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  288. 2023-07-05 11:23:44.901368 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  289. 2023-07-05 11:23:44.901368 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 7643442086385601
  290. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '7643442086385601' limit 1
  291. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '7643442086385601' AND status=0 limit 1
  292. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '7643442086385601' and status=0 LIMIT 1
  293. 2023-07-05 11:23:44.901368 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER1001
  294. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  295. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '7643442086385601' limit 1
  296. 2023-07-05 11:23:44.901368 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1001 / 1001
  297. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 442086385601
  298. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 7643 AND status=0 limit 1
  299. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7643442086385601" LIMIT 1
  300. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  301. 2023-07-05 11:23:44.901368 0.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="7643442086385601"  AND domains.domain="137.184.136.244" limit 1
  302. 2023-07-05 11:23:44.901368 0.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  303. 2023-07-05 11:23:44.901368 0.10% [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("64.20.208.186") 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 "7643442086385601"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1