aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev/dialplan.public.xml
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-13 16:10:08 -0600
committermcrane <mctch@yahoo.com>2009-07-13 16:10:08 -0600
commitcb1d126c44ec2dcd2d2c5c118195e285c13b55d3 (patch)
tree4f21e6d50ffdb6c2815d33e4ca9c7218cf560c2f /config/freeswitch_dev/dialplan.public.xml
parentde7e7ae26e5f5aacbb30f21c3bcf100dcb4a7b0f (diff)
downloadpfsense-packages-cb1d126c44ec2dcd2d2c5c118195e285c13b55d3.tar.gz
pfsense-packages-cb1d126c44ec2dcd2d2c5c118195e285c13b55d3.tar.bz2
pfsense-packages-cb1d126c44ec2dcd2d2c5c118195e285c13b55d3.zip
FreeSWITCH add new dev package to seperate development from release.
Diffstat (limited to 'config/freeswitch_dev/dialplan.public.xml')
-rw-r--r--config/freeswitch_dev/dialplan.public.xml69
1 files changed, 69 insertions, 0 deletions
diff --git a/config/freeswitch_dev/dialplan.public.xml b/config/freeswitch_dev/dialplan.public.xml
new file mode 100644
index 00000000..f30227e0
--- /dev/null
+++ b/config/freeswitch_dev/dialplan.public.xml
@@ -0,0 +1,69 @@
+<!--
+ NOTICE:
+
+ This context is usually accessed via the external sip profile sitting on port 5080.
+
+ It is recommended to have separate inbound and outbound contexts. Not only for security
+ but clearing up why you would need to do such a thing. You don't want outside un-authenticated
+ callers hitting your default context which allows dialing calls thru your providers and results
+ in Toll Fraud.
+-->
+
+<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
+<include>
+ <context name="public">
+
+ <extension name="unloop">
+ <condition field="${unroll_loops}" expression="^true$"/>
+ <condition field="${sip_looped_call}" expression="^true$">
+ <action application="deflect" data="${destination_number}"/>
+ </condition>
+ </extension>
+ <!--
+ Tag anything pass thru here as an outside_call so you can make sure not
+ to create any routing loops based on the conditions that it came from
+ the outside of the switch.
+ -->
+ <extension name="outside_call" continue="true">
+ <condition>
+ <action application="set" data="outside_call=true"/>
+ </condition>
+ </extension>
+
+ <extension name="call_debug" continue="true">
+ <condition field="${call_debug}" expression="^true$" break="never">
+ <action application="info"/>
+ </condition>
+ </extension>
+
+ <!--
+ <extension name="public_extensions">
+ <condition field="destination_number" expression="^(10[01][0-9])$">
+ <action application="transfer" data="$1 XML default"/>
+ </condition>
+ </extension>
+ -->
+
+ <!--
+ 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. (commented out by default)
+ -->
+ <!--
+ <extension name="check_auth" continue="true">
+ <condition field="${sip_authorized}" expression="^true$" break="never">
+ <anti-action application="respond" data="407"/>
+ </condition>
+ </extension>
+
+ <extension name="transfer_to_default">
+ <condition>
+ <action application="transfer" data="${destination_number} XML default"/>
+ </condition>
+ </extension>
+ -->
+ </context>
+</include>