[This app Best viewed at 160x60 or more..] +OK log level [7] freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218> 2022-04-28 13:02:10.394291 94.27% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162 2022-04-28 13:02:10.434327 94.27% [WARNING] sofia_reg.c:3223 Can't find user [9815051999@3.7.66.233] from 117.247.91.162 You must define a domain called '3.7.66.233' in your directory and add a user with the id="9815051999" attribute and you must configure your device to use the proper domain in its authentication credentials. 2022-04-28 13:02:10.434327 94.27% [WARNING] sofia_reg.c:1806 SIP auth failure (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162 2022-04-28 13:02:21.334319 94.17% [NOTICE] switch_channel.c:1123 New Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 [4e7f2176-5610-43ba-9110-0b742b4372c4] 2022-04-28 13:02:21.334319 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_NEW (Cur 1 Tot 22) 2022-04-28 13:02:21.334319 94.17% [INFO] sofia.c:10462 sofia/default/5450239527@w07version60.astppbilling.org:5074 receiving invite from 117.247.91.162:51071 version: 1.10.7 -release-19-883d2cb662 64bit call-id: YmQ2ZDUzNDIzOGY2MTVlZGQzZGE4NDY1ZTJiNzZjMDY. 2022-04-28 13:02:21.334319 94.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0. 2022-04-28 13:02:21.334319 94.17% [DEBUG] sofia.c:2419 detaching session 4e7f2176-5610-43ba-9110-0b742b4372c4 2022-04-28 13:02:21.334319 94.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [77054545454@w07version60.astppbilling.org] from ip 117.247.91.162 2022-04-28 13:02:21.334319 94.17% [DEBUG] switch_core_state_machine.c:600 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State NEW 2022-04-28 13:02:21.434326 94.17% [DEBUG] sofia.c:2532 Re-attaching to session 4e7f2176-5610-43ba-9110-0b742b4372c4 2022-04-28 13:02:21.454323 94.17% [INFO] sofia.c:10462 sofia/default/5450239527@w07version60.astppbilling.org:5074 receiving invite from 117.247.91.162:51071 version: 1.10.7 -release-19-883d2cb662 64bit call-id: YmQ2ZDUzNDIzOGY2MTVlZGQzZGE4NDY1ZTJiNzZjMDY. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:11672 Setting NAT mode based on via received 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7499 Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 entering state [received][100] 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7509 Remote SDP: v=0 o=3cxVCE 27233070 341413320 IN IP4 192.168.1.13 s=3cxVCE Audio Call c=IN IP4 192.168.1.13 t=0 0 m=audio 40012 RTP/AVP 0 8 3 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 m=video 40010 RTP/AVP 34 c=IN IP4 192.168.1.13 a=rtpmap:34 H263/90000 a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/5450239527@w07version60.astppbilling.org:5074 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_codec.c:111 sofia/default/5450239527@w07version60.astppbilling.org:5074 Original read codec set to PCMU:0 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5973 sofia/default/5450239527@w07version60.astppbilling.org:5074 Set 2833 dtmf send payload to 101 recv payload to 101 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:6301 No matches with FTMP, fallback to ignoring FMTP 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:6309 No matches with inherit_codec, fallback to ignoring PT 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7933 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_NEW -> CS_INIT 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_INIT (Cur 1 Tot 22) 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State INIT 2022-04-28 13:02:21.454323 94.17% [DEBUG] mod_sofia.c:97 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA INIT 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:40 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard INIT 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:48 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_INIT -> CS_ROUTING 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State INIT going to sleep 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_ROUTING (Cur 1 Tot 22) 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_channel.c:2380 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Callstate Change DOWN -> RINGING 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State ROUTING 2022-04-28 13:02:21.454323 94.17% [DEBUG] mod_sofia.c:158 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA ROUTING 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:230 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard ROUTING 2022-04-28 13:02:21.454323 94.17% [INFO] mod_dialplan_xml.c:639 Processing 5450239527 <5450239527>->77054545454 in context default 2022-04-28 13:02:21.454323 94.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') 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 77054545454 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '77054545454' AND status=0 limit 1 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER5450239527 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '77054545454' limit 1 2022-04-28 13:02:21.474295 94.17% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 5450239527 / 5450239527 2022-04-28 13:02:21.474295 94.17% [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 ="77054545454" LIMIT 1 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [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,sip_devices.codec as sip_codec 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="77054545454" limit 1 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9915055083] 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9915055083" AND deleted = 0 limit 1 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^77054545454.*' OR blocked_patterns = '^7705454545.*' OR blocked_patterns = '^770545454.*' OR blocked_patterns = '^77054545.*' OR blocked_patterns = '^7705454.*' OR blocked_patterns = '^770545.*' OR blocked_patterns = '^77054.*' OR blocked_patterns = '^7705.*' OR blocked_patterns = '^770.*' OR blocked_patterns = '^77.*' OR blocked_patterns = '^7.*' OR blocked_patterns ='--') AND accountid = 6 limit 1 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="77054545454" AND (accountid = 0 OR status = 1) LIMIT 1 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [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 = '^77054545454.*' OR patterns = '^7705454545.*' OR patterns = '^770545454.*' OR patterns = '^77054545.*' OR patterns = '^7705454.*' OR patterns = '^770545.*' OR patterns = '^77054.*' OR patterns = '^7705.*' OR patterns = '^770.*' OR patterns = '^77.*' OR patterns = '^7.*' OR patterns ='--') AND accountid = 6 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [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 ="77054545454" AND A.accountid = '6' limit 1 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 77054545454 2022-04-28 13:02:21.494295 94.17% [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 ="77054545454" LIMIT 1 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [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,sip_devices.codec as sip_codec 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="77054545454" limit 1 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '77054545454' OR number = '7705454545' OR number = '770545454' OR number = '77054545' OR number = '7705454' OR number = '770545' OR number = '77054' OR number = '7705' OR number = '770' OR number = '77' OR number = '7' OR number ='--') OR (number = '77054545454*' OR number = '7705454545*' OR number = '770545454*' OR number = '77054545*' OR number = '7705454*' OR number = '770545*' OR number = '77054*' OR number = '7705*' OR number = '770*' OR number = '77*' OR number = '7*' OR number ='--') OR (number = '5450239527' OR number = '545023952' OR number = '54502395' OR number = '5450239' OR number = '545023' OR number = '54502' OR number = '5450' OR number = '545' OR number = '54' OR number = '5' OR number ='--') OR (number = '5450239527*' OR number = '545023952*' OR number = '54502395*' OR number = '5450239*' OR number = '545023*' OR number = '54502*' OR number = '5450*' OR number = '545*' OR number = '54*' OR number = '5*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '77054545454' OR routing_prefix = '7705454545' OR routing_prefix = '770545454' OR routing_prefix = '77054545' OR routing_prefix = '7705454' OR routing_prefix = '770545' OR routing_prefix = '77054' OR routing_prefix = '7705' OR routing_prefix = '770' OR routing_prefix = '77' OR routing_prefix = '7' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information =================== 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 6 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9915055083 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 19941 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ======================================================== 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND (caller_id_pattern = '^5450239527.*' OR caller_id_pattern = '^545023952.*' OR caller_id_pattern = '^54502395.*' OR caller_id_pattern = '^5450239.*' OR caller_id_pattern = '^545023.*' OR caller_id_pattern = '^54502.*' OR caller_id_pattern = '^5450.*' OR caller_id_pattern = '^545.*' OR caller_id_pattern = '^54.*' OR caller_id_pattern = '^5.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 1 OR accountid=6) ORDER BY accountid DESC,LENGTH(pattern),LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : outbound 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information =================== 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 6 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.30000 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Bhopal 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 23 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 6 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 1,3,4 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type: 3 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================ 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your19941 balance Accountid 6 !!! 2022-04-28 13:02:21.494295 94.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 1000 mins! 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 1000 minutes 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 6 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_COUNTER_INFO] Force Trunk Type Here :1 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :1,3,4 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.sip_cid_type,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.leg_timeout,TK.maxchannels,TR.effective_date as effective_date,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select percentage from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1 ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id limit 1) as percentage,(select call_count from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1 ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id) as trunk_count,(select call_count from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1 ORDER BY LENGTH(pattern) DESC,cost DESC limit 1 ) as routes_count,100 * (select call_count from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1 ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id) / (select call_count from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1 ORDER BY LENGTH(pattern) DESC,cost DESC limit 1 ) AS percent_atual,(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 = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (1,3,4) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by IF( percent_atual >= percentage, percentage, '' ) ASC , IF( percent_atual <= percentage, percentage, '' ) DESC,TR.effective_date DESC 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information =================== 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 5 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Pk-Trucking 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 4 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : PkTrunkGateway 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information =================== 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 4 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Test Trucking 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : TestTrunkGateway 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information =================== 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : QA Sender Your Trucking 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.* 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 1 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : YourProvider 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 6 AND status=0 LIMIT 1 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 1000 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [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 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [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 = 4) AND status=0 limit 1 2022-04-28 13:02:21.514294 94.17% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:306: attempt to concatenate field 'trunk_name' (a nil value) stack traceback: /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:306: in function 'freeswitch_xml_outbound' ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:914: in main chunk [C]: in function 'dofile' /usr/share/freeswitch/scripts/astpp/astpp.lua:98: in main chunk 2022-04-28 13:02:21.514294 94.17% [ERR] mod_lua.cpp:270 LUA script parse/execute error! 2022-04-28 13:02:21.534294 94.17% [WARNING] mod_dialplan_xml.c:669 Context default not found 2022-04-28 13:02:21.534294 94.17% [INFO] switch_core_state_machine.c:306 No Route, Aborting 2022-04-28 13:02:21.534294 94.17% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/5450239527@w07version60.astppbilling.org:5074 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State ROUTING going to sleep 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_HANGUP (Cur 1 Tot 22) 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Callstate Change RINGING -> HANGUP 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State HANGUP 2022-04-28 13:02:21.534294 94.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 hanging up, cause: NO_ROUTE_DESTINATION 2022-04-28 13:02:21.534294 94.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State HANGUP going to sleep 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_HANGUP -> CS_REPORTING 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_REPORTING (Cur 1 Tot 22) 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State REPORTING 2022-04-28 13:02:21.534294 94.17% [INFO] mod_json_cdr.c:271 Process [4e7f2176-5610-43ba-9110-0b742b4372c4.cdr.json] 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State REPORTING going to sleep 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_REPORTING -> CS_DESTROY 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_session.c:1753 Session 22 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Locked, Waiting on external entities 2022-04-28 13:02:21.554312 94.17% [NOTICE] switch_core_session.c:1771 Session 22 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Ended 2022-04-28 13:02:21.554312 94.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 [CS_DESTROY] 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_DESTROY (Cur 0 Tot 22) 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State DESTROY 2022-04-28 13:02:21.554312 94.17% [DEBUG] mod_sofia.c:379 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA DESTROY 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard DESTROY 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State DESTROY going to sleep 2022-04-28 13:02:32.534316 94.77% [WARNING] sofia_reg.c:3223 Can't find user [9815051999@3.7.66.233] from 117.247.91.162 You must define a domain called '3.7.66.233' in your directory and add a user with the id="9815051999" attribute and you must configure your device to use the proper domain in its authentication credentials. 2022-04-28 13:02:32.534316 94.77% [WARNING] sofia_reg.c:1806 SIP auth failure (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162 freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218> freeswitch@ip-172-31-14-218>