net/freeswitch: Separated configs. Made -upstream-defaults config a separate package...
[openwrt/svn-archive/archive.git] / net / freeswitch / files / etc.minimal / dialplan / public.xml
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 </condition>
31 </extension>
32
33 <extension name="call_debug" continue="true">
34 <condition field="${call_debug}" expression="^true$" break="never">
35 <action application="info"/>
36 </condition>
37 </extension>
38
39 <extension name="public_extensions">
40 <condition field="destination_number" expression="^(100[0-4])$">
41 <action application="transfer" data="$1 XML default"/>
42 </condition>
43 </extension>
44
45 <!--
46 You can place files in the public directory to get included.
47 -->
48 <X-PRE-PROCESS cmd="include" data="public/*.xml"/>
49 </context>
50 </include>