2024-05-03 12:27:25.389513 98.67% [NOTICE] switch_channel.c:1123 New Channel sofia/default/+6785555051 [51543230-2656-4f8a-85f2-61b2786a683f] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+6785555051) Running State Change CS_NEW (Cur 1 Tot 1298) 2024-05-03 12:27:25.389513 98.67% [INFO] sofia.c:10453 sofia/default/+6785555051 receiving invite from 103.36.145.12:5060 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: 05601ae7292089b757c5301a3acbccd7@103.36.145.12:5060 2024-05-03 12:27:25.389513 98.67% [DEBUG] sofia.c:10547 verifying acl "default" for ip/port 103.36.145.12:0. 2024-05-03 12:27:25.389513 98.67% [DEBUG] sofia.c:10576 IP 103.36.145.12 Approved by acl "default[]". Access Granted. 2024-05-03 12:27:25.389513 98.67% [DEBUG] sofia.c:7487 Channel sofia/default/+6785555051 entering state [received][100] 2024-05-03 12:27:25.389513 98.67% [DEBUG] sofia.c:7497 Remote SDP: v=0 o=root 1082046271 1082046271 IN IP4 103.36.145.12 s=Asterisk PBX 16.7.0 c=IN IP4 103.36.145.12 t=0 0 m=audio 10548 RTP/AVP 8 0 18 3 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=maxptime:150 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:3750 Set Codec sofia/default/+6785555051 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_codec.c:111 sofia/default/+6785555051 Original read codec set to PCMA:8 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_media.c:5850 sofia/default/+6785555051 Set 2833 dtmf send payload to 101 recv payload to 101 2024-05-03 12:27:25.389513 98.67% [DEBUG] sofia.c:7921 (sofia/default/+6785555051) State Change CS_NEW -> CS_INIT 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:600 (sofia/default/+6785555051) State NEW 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+6785555051) Running State Change CS_INIT (Cur 1 Tot 1298) 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+6785555051) State INIT 2024-05-03 12:27:25.389513 98.67% [DEBUG] mod_sofia.c:97 sofia/default/+6785555051 SOFIA INIT 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:40 sofia/default/+6785555051 Standard INIT 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:48 (sofia/default/+6785555051) State Change CS_INIT -> CS_ROUTING 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+6785555051) State INIT going to sleep 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+6785555051) Running State Change CS_ROUTING (Cur 1 Tot 1298) 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_channel.c:2380 (sofia/default/+6785555051) Callstate Change DOWN -> RINGING 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+6785555051) State ROUTING 2024-05-03 12:27:25.389513 98.67% [DEBUG] mod_sofia.c:158 sofia/default/+6785555051 SOFIA ROUTING 2024-05-03 12:27:25.389513 98.67% [DEBUG] switch_core_state_machine.c:230 sofia/default/+6785555051 Standard ROUTING 2024-05-03 12:27:25.389513 98.67% [INFO] mod_dialplan_xml.c:639 Processing +6785555051;cpc=ordinary <+6785555051>->8700004 in context default 2024-05-03 12:27:25.409432 98.67% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2024-05-03 12:27:25.409432 98.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 8700004 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0 2024-05-03 12:27:25.409432 98.67% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER+6785555051;cpc=ordinary 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '8700004' limit 1 2024-05-03 12:27:25.409432 98.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : +6785555051;cpc=ordinary / +6785555051 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID 2024-05-03 12:27:25.409432 98.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.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 ="8700004" LIMIT 1 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2024-05-03 12:27:25.409432 98.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound 2024-05-03 12:27:25.409432 98.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("103.36.145.12") 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 "8700004" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2024-05-03 12:27:25.409432 98.67% [ERR] switch_core_sqldb.c:1308 ERR: [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("103.36.145.12") 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 "8700004" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1] [STATE: HY000 CODE 1690 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.34]BIGINT UNSIGNED value is out of range in '((0x01 << (32 - substring_index(`astpp`.`ip_map`.`ip`,'/',(-(1))))) - 1)' ] 2024-05-03 12:27:25.409432 98.67% [ERR] mod_lua.cpp:202 /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:339: assertion failed! stack traceback: [C]: in function 'assert' /usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:339: in function (...tail calls...) ...ocal/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:291: in main chunk [C]: in function 'dofile' ./astpp/astpp_deb9.lua:138: in main chunk 2024-05-03 12:27:25.409432 98.67% [ERR] mod_lua.cpp:269 LUA script parse/execute error! 2024-05-03 12:27:25.409432 98.67% [WARNING] mod_dialplan_xml.c:669 Context default not found 2024-05-03 12:27:25.409432 98.67% [INFO] switch_core_state_machine.c:306 No Route, Aborting 2024-05-03 12:27:25.409432 98.67% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/+6785555051 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+6785555051) State ROUTING going to sleep 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+6785555051) Running State Change CS_HANGUP (Cur 1 Tot 1298) 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_core_state_machine.c:844 (sofia/default/+6785555051) Callstate Change RINGING -> HANGUP 2024-05-03 12:27:25.409432 98.67% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+6785555051) State HANGUP 2024-05-03 12:27:25.409432 98.67% [DEBUG] mod_sofia.c:468 Channel sofia/default/+6785555051 hanging up, cause: NO_ROUTE_DESTINATION 2024-05-03 12:27:25.429429 98.67% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404 2024-05-03 12:27:25.429429 98.67% [DEBUG] switch_core_state_machine.c:59 sofia/default/+6785555051 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2024-05-03 12:27:25.429429 98.67% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+6785555051) State HANGUP going to sleep 2024-05-03 12:27:25.429429 98.67% [DEBUG] switch_core_state_machine.c:616 (sofia/default/+6785555051) State Change CS_HANGUP -> CS_REPORTING 2024-05-03 12:27:25.429429 98.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+6785555051) Running State Change CS_REPORTING (Cur 1 Tot 1298) 2024-05-03 12:27:25.429429 98.67% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+6785555051) State REPORTING 2024-05-03 12:27:25.429429 98.67% [INFO] mod_json_cdr.c:272 Process [51543230-2656-4f8a-85f2-61b2786a683f.cdr.json] 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:168 sofia/default/+6785555051 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+6785555051) State REPORTING going to sleep 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:607 (sofia/default/+6785555051) State Change CS_REPORTING -> CS_DESTROY 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_session.c:1743 Session 1298 (sofia/default/+6785555051) Locked, Waiting on external entities 2024-05-03 12:27:30.669465 98.63% [NOTICE] switch_core_session.c:1761 Session 1298 (sofia/default/+6785555051) Ended 2024-05-03 12:27:30.669465 98.63% [NOTICE] switch_core_session.c:1765 Close Channel sofia/default/+6785555051 [CS_DESTROY] 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:735 (sofia/default/+6785555051) Running State Change CS_DESTROY (Cur 0 Tot 1298) 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+6785555051) State DESTROY 2024-05-03 12:27:30.669465 98.63% [DEBUG] mod_sofia.c:379 sofia/default/+6785555051 SOFIA DESTROY 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:175 sofia/default/+6785555051 Standard DESTROY 2024-05-03 12:27:30.669465 98.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+6785555051) State DESTROY going to sleep