forked from Mirrors/freeswitch
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
This commit is contained in:
parent
5e8377251a
commit
68c26dfb6f
@ -58,6 +58,23 @@
|
||||
You can place files in the public directory to get included.
|
||||
-->
|
||||
<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>
|
||||
</include>
|
||||
|
Loading…
Reference in New Issue
Block a user