adding neat example of how to override the RURI on an outbound sip request to a registered user

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7591 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-02-11 22:21:36 +00:00
parent f4bbd19232
commit 280a01339c

View File

@ -65,15 +65,15 @@
</extension>
<!-- This kinda breaks blind transfers back to ourself. -->
<!--
<extension name="refer">
<condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>"/>
<condition field="${sip_refer_to}" expression="<sip:(.*)@(.*)>">
<action application="set" data="refer_user=$1"/>
<action application="set" data="refer_domain=$2"/>
<action application="info"/>
<action application="bridge" data="sofia/${use_profile}/${refer_user}@${refer_domain}"/>
</condition>
</extension>
<extension name="refer">
<condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>"/>
<condition field="${sip_refer_to}" expression="<sip:(.*)@(.*)>">
<action application="set" data="refer_user=$1"/>
<action application="set" data="refer_domain=$2"/>
<action application="info"/>
<action application="bridge" data="sofia/${use_profile}/${refer_user}@${refer_domain}"/>
</condition>
</extension>
-->
<extension name="eavesdrop">
@ -164,6 +164,26 @@
</condition>
</extension>
<!--
This is an example of how to overide the RURI on an outgoing invite to a registered contact.
-->
<!--
<extension name="ruri">
<condition field="destination_number" expression="^ruri$">
<action application="bridge" data="sofia/${ruri_profile}/${ruri_user}${regex(${sofia_contact(${ruri_contact})}|^[^\@]+(.*)|%1)}"/>
</condition>
</extension>
<extension name="7004">
<condition field="destination_number" expression="^7004$">
<action application="set" data="ruri_profile=default"/>
<action application="set" data="ruri_user=2000"/>
<action application="set" data="ruri_contact=1001@$${domain}"/>
<action application="execute_extension" data="ruri"/>
</condition>
</extension>
-->
<!--
start a dynamic conference with the settings of the "default" conference profile in conference.conf.xml
-->