From Unique Rhinoceros, 4 Years ago, written in FreeSWITCH.
This paste is a reply to Re: Untitled from Crimson Earthworm
- go back
Embed
Viewing differences between Re: Untitled and Re: Re: Untitled
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="919426223273">
<condition field="destination_number" expression="919426223273">
<action application="set" data="effective_destination_number=919426223273"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+570 normal_clearing"/>
<action application="set" data="callstart=2020-07-09 05:28:29"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=2"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="origination_rates=ID:2|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2"/>
<action application="set" data="original_caller_id_name=7971992256"/>
<action application="set" data="original_caller_id_number=7971992256"/>
<action application="limit" data="db 4727985745 user_4727985745 1 !SWITCH_CONGESTION"/>

<action application="export" data="is_recording=1"/>
<action application="export" data="media_bug_answer_req=true"/>
<action application="export" data="record_sample_rate=8000"/>
<action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
<action application="curl" data="https://109.68.167.154/truecname/check_score?source_main=7971992256&destination=919426223273" inline="true" />
<action application="sleep" data="5000"/>
<action application="set" data="truecname_response=$${curl_response_data}"/>
<action application="set" data="truecname=TRUE"/>
<anti-action application="set" data="truecname=FALSE"/>
<anti-action application="hangup" data="TRUCNAME_SPAM_DESTINATION"/>
<action application="set" data="effective_caller_id_name=7971992256"/>
<action application="set" data="effective_caller_id_number=7971992256"/>
<action application="set" data="calltype=STANDARD"/>
<action application="set" data="termination_rates=ID:2|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3"/>
<action application="set" data="trunk_id=1"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="gateway_routing_type=0"/>
<action application="set" data="gateway_id=1"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=0"/>
<action application="export" data="presence_data=trunk_id=1"/>
<action application="set" data="intcall=0"/>
<action application="export" data="presence_data=x|||default(4727985745)|||^91.* //  // 0.20000 // trunk_id=|||YourProvider // ^91.* //  // 0.00000 // trunk_id=1|||STD|||103.85.10.190"/>
<action application="bridge" data="[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/919426223273"/>
</condition>
</extension>
</context>
</section>
</document>
captcha