2021-05-26 10:42:41.577486 [NOTICE] switch_channel.c:1104 New Channel sofia/default/8620826254@astpp4.4z.com [18dd14f4-be0f-11eb-8cb4-cf4bbc7bbce3] 2021-05-26 10:42:41.577486 [DEBUG] switch_core_state_machine.c:584 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_NEW (Cur 1 Tot 85) 2021-05-26 10:42:41.577486 [DEBUG] sofia.c:9873 sofia/default/8620826254@astpp4.4z.com receiving invite from 213.145.5.138:58733 version: 1.6.20 64bit 2021-05-26 10:42:41.577486 [DEBUG] sofia.c:10044 IP 213.145.5.138 Rejected by acl "default". Falling back to Digest auth. 2021-05-26 10:42:41.577486 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'default' for [!%40%23$%25%5E&*()qwerty@astpp4.4z.com] from ip 213.145.5.138 2021-05-26 10:42:41.577486 [DEBUG] switch_core_state_machine.c:603 (sofia/default/8620826254@astpp4.4z.com) State NEW 2021-05-26 10:42:41.577486 [DEBUG] sofia.c:2334 detaching session 18dd14f4-be0f-11eb-8cb4-cf4bbc7bbce3 2021-05-26 10:42:41.717497 [DEBUG] sofia.c:2442 Re-attaching to session 18dd14f4-be0f-11eb-8cb4-cf4bbc7bbce3 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:9873 sofia/default/8620826254@astpp4.4z.com receiving invite from 213.145.5.138:58733 version: 1.6.20 64bit 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:10044 IP 213.145.5.138 Rejected by acl "default". Falling back to Digest auth. 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:11168 Setting NAT mode based on via received 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:7084 Channel sofia/default/8620826254@astpp4.4z.com entering state [received][100] 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=Z 1622025753529 1 IN IP4 213.145.5.138 s=Z c=IN IP4 213.145.5.138 t=0 0 m=audio 8000 RTP/AVP 106 9 98 101 0 8 3 a=rtpmap:106 opus/48000/2 a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1 a=rtpmap:98 telephone-event/48000 a=fmtp:98 0-16 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMA:8:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMU:0:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 98@48000 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/8620826254@astpp4.4z.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2021-05-26 10:42:41.737483 [DEBUG] switch_core_codec.c:111 sofia/default/8620826254@astpp4.4z.com Original read codec set to PCMU:0 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2021-05-26 10:42:41.737483 [DEBUG] switch_core_media.c:4767 sofia/default/8620826254@astpp4.4z.com Set 2833 dtmf send payload to 101 recv payload to 101 2021-05-26 10:42:41.737483 [DEBUG] sofia.c:7507 (sofia/default/8620826254@astpp4.4z.com) State Change CS_NEW -> CS_INIT 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:584 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_INIT (Cur 1 Tot 85) 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:627 (sofia/default/8620826254@astpp4.4z.com) State INIT 2021-05-26 10:42:41.737483 [DEBUG] mod_sofia.c:90 sofia/default/8620826254@astpp4.4z.com SOFIA INIT 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:40 sofia/default/8620826254@astpp4.4z.com Standard INIT 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:48 (sofia/default/8620826254@astpp4.4z.com) State Change CS_INIT -> CS_ROUTING 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:627 (sofia/default/8620826254@astpp4.4z.com) State INIT going to sleep 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:584 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_ROUTING (Cur 1 Tot 85) 2021-05-26 10:42:41.737483 [DEBUG] switch_channel.c:2249 (sofia/default/8620826254@astpp4.4z.com) Callstate Change DOWN -> RINGING 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:643 (sofia/default/8620826254@astpp4.4z.com) State ROUTING 2021-05-26 10:42:41.737483 [DEBUG] mod_sofia.c:143 sofia/default/8620826254@astpp4.4z.com SOFIA ROUTING 2021-05-26 10:42:41.737483 [DEBUG] switch_core_state_machine.c:236 sofia/default/8620826254@astpp4.4z.com Standard ROUTING 2021-05-26 10:42:41.737483 [INFO] mod_dialplan_xml.c:637 Processing 8620826254 <8620826254>->!@#$%^&*()qwerty in context default 2021-05-26 10:42:41.760846 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f8ed40f8ab0 Connected. 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-05-26 10:42:41.760846 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : !@#$%^&*()qwerty 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '!@#$%^&*()qwerty' AND status=0 limit 1 2021-05-26 10:42:41.760846 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 8620826254 / 8620826254 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="!@#$%^&*()qwerty" LIMIT 1 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="!@#$%^&*()qwerty" limit 1 2021-05-26 10:42:41.760846 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound 2021-05-26 10:42:41.760846 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 8620826254] 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "8620826254" AND deleted = 0 limit 1 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^!@#$%^&*()qwerty.*' OR blocked_patterns = '^!@#$%^&*()qwert.*' OR blocked_patterns = '^!@#$%^&*()qwer.*' OR blocked_patterns = '^!@#$%^&*()qwe.*' OR blocked_patterns = '^!@#$%^&*()qw.*' OR blocked_patterns = '^!@#$%^&*()q.*' OR blocked_patterns = '^!@#$%^&*().*' OR blocked_patterns = '^!@#$%^&*(.*' OR blocked_patterns = '^!@#$%^&*.*' OR blocked_patterns = '^!@#$%^&.*' OR blocked_patterns = '^!@#$%^.*' OR blocked_patterns = '^!@#$%.*' OR blocked_patterns = '^!@#$.*' OR blocked_patterns = '^!@#.*' OR blocked_patterns = '^!@.*' OR blocked_patterns = '^!.*' OR blocked_patterns ='--') AND accountid = 14 limit 1 2021-05-26 10:42:41.760846 [DEBUG] switch_cpp.cpp:1365 [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 ="!@#$%^&*()qwerty" AND A.accountid = '14' limit 1 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : !@#$%^&*()qwerty 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="!@#$%^&*()qwerty" LIMIT 1 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="!@#$%^&*()qwerty" limit 1 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call direction : outbound 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="!@#$%^&*()qwerty" AND (accountid = 0 OR status = 1) LIMIT 1 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [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 (patterns = '^!@#$%^&*()qwerty.*' OR patterns = '^!@#$%^&*()qwert.*' OR patterns = '^!@#$%^&*()qwer.*' OR patterns = '^!@#$%^&*()qwe.*' OR patterns = '^!@#$%^&*()qw.*' OR patterns = '^!@#$%^&*()q.*' OR patterns = '^!@#$%^&*().*' OR patterns = '^!@#$%^&*(.*' OR patterns = '^!@#$%^&*.*' OR patterns = '^!@#$%^&.*' OR patterns = '^!@#$%^.*' OR patterns = '^!@#$%.*' OR patterns = '^!@#$.*' OR patterns = '^!@#.*' OR patterns = '^!@.*' OR patterns = '^!.*' OR patterns ='--') AND accountid = 14 ORDER BY LENGTH(PKGPTR.patterns) DESC 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 14 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 8620826254 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 0 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 1 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^!@#$%^&*()qwerty.*' OR pattern = '^!@#$%^&*()qwert.*' OR pattern = '^!@#$%^&*()qwer.*' OR pattern = '^!@#$%^&*()qwe.*' OR pattern = '^!@#$%^&*()qw.*' OR pattern = '^!@#$%^&*()q.*' OR pattern = '^!@#$%^&*().*' OR pattern = '^!@#$%^&*(.*' OR pattern = '^!@#$%^&*.*' OR pattern = '^!@#$%^&.*' OR pattern = '^!@#$%^.*' OR pattern = '^!@#$%.*' OR pattern = '^!@#$.*' OR pattern = '^!@#.*' OR pattern = '^!@.*' OR pattern = '^!.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=14) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2021-05-26 10:42:41.797489 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: outbound 2021-05-26 10:42:41.797489 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Rates not found!!! 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] post_cdrs:::0 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 14 2021-05-26 10:42:41.797489 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
2021-05-26 10:42:41.797489 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f8ed40f8ab0 released. Dialplan: sofia/default/8620826254@astpp4.4z.com parsing [default->!@#$%^&*()qwerty] continue=false Dialplan: sofia/default/8620826254@astpp4.4z.com Regex (FAIL) [!@#$%^&*()qwerty] destination_number(!@#$%^&*()qwerty) =~ /!@#$%^&*()qwerty/ break=on-false 2021-05-26 10:42:41.797489 [INFO] switch_core_state_machine.c:311 No Route, Aborting 2021-05-26 10:42:41.797489 [NOTICE] switch_core_state_machine.c:312 Hangup sofia/default/8620826254@astpp4.4z.com [CS_ROUTING] [NO_ROUTE_DESTINATION] 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:643 (sofia/default/8620826254@astpp4.4z.com) State ROUTING going to sleep 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:584 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_HANGUP (Cur 1 Tot 85) 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:850 (sofia/default/8620826254@astpp4.4z.com) Callstate Change RINGING -> HANGUP 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:852 (sofia/default/8620826254@astpp4.4z.com) State HANGUP 2021-05-26 10:42:41.797489 [DEBUG] mod_sofia.c:438 Channel sofia/default/8620826254@astpp4.4z.com hanging up, cause: NO_ROUTE_DESTINATION 2021-05-26 10:42:41.797489 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 404 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:60 sofia/default/8620826254@astpp4.4z.com Standard HANGUP, cause: NO_ROUTE_DESTINATION 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:852 (sofia/default/8620826254@astpp4.4z.com) State HANGUP going to sleep 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:619 (sofia/default/8620826254@astpp4.4z.com) State Change CS_HANGUP -> CS_REPORTING 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:584 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_REPORTING (Cur 1 Tot 85) 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:938 (sofia/default/8620826254@astpp4.4z.com) State REPORTING 2021-05-26 10:42:41.797489 [INFO] mod_json_cdr.c:271 Process [18dd14f4-be0f-11eb-8cb4-cf4bbc7bbce3.cdr.json] 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:174 sofia/default/8620826254@astpp4.4z.com Standard REPORTING, cause: NO_ROUTE_DESTINATION 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:938 (sofia/default/8620826254@astpp4.4z.com) State REPORTING going to sleep 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:610 (sofia/default/8620826254@astpp4.4z.com) State Change CS_REPORTING -> CS_DESTROY 2021-05-26 10:42:41.797489 [DEBUG] switch_core_session.c:1665 Session 85 (sofia/default/8620826254@astpp4.4z.com) Locked, Waiting on external entities 2021-05-26 10:42:41.797489 [NOTICE] switch_core_session.c:1683 Session 85 (sofia/default/8620826254@astpp4.4z.com) Ended 2021-05-26 10:42:41.797489 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/8620826254@astpp4.4z.com [CS_DESTROY] 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:741 (sofia/default/8620826254@astpp4.4z.com) Running State Change CS_DESTROY (Cur 0 Tot 85) 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:751 (sofia/default/8620826254@astpp4.4z.com) State DESTROY 2021-05-26 10:42:41.797489 [DEBUG] mod_sofia.c:343 sofia/default/8620826254@astpp4.4z.com SOFIA DESTROY 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:181 sofia/default/8620826254@astpp4.4z.com Standard DESTROY 2021-05-26 10:42:41.797489 [DEBUG] switch_core_state_machine.c:751 (sofia/default/8620826254@astpp4.4z.com) State DESTROY going to sleep