logic bug in public context

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9943 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-10-10 19:28:41 +00:00
parent 29cf76e749
commit bfba3d206e

View File

@ -26,16 +26,16 @@
the outside of the switch. the outside of the switch.
--> -->
<extension name="outside_call" continue="true"> <extension name="outside_call" continue="true">
<condition break="never"> <condition>
<action application="set" data="outside_call=true"/> <action application="set" data="outside_call=true"/>
</condition> </condition>
</extension> </extension>
<!-- Try to get domain_name from the sip_req_params variable --> <!-- Try to get domain_name from the sip_req_params variable -->
<extension name="set_domain" continue="true"> <extension name="set_domain" continue="true">
<condition field="${domain_name}" expression="^$" break="never"/> <condition field="${domain_name}" expression="^$"/>
<condition field="source" expression="mod_sofia" break="never"/> <condition field="source" expression="mod_sofia"/>
<condition field="${sip_req_params}" expression="domain_name=([A-Z-a-z0-9.]+)" break="never"> <condition field="${sip_req_params}" expression="domain_name=([A-Z-a-z0-9.]+)">
<!-- We need to export this so the B-Leg will have it after transfer too. --> <!-- We need to export this so the B-Leg will have it after transfer too. -->
<action application="export" data="domain_name=$1"/> <action application="export" data="domain_name=$1"/>
<anti-action application="export" data="domain_name=${sip_req_host}"/> <anti-action application="export" data="domain_name=${sip_req_host}"/>