Type /help to see a list of commands +OK log level [7] 2022-12-09 09:48:33.137257 91.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/100200@168.119.48.166 [6e5eaaf7-a3a2-496c-8581-54b2300ea4d3] 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/100200@168.119.48.166) Running State Change CS_NEW (Cur 3 Tot 70) 2022-12-09 09:48:33.137257 91.50% [INFO] sofia.c:10462 sofia/default/100200@168.119.48.166 receiving invite from 168.119.48.166:5078 version: 1.10.7 -release 64bit call-id: 7c297e1e-f249-123b-41a9-960001673637 2022-12-09 09:48:33.137257 91.50% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 168.119.48.166:0. 2022-12-09 09:48:33.137257 91.50% [DEBUG] sofia.c:10585 IP 168.119.48.166 Approved by acl "default[]". Access Granted. 2022-12-09 09:48:33.137257 91.50% [DEBUG] sofia.c:7499 Channel sofia/default/100200@168.119.48.166 entering state [received][100] 2022-12-09 09:48:33.137257 91.50% [DEBUG] sofia.c:7509 Remote SDP: v=0 o=FreeSWITCH 1670558679 1670558680 IN IP4 168.119.48.166 s=FreeSWITCH c=IN IP4 168.119.48.166 t=0 0 m=audio 20634 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/100200@168.119.48.166 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_codec.c:111 sofia/default/100200@168.119.48.166 Original read codec set to PCMA:8 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_media.c:5973 sofia/default/100200@168.119.48.166 Set 2833 dtmf send payload to 101 recv payload to 101 2022-12-09 09:48:33.137257 91.50% [DEBUG] sofia.c:7933 (sofia/default/100200@168.119.48.166) State Change CS_NEW -> CS_INIT 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:600 (sofia/default/100200@168.119.48.166) State NEW 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/100200@168.119.48.166) Running State Change CS_INIT (Cur 3 Tot 70) 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/100200@168.119.48.166) State INIT 2022-12-09 09:48:33.137257 91.50% [DEBUG] mod_sofia.c:97 sofia/default/100200@168.119.48.166 SOFIA INIT 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:40 sofia/default/100200@168.119.48.166 Standard INIT 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:48 (sofia/default/100200@168.119.48.166) State Change CS_INIT -> CS_ROUTING 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/100200@168.119.48.166) State INIT going to sleep 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/100200@168.119.48.166) Running State Change CS_ROUTING (Cur 3 Tot 70) 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_channel.c:2380 (sofia/default/100200@168.119.48.166) Callstate Change DOWN -> RINGING 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/100200@168.119.48.166) State ROUTING 2022-12-09 09:48:33.137257 91.50% [DEBUG] mod_sofia.c:158 sofia/default/100200@168.119.48.166 SOFIA ROUTING 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_core_state_machine.c:230 sofia/default/100200@168.119.48.166 Standard ROUTING 2022-12-09 09:48:33.137257 91.50% [INFO] mod_dialplan_xml.c:639 Processing 100200 <100200>->9100010 in context default 2022-12-09 09:48:33.137257 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0 2022-12-09 09:48:33.137257 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-12-09 09:48:33.157224 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0 2022-12-09 09:48:33.157224 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 9100010 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '9100010' limit 1 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '9100010' and status=0 LIMIT 1 2022-12-09 09:48:33.157224 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERadmin 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '9100010' limit 1 2022-12-09 09:48:33.157224 91.50% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID 2022-12-09 09:48:33.157224 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 100200 / 100200 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 0 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 910001 AND status=0 limit 1 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID 2022-12-09 09:48:33.157224 91.50% [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 ="9100010" LIMIT 1 2022-12-09 09:48:33.157224 91.50% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="9100010" LIMIT 1 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="16" and did_id ="142" and number ="100200" and status = '0' LIMIT 1 2022-12-09 09:48:33.157224 91.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound 2022-12-09 09:48:33.157224 91.50% [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("168.119.48.166") 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 "9100010" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2022-12-09 09:48:33.157224 91.50% [ERR] switch_core_sqldb.c:1310 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("168.119.48.166") 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 "9100010" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1] [STATE: HY000 CODE 1690 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.31]BIGINT UNSIGNED value is out of range in '((0x01 << (32 - substring_index(`astpp`.`ip_map`.`ip`,'/',(-(1))))) - 1)' ] 2022-12-09 09:48:33.157224 91.50% [ERR] mod_lua.cpp:202 ./astpp/lib/astpp.functions.lua:307: assertion failed! stack traceback: [C]: in function 'assert' ./astpp/lib/astpp.functions.lua:307: in function <./astpp/lib/astpp.functions.lua:300> (...tail calls...) ./astpp/scripts/astpp.dialplan.lua:266: in main chunk [C]: in function 'dofile' ./astpp/astpp_deb9.lua:138: in main chunk 2022-12-09 09:48:33.157224 91.50% [ERR] mod_lua.cpp:270 LUA script parse/execute error! 2022-12-09 09:48:33.157224 91.50% [WARNING] mod_dialplan_xml.c:669 Context default not found 2022-12-09 09:48:33.157224 91.50% [INFO] switch_core_state_machine.c:306 No Route, Aborting 2022-12-09 09:48:33.157224 91.50% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/100200@168.119.48.166 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/100200@168.119.48.166) State ROUTING going to sleep 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/100200@168.119.48.166) Running State Change CS_HANGUP (Cur 3 Tot 70) 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:844 (sofia/default/100200@168.119.48.166) Callstate Change RINGING -> HANGUP 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/100200@168.119.48.166) State HANGUP 2022-12-09 09:48:33.157224 91.50% [DEBUG] mod_sofia.c:468 Channel sofia/default/100200@168.119.48.166 hanging up, cause: NO_ROUTE_DESTINATION 2022-12-09 09:48:33.157224 91.50% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:59 sofia/default/100200@168.119.48.166 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/100200@168.119.48.166) State HANGUP going to sleep 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:616 (sofia/default/100200@168.119.48.166) State Change CS_HANGUP -> CS_REPORTING 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/100200@168.119.48.166) Running State Change CS_REPORTING (Cur 3 Tot 70) 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/100200@168.119.48.166) State REPORTING 2022-12-09 09:48:33.157224 91.50% [INFO] mod_json_cdr.c:271 Process [6e5eaaf7-a3a2-496c-8581-54b2300ea4d3.cdr.json] 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:168 sofia/default/100200@168.119.48.166 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/100200@168.119.48.166) State REPORTING going to sleep 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:607 (sofia/default/100200@168.119.48.166) State Change CS_REPORTING -> CS_DESTROY 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_session.c:1753 Session 70 (sofia/default/100200@168.119.48.166) Locked, Waiting on external entities 2022-12-09 09:48:33.157224 91.50% [NOTICE] switch_core_session.c:1771 Session 70 (sofia/default/100200@168.119.48.166) Ended 2022-12-09 09:48:33.157224 91.50% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/100200@168.119.48.166 [CS_DESTROY] 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:735 (sofia/default/100200@168.119.48.166) Running State Change CS_DESTROY (Cur 2 Tot 70) 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/100200@168.119.48.166) State DESTROY 2022-12-09 09:48:33.157224 91.50% [DEBUG] mod_sofia.c:379 sofia/default/100200@168.119.48.166 SOFIA DESTROY 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:175 sofia/default/100200@168.119.48.166 Standard DESTROY 2022-12-09 09:48:33.157224 91.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/100200@168.119.48.166) State DESTROY going to sleep freeswitch@BetaQA> /exit