Created
August 6, 2009 16:33
-
-
Save hexorx/163411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<document type="freeswitch/xml"> | |
<section name="dialplan" description="Dialplan"> | |
<context name="public"> | |
<extension continue="true" name="user-active"> | |
<condition field="${sip_h_x-user-status}" expression="^active$"> | |
<anti-action application="info"/> | |
<anti-action application="hangup" data="MANAGER_REQUEST"/> | |
</condition> | |
</extension> | |
<extension name="international"> | |
<condition field="destination_number" expression="^(011)([0-9]+)$"/> | |
<condition field="${sip_h_x-international}" expression="^true$"> | |
<action application="set" data="call_timeout=121"/> | |
<action application="set" data="hangup_after_bridge=true"/> | |
<action application="set" data="continue_on_fail=true"/> | |
<action application="start_dtmf_generate" data="true"/> | |
<action application="bridge" data="sofia/gateway/lcr/$1"/> | |
<anti-action application="playback" data="/file_store/sounds/no_international.wav"/> | |
<anti-action application="hangup" data="MANAGER_REQUEST"/> | |
</condition> | |
</extension> | |
<extension name="domestic"> | |
<condition field="destination_number" expression="^1?([1-9][0-9]{2})([1-9][0-9]{2})([0-9]{4})$"> | |
<action application="set" data="call_timeout=121"/> | |
<action application="set" data="hangup_after_bridge=true"/> | |
<action application="set" data="continue_on_fail=true"/> | |
<action application="start_dtmf_generate" data="true"/> | |
<action application="bridge" data="sofia/gateway/lcr/$1"/> | |
</condition> | |
</extension> | |
<extension name="catchall"> | |
<condition field="destination_number" expression=".*"> | |
<action application="info"/> | |
<action application="hangup" data="NO_ROUTE_DESTINATION"/> | |
</condition> | |
</extension> | |
</context> | |
</section> | |
</document> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment