span style="color: goldenrod; font-weight: bold;"> 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] blind_flag: 0
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Dialed number : 0046650553727
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0046650553727' limit 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0046650553727' AND status=0 limit 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0046650553727' and status=0 LIMIT 1
2020-03-04 13:51:07.157708 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FAXER] in custom Caller ID
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Caller Id name / number : test1 / 100
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="0046650553727" LIMIT 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [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="0046650553727" AND domains.domain="51.81.232.34" limit 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Call direction : outbound
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Accountcode : 5240977847]
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "5240977847" AND deleted = 0 limit 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0046650553727.*' OR blocked_patterns = '^004665055372.*' OR blocked_patterns = '^00466505537.*' OR blocked_patterns = '^0046650553.*' OR blocked_patterns = '^004665055.*' OR blocked_patterns = '^00466505.*' OR blocked_patterns = '^0046650.*' OR blocked_patterns = '^004665.*' OR blocked_patterns = '^00466.*' OR blocked_patterns = '^0046.*' OR blocked_patterns = '^004.*' OR blocked_patterns = '^00.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 4 limit 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [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 ="0046650553727" AND A.accountid = '4' limit 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0046650553727
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="0046650553727" LIMIT 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [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="0046650553727" AND domains.domain="51.81.232.34" limit 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] New Call direction : outbound
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0046650553727" AND (accountid = 0 OR status = 1) LIMIT 1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [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 = '^0046650553727.*' OR patterns = '^004665055372.*' OR patterns = '^00466505537.*' OR patterns = '^0046650553.*' OR patterns = '^004665055.*' OR patterns = '^00466505.*' OR patterns = '^0046650.*' OR patterns = '^004665.*' OR patterns = '^00466.*' OR patterns = '^0046.*' OR patterns = '^004.*' OR patterns = '^00.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0046650553727' OR number = '004665055372' OR number = '00466505537' OR number = '0046650553' OR number = '004665055' OR number = '00466505' OR number = '0046650' OR number = '004665' OR number = '00466' OR number = '0046' OR number = '004' OR number = '00' OR number = '0' OR number ='--') OR (number = '0046650553727*' OR number = '004665055372*' OR number = '00466505537*' OR number = '0046650553*' OR number = '004665055*' OR number = '00466505*' OR number = '0046650*' OR number = '004665*' OR number = '00466*' OR number = '0046*' OR number = '004*' OR number = '00*' OR number = '0*' OR number ='--') OR (number = '100' OR number = '10' OR number = '1' OR number ='--') OR (number = '100*' OR number = '10*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Call Barring Status : -1
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0046650553727' OR routing_prefix = '004665055372' OR routing_prefix = '00466505537' OR routing_prefix = '0046650553' OR routing_prefix = '004665055' OR routing_prefix = '00466505' OR routing_prefix = '0046650' OR routing_prefix = '004665' OR routing_prefix = '00466' OR routing_prefix = '0046' OR routing_prefix = '004' OR routing_prefix = '00' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] =============== Account Information ===================
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] User id : 4
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Account code : 5240977847
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Balance : 97
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Ratecard id : 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] CID Pool : 0
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] ========================================================
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] call_direction :outbound
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0046650553727.*' OR pattern = '^004665055372.*' OR pattern = '^00466505537.*' OR pattern = '^0046650553.*' OR pattern = '^004665055.*' OR pattern = '^00466505.*' OR pattern = '^0046650.*' OR pattern = '^004665.*' OR pattern = '^00466.*' OR pattern = '^0046.*' OR pattern = '^004.*' OR pattern = '^00.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=4) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] call_direction:::::: outbound
2020-03-04 13:51:07.157708 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FIND_MAXLENGTH] Rates not found!!!
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] post_cdrs:::0
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 4
2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0046650553727">
<condition field="destination_number" expression="0046650553727">
<action application="log" data="WARNING Accountcode . Dialed number (0046650553727) origination rates not found!!"/>
<action application="set" data="original_caller_id_name=test1"/>
<action application="set" data="original_caller_id_number=test1"/>
<action application="set" data="error_cdr=1"/>
<action application="set" data="callstart=2020-03-04 21:51:07"/>
<action application="set" data="account_id=4"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="sip_ignore_remote_cause=true"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="effective_destination_number=0046650553727"/>
<action application="set" data="last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND"/>
<action application="hangup" data="ORIGNATION_RATE_NOT_FOUND"/>
</condition>
</extension>
</context>
</section>
</document>
Dialplan: sofia/default/100@51.81.232.34 parsing [default->0046650553727] continue=false
Dialplan: sofia/default/100@51.81.232.34 Regex (PASS) [0046650553727] destination_number(0046650553727) =~ /0046650553727/ break=on-false
Dialplan: sofia/default/100@51.81.232.34 Action log(WARNING Accountcode . Dialed number (0046650553727) origination rates not found!!)
Dialplan: sofia/default/100@51.81.232.34 Action set(original_caller_id_name=test1)
Dialplan: sofia/default/100@51.81.232.34 Action set(original_caller_id_number=test1)
Dialplan: sofia/default/100@51.81.232.34 Action set(error_cdr=1)
Dialplan: sofia/default/100@51.81.232.34 Action set(callstart=2020-03-04 21:51:07)
Dialplan: sofia/default/100@51.81.232.34 Action set(account_id=4)
Dialplan: sofia/default/100@51.81.232.34 Action set(parent_id=0)
Dialplan: sofia/default/100@51.81.232.34 Action set(call_direction=outbound)
Dialplan: sofia/default/100@51.81.232.34 Action set(sip_ignore_remote_cause=true)
Dialplan: sofia/default/100@51.81.232.34 Action set(call_processed=internal)
Dialplan: sofia/default/100@51.81.232.34 Action set(effective_destination_number=0046650553727)
Dialplan: sofia/default/100@51.81.232.34 Action set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
Dialplan: sofia/default/100@51.81.232.34 Action hangup(ORIGNATION_RATE_NOT_FOUND)
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:287 (sofia/default/100@51.81.232.34) State Change CS_ROUTING -> CS_EXECUTE
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:644 (sofia/default/100@51.81.232.34) State ROUTING going to sleep
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_EXECUTE (Cur 1 Tot 868)
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:651 (sofia/default/100@51.81.232.34) State EXECUTE
2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:209 sofia/default/100@51.81.232.34 SOFIA EXECUTE
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:329 sofia/default/100@51.81.232.34 Standard EXECUTE
EXECUTE [depth=0] sofia/default/100@51.81.232.34 log(WARNING Accountcode . Dialed number (0046650553727) origination rates not found!!)
2020-03-04 13:51:07.157708 [WARNING] mod_dptools.c:1866 Accountcode . Dialed number (0046650553727) origination rates not found!!
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(original_caller_id_name=test1)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [original_caller_id_name]=[test1]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(original_caller_id_number=test1)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [original_caller_id_number]=[test1]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(error_cdr=1)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [error_cdr]=[1]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(callstart=2020-03-04 21:51:07)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [callstart]=[2020-03-04 21:51:07]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(account_id=4)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [account_id]=[4]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(parent_id=0)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [parent_id]=[0]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(call_direction=outbound)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [call_direction]=[outbound]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(sip_ignore_remote_cause=true)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [sip_ignore_remote_cause]=[true]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(call_processed=internal)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [call_processed]=[internal]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(effective_destination_number=0046650553727)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [effective_destination_number]=[0046650553727]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [last_bridge_hangup_cause]=[ORIGNATION_RATE_NOT_FOUND]
EXECUTE [depth=0] sofia/default/100@51.81.232.34 hangup(ORIGNATION_RATE_NOT_FOUND)
2020-03-04 13:51:07.157708 [NOTICE] mod_dptools.c:1380 Hangup sofia/default/100@51.81.232.34 [CS_EXECUTE] [NORMAL_CLEARING]
2020-03-04 13:51:07.157708 [DEBUG] switch_core_session.c:2905 sofia/default/100@51.81.232.34 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:651 (sofia/default/100@51.81.232.34) State EXECUTE going to sleep
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_HANGUP (Cur 1 Tot 868)
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:848 (sofia/default/100@51.81.232.34) Callstate Change RINGING -> HANGUP
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:850 (sofia/default/100@51.81.232.34) State HANGUP
2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:453 Channel sofia/default/100@51.81.232.34 hanging up, cause: NORMAL_CLEARING
2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 480
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:60 sofia/default/100@51.81.232.34 Standard HANGUP, cause: NORMAL_CLEARING
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:850 (sofia/default/100@51.81.232.34) State HANGUP going to sleep
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:620 (sofia/default/100@51.81.232.34) State Change CS_HANGUP -> CS_REPORTING
2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_REPORTING (Cur 1 Tot 868)