source: packages/net/freeswitch/files/etc.minimal/dialplan/public.xml @ 26966

Last change on this file since 26966 was 26966, checked in by mazilo, 5 years ago

upated to latest git with additional modules

File size: 2.3 KB
Line 
1<!--
2    NOTICE:
3
4    This context is usually accessed via the external sip profile listening on port 5080.
5   
6    It is recommended to have separate inbound and outbound contexts.  Not only for security
7    but clearing up why you would need to do such a thing.  You don't want outside un-authenticated
8    callers hitting your default context which allows dialing calls thru your providers and results
9    in Toll Fraud.
10-->
11
12<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
13<include>
14  <context name="public">
15
16    <extension name="unloop">
17      <condition field="${unroll_loops}" expression="^true$"/>
18      <condition field="${sip_looped_call}" expression="^true$">
19        <action application="deflect" data="${destination_number}"/>
20      </condition>
21    </extension>
22    <!--
23        Tag anything pass thru here as an outside_call so you can make sure not
24        to create any routing loops based on the conditions that it came from
25        the outside of the switch. 
26    -->
27    <extension name="outside_call" continue="true">
28      <condition>
29        <action application="set" data="outside_call=true"/>
30        <action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/>
31      </condition>
32    </extension>
33
34    <extension name="call_debug" continue="true">
35      <condition field="${call_debug}" expression="^true$" break="never">
36        <action application="info"/>
37      </condition>
38    </extension>
39
40    <extension name="public_extensions">
41      <condition field="destination_number" expression="^(10[01][0-9])$">
42        <action application="transfer" data="$1 XML default"/>
43      </condition>
44    </extension>
45   
46    <!--
47        You can place files in the public directory to get included.
48    -->
49    <X-PRE-PROCESS cmd="include" data="public/*.xml"/>
50    <!--
51        If you have made it this far lets challenge the caller and if they authenticate
52        lets try what they dialed in the default context. (commented out by default)
53    -->
54    <!--
55    <extension name="check_auth" continue="true">
56      <condition field="${sip_authorized}" expression="^true$" break="never">
57        <anti-action application="respond" data="407"/>
58      </condition>
59    </extension>
60   
61    <extension name="transfer_to_default">
62      <condition>
63        <action application="transfer" data="${destination_number} XML default"/>
64      </condition>
65    </extension>
66    -->
67  </context>
68</include>
Note: See TracBrowser for help on using the repository browser.