4 This context is usually accessed via the external sip profile listening on port 5080.
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
12 <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
14 <context name=
"public">
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}"/>
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.
27 <extension name=
"outside_call" continue=
"true">
29 <action application=
"set" data=
"outside_call=true"/>
33 <extension name=
"call_debug" continue=
"true">
34 <condition field=
"${call_debug}" expression=
"^true$" break=
"never">
35 <action application=
"info"/>
39 <extension name=
"public_extensions">
40 <condition field=
"destination_number" expression=
"^(100[0-4])$">
41 <action application=
"transfer" data=
"$1 XML default"/>
46 You can place files in the public directory to get included.
48 <X-PRE-PROCESS cmd=
"include" data=
"public/*.xml"/>