freeswitch@ip-172-31-14-218> 2022-02-28 11:33:29.683006 95.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/+1604785422@46.101.114.158 [da3a6e87-18cb-4a86-9afe-bca9498d256a] 2022-02-28 11:33:29.683006 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 2) 2022-02-28 11:33:29.683006 95.77% [INFO] sofia.c:10462 sofia/default/+1604785422@46.101.114.158 receiving invite from 46.101.114.158:5077 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 17d95d55-132d-123b-9690-ba05d31eb9f9 2022-02-28 11:33:29.683006 95.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 46.101.114.158:0. 2022-02-28 11:33:29.683006 95.77% [DEBUG] sofia.c:10585 IP 46.101.114.158 Approved by acl "default[]". Access Granted. 2022-02-28 11:33:29.683006 95.77% [DEBUG] sofia.c:7499 Channel sofia/default/+1604785422@46.101.114.158 entering state [received][100] 2022-02-28 11:33:29.683006 95.77% [DEBUG] sofia.c:7509 Remote SDP: v=0 o=FreeSWITCH 1646027923 1646027924 IN IP4 46.101.114.158 s=FreeSWITCH c=IN IP4 46.101.114.158 t=0 0 m=audio 20086 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/+1604785422@46.101.114.158 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_codec.c:111 sofia/default/+1604785422@46.101.114.158 Original read codec set to PCMU:0 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_media.c:5973 sofia/default/+1604785422@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101 2022-02-28 11:33:29.702981 95.77% [DEBUG] sofia.c:7933 (sofia/default/+1604785422@46.101.114.158) State Change CS_NEW -> CS_INIT 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:600 (sofia/default/+1604785422@46.101.114.158) State NEW 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 2) 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT 2022-02-28 11:33:29.702981 95.77% [DEBUG] mod_sofia.c:97 sofia/default/+1604785422@46.101.114.158 SOFIA INIT 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/+1604785422@46.101.114.158 Standard INIT 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/+1604785422@46.101.114.158) State Change CS_INIT -> CS_ROUTING 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT going to sleep 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 2) 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_channel.c:2380 (sofia/default/+1604785422@46.101.114.158) Callstate Change DOWN -> RINGING 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING 2022-02-28 11:33:29.702981 95.77% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING 2022-02-28 11:33:29.702981 95.77% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->440540 in context default 2022-02-28 11:33:29.702981 95.77% [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-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.702981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0 2022-02-28 11:33:29.702981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 440540 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '440540' limit 1 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '440540' AND status=0 limit 1 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '440540' and status=0 LIMIT 1 2022-02-28 11:33:29.702981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '3.7.66.233' limit 1 2022-02-28 11:33:29.702981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 1604785422 / +1604785422 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 2022-02-28 11:33:29.702981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 440540 AND status=0 limit 1 2022-02-28 11:33:29.702981 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 46.101.114.158 2022-02-28 11:33:29.722982 95.77% [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("46.101.114.158") 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 "440540" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894] 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="440540" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7 2022-02-28 11:33:29.722982 95.77% [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 = '^440540.*' OR patterns = '^44054.*' OR patterns = '^4405.*' OR patterns = '^440.*' OR patterns = '^44.*' OR patterns = '^4.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-28 11:33:29.722982 95.77% [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 ="440540" AND A.accountid = '3' limit 1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 440540 2022-02-28 11:33:29.722982 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound 2022-02-28 11:33:29.722982 95.77% [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 = '440540' OR number = '44054' OR number = '4405' OR number = '440' OR number = '44' OR number = '4' OR number ='--') OR (number = '440540*' OR number = '44054*' OR number = '4405*' OR number = '440*' OR number = '44*' OR number = '4*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '440540' OR routing_prefix = '44054' OR routing_prefix = '4405' OR routing_prefix = '440' OR routing_prefix = '44' OR routing_prefix = '4' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information =================== 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 22 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ======================================================== 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound 2022-02-28 11:33:29.722982 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '1' and status=0 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information =================== 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 440540 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3 2022-02-28 11:33:29.722982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================ 2022-02-28 11:33:29.722982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your22 balance Accountid 3 !!! 2022-02-28 11:33:29.742983 95.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1 2022-02-28 11:33:29.742983 95.77% [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 = 3 AND status=0 LIMIT 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1 2022-02-28 11:33:29.742983 95.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : w07version60.astppbilling.org 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"#","no_answer_call_type":"12"}] 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"00-23","minute":"00-59","wday":"1-2","mday":"1-31","mon":"1-12","year":"2022-2022","extensions":"2","no_answer_call_type":"7","priority":"1"}] 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '49' LIMIT 1 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "00:00-23:59" wday= "1-2" mday= "1-31" mon= "1-12" year= "2022-2022" 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "1" AND accounts.status = 0 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1 2022-02-28 11:33:29.742983 95.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : w07version60.astppbilling.org 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7 and status = 0 limit 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11 2022-02-28 11:33:29.742983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCond] continue=true Dialplan: sofia/default/+1604785422@46.101.114.158 Absolute Condition [TimeCond] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(timezone=Europe/Sarajevo) INLINE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(timezone=Europe/Sarajevo) 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [timezone]=[Europe/Sarajevo] Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCond] break=never Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(office_status=open) 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=2) INLINE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(extensions=2) 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[2] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=440540) INLINE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=440540) 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[440540] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=7) INLINE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7) 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7] Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->tod route, x440540] continue=false Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (PASS) [tod route, x440540] destination_number(440540) =~ /^(\+?)?(440540)$/ break=on-false Dialplan: sofia/default/+1604785422@46.101.114.158 Action execute_extension(440540_${office_status}) 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_core_state_machine.c:281 (sofia/default/+1604785422@46.101.114.158) State Change CS_ROUTING -> CS_EXECUTE 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_EXECUTE (Cur 1 Tot 2) 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE 2022-02-28 11:33:29.742983 95.77% [DEBUG] mod_sofia.c:213 sofia/default/+1604785422@46.101.114.158 SOFIA EXECUTE 2022-02-28 11:33:29.742983 95.77% [DEBUG] switch_core_state_machine.c:323 sofia/default/+1604785422@46.101.114.158 Standard EXECUTE EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 execute_extension(440540_open) 2022-02-28 11:33:29.742983 95.77% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->440540_open in context default 2022-02-28 11:33:29.742983 95.77% [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-02-28 11:33:29.742983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 440540 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '440540' limit 1 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '440540' AND status=0 limit 1 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '440540' and status=0 LIMIT 1 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '3.7.66.233' limit 1 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 1604785422 / +1604785422 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 440540 AND status=0 limit 1 2022-02-28 11:33:29.762981 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 46.101.114.158 2022-02-28 11:33:29.762981 95.77% [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("46.101.114.158") 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 "440540" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894] 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="440540" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound 2022-02-28 11:33:29.762981 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7 2022-02-28 11:33:29.762981 95.77% [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 = '^440540.*' OR patterns = '^44054.*' OR patterns = '^4405.*' OR patterns = '^440.*' OR patterns = '^44.*' OR patterns = '^4.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-28 11:33:29.762981 95.77% [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 ="440540" AND A.accountid = '3' limit 1 2022-02-28 11:33:29.762981 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 440540 2022-02-28 11:33:29.762981 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound 2022-02-28 11:33:29.782980 95.77% [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 = '440540' OR number = '44054' OR number = '4405' OR number = '440' OR number = '44' OR number = '4' OR number ='--') OR (number = '440540*' OR number = '44054*' OR number = '4405*' OR number = '440*' OR number = '44*' OR number = '4*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '440540' OR routing_prefix = '44054' OR routing_prefix = '4405' OR routing_prefix = '440' OR routing_prefix = '44' OR routing_prefix = '4' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information =================== 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 22 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ======================================================== 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound 2022-02-28 11:33:29.782980 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday from demand_based_routing where pricelist_id = '1' and status=0 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information =================== 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 440540 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================ 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =7 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your22 balance Accountid 3 !!! 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1 2022-02-28 11:33:29.782980 95.77% [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 = 3 AND status=0 LIMIT 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1 2022-02-28 11:33:29.782980 95.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : w07version60.astppbilling.org 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"#","no_answer_call_type":"12"}] 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"00-23","minute":"00-59","wday":"1-2","mday":"1-31","mon":"1-12","year":"2022-2022","extensions":"2","no_answer_call_type":"7","priority":"1"}] 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '49' LIMIT 1 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "00:00-23:59" wday= "1-2" mday= "1-31" mon= "1-12" year= "2022-2022" 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "1" AND accounts.status = 0 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1 2022-02-28 11:33:29.782980 95.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : w07version60.astppbilling.org 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7 and status = 0 limit 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11 2022-02-28 11:33:29.782980 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCond] continue=true Dialplan: sofia/default/+1604785422@46.101.114.158 Absolute Condition [TimeCond] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(timezone=Europe/Sarajevo) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(timezone=Europe/Sarajevo) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [timezone]=[Europe/Sarajevo] Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCond] break=never Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(office_status=open) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=2) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(extensions=2) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[2] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=440540) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=440540) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[440540] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=7) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7] Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->tod route, x440540] continue=false Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (FAIL) [tod route, x440540] destination_number(440540_open) =~ /^(\+?)?(440540)$/ break=on-false Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->office is open] continue=false Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (PASS) [office is open] destination_number(440540_open) =~ /^(\+?)?(440540_open)$/ break=on-false Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(domain_name=w07version60.astppbilling.org) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(set_extensions=${extensions}) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_flag=true) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=440540) INLINE EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=440540) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[440540] Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=${no_answer_call_type}) Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_number=${extensions}) Dialplan: sofia/default/+1604785422@46.101.114.158 Action transfer(7 XML default) 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(domain_name=w07version60.astppbilling.org) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(domain_name=w07version60.astppbilling.org) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [domain_name]=[w07version60.astppbilling.org] 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(set_extensions=${extensions}) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(set_extensions=2) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [set_extensions]=[2] 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_flag=true) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_flag=true) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_flag]=[true] 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_call_type=${no_answer_call_type}) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7] 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_number=${extensions}) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_number=2) 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_number]=[2] 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] transfer(7 XML default) EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 transfer(7 XML default) 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_ivr.c:2289 (sofia/default/+1604785422@46.101.114.158) State Change CS_EXECUTE -> CS_ROUTING 2022-02-28 11:33:29.782980 95.77% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/+1604785422@46.101.114.158 to XML[7@default] 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE going to sleep 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 2) 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged 2022-02-28 11:33:29.782980 95.77% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING 2022-02-28 11:33:29.782980 95.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING 2022-02-28 11:33:29.782980 95.77% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->7 in context default 2022-02-28 11:33:29.802982 95.77% [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-02-28 11:33:29.802982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.802982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0 2022-02-28 11:33:29.802982 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 7 2022-02-28 11:33:29.802982 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '7' limit 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '7' AND status=0 limit 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '7' and status=0 LIMIT 1 2022-02-28 11:33:29.822983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '3.7.66.233' limit 1 2022-02-28 11:33:29.822983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 1604785422 / +1604785422 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 7 AND status=0 limit 1 2022-02-28 11:33:29.822983 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="7" LIMIT 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="7" AND domains.domain="3.7.66.233" limit 1 2022-02-28 11:33:29.822983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound 2022-02-28 11:33:29.822983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 46.101.114.158 2022-02-28 11:33:29.822983 95.77% [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("46.101.114.158") 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 "7" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2022-02-28 11:33:29.822983 95.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894] 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^7.*' OR blocked_patterns ='--') AND accountid = 3 limit 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="7" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ no_answer_did_number :440540 2022-02-28 11:33:29.822983 95.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="440540" LIMIT 1 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-28 11:33:29.822983 95.77% [ERR] mod_lua.cpp:202 .../share/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1696: attempt to concatenate field 'accountid' (a nil value) stack traceback: .../share/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1696: in function 'ringgroup_no_answer_forward' ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:323: in main chunk [C]: in function 'dofile' /usr/share/freeswitch/scripts/astpp/astpp.lua:94: in main chunk 2022-02-28 11:33:29.822983 95.77% [ERR] mod_lua.cpp:270 LUA script parse/execute error! 2022-02-28 11:33:29.822983 95.77% [WARNING] mod_dialplan_xml.c:669 Context default not found 2022-02-28 11:33:29.822983 95.77% [INFO] switch_core_state_machine.c:306 No Route, Aborting 2022-02-28 11:33:29.822983 95.77% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/+1604785422@46.101.114.158 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 2) 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:844 (sofia/default/+1604785422@46.101.114.158) Callstate Change RINGING -> HANGUP 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP 2022-02-28 11:33:29.822983 95.77% [DEBUG] mod_sofia.c:468 Channel sofia/default/+1604785422@46.101.114.158 hanging up, cause: NO_ROUTE_DESTINATION 2022-02-28 11:33:29.822983 95.77% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:59 sofia/default/+1604785422@46.101.114.158 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP going to sleep 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:616 (sofia/default/+1604785422@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 2) 2022-02-28 11:33:29.822983 95.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING 2022-02-28 11:33:29.822983 95.77% [INFO] mod_json_cdr.c:271 Process [da3a6e87-18cb-4a86-9afe-bca9498d256a.cdr.json] 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:168 sofia/default/+1604785422@46.101.114.158 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING going to sleep 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:607 (sofia/default/+1604785422@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_session.c:1753 Session 2 (sofia/default/+1604785422@46.101.114.158) Locked, Waiting on external entities 2022-02-28 11:33:29.863005 95.77% [NOTICE] switch_core_session.c:1771 Session 2 (sofia/default/+1604785422@46.101.114.158) Ended 2022-02-28 11:33:29.863005 95.77% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/+1604785422@46.101.114.158 [CS_DESTROY] 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:735 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 2) 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY 2022-02-28 11:33:29.863005 95.77% [DEBUG] mod_sofia.c:379 sofia/default/+1604785422@46.101.114.158 SOFIA DESTROY 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:175 sofia/default/+1604785422@46.101.114.158 Standard DESTROY 2022-02-28 11:33:29.863005 95.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY going to sleep freeswitch@ip-172-31-14-218>