提交 5760c47e authored 作者: Brian West's avatar Brian West

use domain_name since its free no need for an extra var.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9745 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 30408376
差异被折叠。
...@@ -31,14 +31,14 @@ ...@@ -31,14 +31,14 @@
</condition> </condition>
</extension> </extension>
<!-- Try to get target_domain 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="${target_domain}" expression="^$" break="never"/> <condition field="${domain_name}" expression="^$" break="never"/>
<condition field="source" expression="mod_sofia" break="never"/> <condition field="source" expression="mod_sofia" break="never"/>
<condition field="${sip_req_params}" expression="target_domain=([A-Z-a-z0-9.]+)" break="never"> <condition field="${sip_req_params}" expression="domain_name=([A-Z-a-z0-9.]+)" break="never">
<!-- 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="target_domain=$1"/> <action application="export" data="domain_name=$1"/>
<anti-action application="export" data="target_domain=$${domain}"/> <anti-action application="export" data="domain_name=$${domain}"/>
</condition> </condition>
</extension> </extension>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论