78 lines
3.2 KiB
XML
78 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<document type="freeswitch/xml">
|
|
<section name="dialplan" description="Dialplan Public Inbound">
|
|
<context name="public">
|
|
<extension name="InboundToAgent">
|
|
<condition>
|
|
<!-- <#noparse> -->
|
|
<action application="set" data="absolute_codec_string=PCMA" />
|
|
<action application="set" data="ringback=${us-ring}" />
|
|
<action application="set" data="transfer_ringback=$${hold_music}" />
|
|
<action application="set" data="hangup_after_bridge=true" />
|
|
<action application="set" data="continue_on_fail=true" />
|
|
<!-- </#noparse> -->
|
|
|
|
<!-- Recording -->
|
|
<#include "/dialplan/rec.xml">
|
|
<!-- /Recording -->
|
|
|
|
<action application="set" data="x_conn_id=${connId}" />
|
|
<action application="set" data="x_role=CALLER" />
|
|
<action application="set" data="x_tenant_id=${tenant.id}" />
|
|
<action application="set" data="x_tenant_code=${tenant.code}" />
|
|
<action application="set" data="x_account=${calledAgent.account}" />
|
|
<action application="set" data="x_called_number=${calledAgent.agent}" />
|
|
|
|
<action application="set" data="x_trunk_id=${trunk.id}" />
|
|
<action application="set" data="x_cpn=${trunk.cpn}" />
|
|
|
|
<action application="set" data="x_dial_type=INBOUND" />
|
|
<action application="set" data="x_call_type=INBOUND" />
|
|
<action application="set" data="x_agent_type=${calledAgent.type}" />
|
|
|
|
<!--
|
|
<#assign bridgeVars = [
|
|
"originate_timeout=60",
|
|
"odbc-cdr-ignore-leg=true",
|
|
|
|
"x_conn_id=${connId}",
|
|
"x_role=CALLED",
|
|
|
|
"x_tenant_id=${tenant.id}",
|
|
"x_tenant_code=${tenant.code}",
|
|
|
|
"x_account=${calledAgent.account}",
|
|
"x_agent_type=${calledAgent.type}",
|
|
"x_called_number=${calledAgent.agent}",
|
|
|
|
"x_trunk_id=${trunk.id}",
|
|
"x_cpn=${trunk.cpn}",
|
|
|
|
"origination_uuid=${connId}",
|
|
"sip_invite_call_id=${r'${sip_call_id}'}",
|
|
|
|
"callee_id_number=${privacyNumber.number}",
|
|
"callee_id_name=${privacyNumber.name}",
|
|
|
|
"effective_caller_id_number=${privacyNumber.number}",
|
|
"effective_caller_id_name=${privacyNumber.name}",
|
|
|
|
"origination_caller_id_number=${privacyNumber.number}",
|
|
"origination_caller_id_name=${privacyNumber.name}",
|
|
"sip_contact_user=${privacyNumber.number}",
|
|
|
|
"x_dial_type=INBOUND",
|
|
"x_call_type=INBOUND",
|
|
"sip_h_X-Dial-Type=INBOUND",
|
|
"sip_h_X-Call-Type=INBOUND"
|
|
]>
|
|
-->
|
|
|
|
<action application="bridge" data="[${bridgeVars?join(',')}]user/${calledAgent.agent}@${tenant.realm}" />
|
|
</condition>
|
|
</extension>
|
|
</context>
|
|
</section>
|
|
</document>
|
|
|