freeswitch@gibfibre> freeswitch@gibfibre> 2021-10-29 05:20:55.414820 [NOTICE] switch_channel.c:1118 New Channel sofia/default/0001653350@46.101.114.158:5060 [c5fa65f2-b537-4b01-a18d-cc022bc86212] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_NEW (Cur 1 Tot 1584) 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10280 sofia/default/0001653350@46.101.114.158:5060 receiving invite from 46.101.114.158:5060 version: 1.10.5 -release-17-25569c1631 64bit 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 46.101.114.158:0. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10403 IP 46.101.114.158 Approved by acl "default[]". Access Granted. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7326 Channel sofia/default/0001653350@46.101.114.158:5060 entering state [received][100] 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=Z 0 0 IN IP4 117.247.91.162 s=Z c=IN IP4 117.247.91.162 t=0 0 m=audio 8000 RTP/AVP 3 110 8 0 97 101 a=rtpmap:110 speex/8000 a=rtpmap:97 iLBC/8000 a=fmtp:97 mode=30 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMA:8:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMU:0:8000:20:64000:1] 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/0001653350@46.101.114.158:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-10-29 05:20:55.414820 [DEBUG] switch_core_codec.c:111 sofia/default/0001653350@46.101.114.158:5060 Original read codec set to PCMA:8 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5911 sofia/default/0001653350@46.101.114.158:5060 Set 2833 dtmf send payload to 101 recv payload to 101 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7760 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_NEW -> CS_INIT 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:604 (sofia/default/0001653350@46.101.114.158:5060) State NEW 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_INIT (Cur 1 Tot 1584) 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:628 (sofia/default/0001653350@46.101.114.158:5060) State INIT 2021-10-29 05:20:55.414820 [DEBUG] mod_sofia.c:93 sofia/default/0001653350@46.101.114.158:5060 SOFIA INIT 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:40 sofia/default/0001653350@46.101.114.158:5060 Standard INIT 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_INIT -> CS_ROUTING 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:628 (sofia/default/0001653350@46.101.114.158:5060) State INIT going to sleep 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_ROUTING (Cur 1 Tot 1584) 2021-10-29 05:20:55.414820 [DEBUG] switch_channel.c:2332 (sofia/default/0001653350@46.101.114.158:5060) Callstate Change DOWN -> RINGING 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:644 (sofia/default/0001653350@46.101.114.158:5060) State ROUTING 2021-10-29 05:20:55.414820 [DEBUG] mod_sofia.c:154 sofia/default/0001653350@46.101.114.158:5060 SOFIA ROUTING 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:236 sofia/default/0001653350@46.101.114.158:5060 Standard ROUTING 2021-10-29 05:20:55.414820 [INFO] mod_dialplan_xml.c:637 Processing 0001653350 <0001653350>->+12120995959 in context default 2021-10-29 05:20:55.414820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : +12120995959 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '+12120995959' AND status=0 limit 1 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : Caller / 0001653350 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [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 ="+12120995959" LIMIT 1 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [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="+12120995959" limit 1 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 0001653350] 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =+12120995959 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "0001653350" AND deleted = 0 limit 1 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^+12120995959.*' OR blocked_patterns = '^+1212099595.*' OR blocked_patterns = '^+121209959.*' OR blocked_patterns = '^+12120995.*' OR blocked_patterns = '^+1212099.*' OR blocked_patterns = '^+121209.*' OR blocked_patterns = '^+12120.*' OR blocked_patterns = '^+1212.*' OR blocked_patterns = '^+121.*' OR blocked_patterns = '^+12.*' OR blocked_patterns = '^+1.*' OR blocked_patterns = '^+.*' OR blocked_patterns ='--') AND accountid = 462 limit 1 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="+12120995959" AND (accountid = 0 OR status = 1) LIMIT 1 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 41 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 41 AND status=0 limit 1 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....+12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : +12120995959 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 2212120995959 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....2212120995959 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....2212120995959 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [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 = '^2212120995959.*' OR patterns = '^221212099595.*' OR patterns = '^22121209959.*' OR patterns = '^2212120995.*' OR patterns = '^221212099.*' OR patterns = '^22121209.*' OR patterns = '^2212120.*' OR patterns = '^221212.*' OR patterns = '^22121.*' OR patterns = '^2212.*' OR patterns = '^221.*' OR patterns = '^22.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 462 ORDER BY LENGTH(PKGPTR.patterns) DESC 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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 ="2212120995959" AND A.accountid = '462' limit 1 2021-10-29 05:20:55.614823 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 2212120995959 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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 ="2212120995959" LIMIT 1 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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="2212120995959" limit 1 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : outbound 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '2212120995959' OR number = '221212099595' OR number = '22121209959' OR number = '2212120995' OR number = '221212099' OR number = '22121209' OR number = '2212120' OR number = '221212' OR number = '22121' OR number = '2212' OR number = '221' OR number = '22' OR number = '2' OR number ='--') OR (number = '2212120995959*' OR number = '221212099595*' OR number = '22121209959*' OR number = '2212120995*' OR number = '221212099*' OR number = '22121209*' OR number = '2212120*' OR number = '221212*' OR number = '22121*' OR number = '2212*' OR number = '221*' OR number = '22*' OR number = '2*' OR number ='--') OR (number = '0001653350' OR number = '000165335' OR number = '00016533' OR number = '0001653' OR number = '000165' OR number = '00016' OR number = '0001' OR number = '000' OR number = '00' OR number = '0' OR number ='--') OR (number = '0001653350*' OR number = '000165335*' OR number = '00016533*' OR number = '0001653*' OR number = '000165*' OR number = '00016*' OR number = '0001*' OR number = '000*' OR number = '00*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '2212120995959' OR routing_prefix = '221212099595' OR routing_prefix = '22121209959' OR routing_prefix = '2212120995' OR routing_prefix = '221212099' OR routing_prefix = '22121209' OR routing_prefix = '2212120' OR routing_prefix = '221212' OR routing_prefix = '22121' OR routing_prefix = '2212' OR routing_prefix = '221' OR routing_prefix = '22' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2021-10-29 05:20:55.634819 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [PORTED_NUMBER] Get Destination Number (2212120995959)!!!! 2021-10-29 05:20:55.634819 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (2212120995959)!!!! 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 462 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 0001653350 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 576.61 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 144 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^2212120995959.*' OR pattern = '^221212099595.*' OR pattern = '^22121209959.*' OR pattern = '^2212120995.*' OR pattern = '^221212099.*' OR pattern = '^22121209.*' OR pattern = '^2212120.*' OR pattern = '^221212.*' OR pattern = '^22121.*' OR pattern = '^2212.*' OR pattern = '^221.*' OR pattern = '^22.*' OR pattern = '^2.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 144 OR accountid=462) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Direction : outbound 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 259931 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 3.00000 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment : 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 462 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type: 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your576.61 balance Accountid 462 !!! 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 192.20333333333 minutes 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id : 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=144 ORDER by id asc 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^2212120995959.*' OR pattern = '^221212099595.*' OR pattern = '^22121209959.*' OR pattern = '^2212120995.*' OR pattern = '^221212099.*' OR pattern = '^22121209.*' OR pattern = '^2212120.*' OR pattern = '^221212.*' OR pattern = '^22121.*' OR pattern = '^2212.*' OR pattern = '^221.*' OR pattern = '^22.*' OR pattern = '^2.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (174) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information =================== 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 2005 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^22.* 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : RegNorm 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^22.* 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip : 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend : 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 174 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : PK-Default-Gateway 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable : 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway : 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : PK-Default-Trunk 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES======================= 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 462 AND status=0 LIMIT 1 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Maxlength : 192.20333333333 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 174) AND status=0 limit 1 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [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 ="+12120995959" LIMIT 1 2021-10-29 05:20:55.674818 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/0001653350@46.101.114.158:5060 parsing [default->2212120995959] continue=false Dialplan: sofia/default/0001653350@46.101.114.158:5060 Regex (FAIL) [2212120995959] destination_number(+12120995959) =~ /2212120995959/ break=on-false 2021-10-29 05:20:55.674818 [INFO] switch_core_state_machine.c:312 No Route, Aborting 2021-10-29 05:20:55.674818 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/0001653350@46.101.114.158:5060 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:644 (sofia/default/0001653350@46.101.114.158:5060) State ROUTING going to sleep 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_HANGUP (Cur 1 Tot 1584) 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:848 (sofia/default/0001653350@46.101.114.158:5060) Callstate Change RINGING -> HANGUP 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0001653350@46.101.114.158:5060) State HANGUP 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:453 Channel sofia/default/0001653350@46.101.114.158:5060 hanging up, cause: NO_ROUTE_DESTINATION 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:60 sofia/default/0001653350@46.101.114.158:5060 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0001653350@46.101.114.158:5060) State HANGUP going to sleep 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:620 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_HANGUP -> CS_REPORTING 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_REPORTING (Cur 1 Tot 1584) 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:936 (sofia/default/0001653350@46.101.114.158:5060) State REPORTING 2021-10-29 05:20:55.674818 [INFO] mod_json_cdr.c:271 Process [c5fa65f2-b537-4b01-a18d-cc022bc86212.cdr.json] 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:174 sofia/default/0001653350@46.101.114.158:5060 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:936 (sofia/default/0001653350@46.101.114.158:5060) State REPORTING going to sleep 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:611 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_REPORTING -> CS_DESTROY 2021-10-29 05:20:55.674818 [DEBUG] switch_core_session.c:1726 Session 1584 (sofia/default/0001653350@46.101.114.158:5060) Locked, Waiting on external entities 2021-10-29 05:20:55.674818 [NOTICE] switch_core_session.c:1744 Session 1584 (sofia/default/0001653350@46.101.114.158:5060) Ended 2021-10-29 05:20:55.674818 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/0001653350@46.101.114.158:5060 [CS_DESTROY] 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:739 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_DESTROY (Cur 0 Tot 1584) 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:749 (sofia/default/0001653350@46.101.114.158:5060) State DESTROY 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:364 sofia/default/0001653350@46.101.114.158:5060 SOFIA DESTROY 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:181 sofia/default/0001653350@46.101.114.158:5060 Standard DESTROY 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:749 (sofia/default/0001653350@46.101.114.158:5060) State DESTROY going to sleep 2021-10-29 05:20:56.154828 [NOTICE] switch_channel.c:1118 New Channel sofia/default/100@46.101.114.158 [3a29af50-0a33-4555-8da8-bcaf855a1fe2] 2021-10-29 05:20:56.154828 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 1585) 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:10280 sofia/default/100@46.101.114.158 receiving invite from 185.53.90.104:53403 version: 1.10.5 -release-17-25569c1631 64bit 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.53.90.104:0. 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:2434 detaching session 3a29af50-0a33-4555-8da8-bcaf855a1fe2 2021-10-29 05:20:56.154828 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [26400441519471242@46.101.114.158] from ip 185.53.90.104