2022-03-22 12:51:50.772260 [INFO] mod_dialplan_xml.c:637 Processing 3100554932 <3100554932>->0546322423 in context default 2022-03-22 12:51:50.772260 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f0c2c21e870 Connected. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-03-22 12:51:50.772260 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0 2022-03-22 12:51:50.772260 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0546322423 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0546322423' limit 1 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0546322423' AND status=0 limit 1 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE domain = 'test1516.newsip.israelnumber.com' limit 1 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0546322423' and account_id = '1705' and status=0 LIMIT 1 2022-03-22 12:51:50.792161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] in custom Caller ID 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 3100554932 / 3100554932 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.buy_minutes,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 ="0546322423" LIMIT 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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 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="0546322423" AND domains.domain="test1516.newsip.israelnumber.com" limit 1 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 857718010283] 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "857718010283" AND deleted = 0 limit 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0546322423.*' OR blocked_patterns = '^054632242.*' OR blocked_patterns = '^05463224.*' OR blocked_patterns = '^0546322.*' OR blocked_patterns = '^054632.*' OR blocked_patterns = '^05463.*' OR blocked_patterns = '^0546.*' OR blocked_patterns = '^054.*' OR blocked_patterns = '^05.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 1705 limit 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="0546322423" AND A.accountid = '1705' limit 1 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0546322423 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.buy_minutes,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 ="0546322423" LIMIT 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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 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="0546322423" AND domains.domain="test1516.newsip.israelnumber.com" limit 1 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call direction : outbound 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0546322423" AND (accountid = 0 OR status = 1) LIMIT 1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^0546322423.*' OR patterns = '^054632242.*' OR patterns = '^05463224.*' OR patterns = '^0546322.*' OR patterns = '^054632.*' OR patterns = '^05463.*' OR patterns = '^0546.*' OR patterns = '^054.*' OR patterns = '^05.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 1705 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0546322423' OR number = '054632242' OR number = '05463224' OR number = '0546322' OR number = '054632' OR number = '05463' OR number = '0546' OR number = '054' OR number = '05' OR number = '0' OR number ='--') OR (number = '0546322423*' OR number = '054632242*' OR number = '05463224*' OR number = '0546322*' OR number = '054632*' OR number = '05463*' OR number = '0546*' OR number = '054*' OR number = '05*' OR number = '0*' OR number ='--') OR (number = '3100554932' OR number = '310055493' OR number = '31005549' OR number = '3100554' OR number = '310055' OR number = '31005' OR number = '3100' OR number = '310' OR number = '31' OR number = '3' OR number ='--') OR (number = '3100554932*' OR number = '310055493*' OR number = '31005549*' OR number = '3100554*' OR number = '310055*' OR number = '31005*' OR number = '3100*' OR number = '310*' OR number = '31*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0546322423' OR routing_prefix = '054632242' OR routing_prefix = '05463224' OR routing_prefix = '0546322' OR routing_prefix = '054632' OR routing_prefix = '05463' OR routing_prefix = '0546' OR routing_prefix = '054' OR routing_prefix = '05' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 1705 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 857718010283 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10.85998 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 29 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 29 AND status = 0 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 29 AND status = 0 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0546322423.*' OR pattern = '^054632242.*' OR pattern = '^05463224.*' OR pattern = '^0546322.*' OR pattern = '^054632.*' OR pattern = '^05463.*' OR pattern = '^0546.*' OR pattern = '^054.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 29 OR accountid=1705) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: outbound 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 15570859 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.04000 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : Israel Mobile 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 1705 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type: 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10.85998 balance Accountid 1705 !!! 2022-03-22 12:51:50.816596 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 180 mins! 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE ID 1705 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE RATE 0.04000 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE PROVIDER 0 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE CONNECT COST 0.00000 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE INITIAL INC 30 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE INC 10 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 180 minutes 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id : 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=29 ORDER by id asc 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [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 = '^0546322423.*' OR pattern = '^054632242.*' OR pattern = '^05463224.*' OR pattern = '^0546322.*' OR pattern = '^054632.*' OR pattern = '^05463.*' OR pattern = '^0546.*' OR pattern = '^054.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (15) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [HYBRID_ROUTING]LCR with Cost in 2nd stage 2022-03-22 12:51:50.816596 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] No termination rates found...!!! 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] post_cdrs:::0 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 1705 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
2022-03-22 12:51:50.816596 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f0c2c21e870 released. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com parsing [default->0546322423] continue=false Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Regex (PASS) [0546322423] destination_number(0546322423) =~ /0546322423/ break=on-false Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action log(WARNING Accountcode . Dialed number (0546322423) termination rates not found!!) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(original_caller_id_name=3100554932) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(original_caller_id_number=3100554932) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(error_cdr=1) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(callstart=2022-03-22 10:51:50) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(account_id=1705) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(parent_id=0) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(call_direction=outbound) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(sip_ignore_remote_cause=true) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(call_processed=internal) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(effective_destination_number=0546322423) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(last_bridge_hangup_cause=TERMINATION_RATE_NOT_FOUND) Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action hangup(TERMINATION_RATE_NOT_FOUND) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:286 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_ROUTING -> CS_EXECUTE 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:643 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State ROUTING going to sleep 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_EXECUTE (Cur 5 Tot 101711) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:650 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State EXECUTE 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:198 sofia/default/3100554932@test1516.newsip.israelnumber.com SOFIA EXECUTE 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:328 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard EXECUTE EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com log(WARNING Accountcode . Dialed number (0546322423) termination rates not found!!) 2022-03-22 12:51:50.816596 [WARNING] mod_dptools.c:1742 Accountcode . Dialed number (0546322423) termination rates not found!! EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(original_caller_id_name=3100554932) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [original_caller_id_name]=[3100554932] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(original_caller_id_number=3100554932) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [original_caller_id_number]=[3100554932] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(error_cdr=1) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [error_cdr]=[1] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(callstart=2022-03-22 10:51:50) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [callstart]=[2022-03-22 10:51:50] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(account_id=1705) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [account_id]=[1705] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(parent_id=0) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [parent_id]=[0] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(call_direction=outbound) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [call_direction]=[outbound] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(sip_ignore_remote_cause=true) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [sip_ignore_remote_cause]=[true] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(call_processed=internal) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [call_processed]=[internal] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(effective_destination_number=0546322423) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [effective_destination_number]=[0546322423] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(last_bridge_hangup_cause=TERMINATION_RATE_NOT_FOUND) 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [last_bridge_hangup_cause]=[TERMINATION_RATE_NOT_FOUND] EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com hangup(TERMINATION_RATE_NOT_FOUND) 2022-03-22 12:51:50.816596 [NOTICE] mod_dptools.c:1286 Hangup sofia/default/3100554932@test1516.newsip.israelnumber.com [CS_EXECUTE] [NORMAL_CLEARING] 2022-03-22 12:51:50.816596 [DEBUG] switch_core_session.c:2815 sofia/default/3100554932@test1516.newsip.israelnumber.com skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:650 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State EXECUTE going to sleep 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_HANGUP (Cur 5 Tot 101711) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Callstate Change RINGING -> HANGUP 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State HANGUP 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:438 Channel sofia/default/3100554932@test1516.newsip.israelnumber.com hanging up, cause: NORMAL_CLEARING 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:60 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard HANGUP, cause: NORMAL_CLEARING 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State HANGUP going to sleep 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:619 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_HANGUP -> CS_REPORTING 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_REPORTING (Cur 5 Tot 101711) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State REPORTING 2022-03-22 12:51:50.816596 [INFO] mod_json_cdr.c:271 Process [1421492a-a9ce-11ec-84c4-a5a96182c7f9.cdr.json] 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:174 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard REPORTING, cause: NORMAL_CLEARING 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State REPORTING going to sleep 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:610 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_REPORTING -> CS_DESTROY 2022-03-22 12:51:50.816596 [DEBUG] switch_core_session.c:1665 Session 101711 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Locked, Waiting on external entities 2022-03-22 12:51:50.816596 [NOTICE] switch_core_session.c:1683 Session 101711 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Ended 2022-03-22 12:51:50.816596 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3100554932@test1516.newsip.israelnumber.com [CS_DESTROY] 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:741 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_DESTROY (Cur 4 Tot 101711) 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State DESTROY 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:343 sofia/default/3100554932@test1516.newsip.israelnumber.com SOFIA DESTROY 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:181 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard DESTROY 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State DESTROY going to sleep 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:695 Received request via SESSION_HEARTBEAT! 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.00000 per minute to account 1853 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:573 79 seconds passed since last bill time of 2022-03-22 12:50:34 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:590 Billing $0.000000 to 1853 (Call: e6609f0e-a9cd-11ec-8468-a5a96182c7f9 / 0.000000 so far) 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:395 Doing update query [UPDATE accounts SET balance=balance- 0.000000 WHERE id='1853'] 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT if(allow_negative_balance=0,negative_balance+balance,balance) AS nibble_balance FROM accounts WHERE id='1853'] 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 1853 (balance = 5.000000) 2022-03-22 12:52:00.992182 [NOTICE] switch_channel.c:1104 New Channel sofia/default/33618853545@46.19.210.14 [1a396b94-a9ce-11ec-84d3-a5a96182c7f9] 2022-03-22 12:52:00.992182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/33618853545@46.19.210.14) Running State Change CS_NEW (Cur 5 Tot 101712) 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:9873 sofia/default/33618853545@46.19.210.14 receiving invite from 136.243.196.198:5060 version: 1.6.20 64bit 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:9989 IP 136.243.196.198 Approved by acl "default[]". Access Granted. 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:7084 Channel sofia/default/33618853545@46.19.210.14 entering state [received][100] 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=didww-sbc 31083 5365 IN IP4 46.19.210.39 s=didww-sbc t=0 0 m=audio 43844 RTP/AVP 0 8 18 4 101 c=IN IP4 46.19.210.39 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000