提交 68c26dfb authored 作者: Brian West's avatar Brian West

allow the public context to challenge if they make it to the end before any…

allow the public context to challenge if they make it to the end before any matches so you can mix auth and non-auth in public.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9908 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5e837725
...@@ -58,6 +58,23 @@ ...@@ -58,6 +58,23 @@
You can place files in the public directory to get included. You can place files in the public directory to get included.
--> -->
<X-PRE-PROCESS cmd="include" data="public/*.xml"/> <X-PRE-PROCESS cmd="include" data="public/*.xml"/>
<!--
If you have made it this far lets challenge the caller and if they authenticate
lets try what they dialed in the default context.
-->
<extension name="check_auth" continue="true">
<condition field="${sip_authorized}" expression="^true$" break="never">
<anti-action application="respond" data="407"/>
</condition>
</extension>
<!-- You can only make it here if you auth via the previous extension. -->
<extension name="transfer_to_default">
<condition>
<action application="transfer" data="${destination_number} XML default"/>
</condition>
</extension>
</context> </context>
</include> </include>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论