2010-07-15 12:17:00 +08:00
|
|
|
<!--
|
|
|
|
NOTICE:
|
|
|
|
|
|
|
|
This context is usually accessed via the external sip profile listening 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"/>
|
2021-02-10 01:44:17 +08:00
|
|
|
<action application="export" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/>
|
2010-08-11 02:38:53 +08:00
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2010-07-15 12:17:00 +08:00
|
|
|
<!--
|
2021-02-10 01:44:17 +08:00
|
|
|
You can place files in the public directory to get included.
|
2010-07-15 12:17:00 +08:00
|
|
|
-->
|
|
|
|
<X-PRE-PROCESS cmd="include" data="public/*.xml"/>
|
2021-02-10 01:44:17 +08:00
|
|
|
|
|
|
|
|
2010-07-15 12:17:00 +08:00
|
|
|
</context>
|
2021-02-10 01:44:17 +08:00
|
|
|
|
2010-07-15 12:17:00 +08:00
|
|
|
</include>
|
2021-02-10 01:44:17 +08:00
|
|
|
|