mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 04:36:42 +00:00
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
@ -59,5 +59,22 @@
|
|||||||
-->
|
-->
|
||||||
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user