[Freeswitch-users] Dial plan help
Chad Vogel
cvogel at lyonl.com
Mon Sep 19 10:40:33 MSD 2011
it seems to almost work, but call forwarding doesnt work, I get this error: "[INFO] mod_dptools.c:2801 Originate Failed. Cause: ORIGINATOR_CANCEL"
<include>
<extension name="4142211800">
<condition field="destination_number" expression="^(\+?1)?(4142211800)$">
<action application="bridge" data="sofia/gateway/level3/+15618911806"/>
</condition>
</extension>
<extension name="13127567001">
<condition field="destination_number" expression="^(\+?1)?(\d{10})$">
<action application="answer"/>
<action application="set" data="playback_terminators=#"/>
<action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/>
</condition>
</extension>
</include>
Our gateway config (i did replace the username's and passwords):
<gateway name="level3">
<param name="username" value="username"/>
<param name="password" value="password"/>
<param name="proxy" value="4.55.35.60:5070"/>
<param name="expire-seconds" value="3600"/>
<param name="register-transport" value="udp"/>
<param name="register" value="false"/>
<param name="dtmf-type" value="rfc2833"/>
</gateway>>
</include>
On Sep 19, 2011, at 12:46 AM, Avi Marcus wrote:
+ is a regex operator (see a basic intro at http://wiki.freeswitch.org/wiki/Regular_Expression)
If you want to use a literal +, you need to escape it, e.g \+
-Avi
On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <cvogel at lyonl.com<mailto:cvogel at lyonl.com>> wrote:
level 3 is sending us + on every incoming DID, how would i write the correct expression?
On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote:
hi chad,
nothing could match "+" in the destination_number.
-nandy
On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel at lyonl.com<mailto:cvogel at lyonl.com>> wrote:
I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file.
<include>
<extension name="14142211800<tel:14142211800>">
<condition field="destination_number" expression=""^+14142211800<tel:14142211800>$">
<action application="bridge" data="sofia/gateway/level3/+15618911806<tel:%2B15618911806>"/>
</condition>
</extension>
<extension name="13127567001<tel:13127567001>">
<condition field="destination_number" expression=""^+(1{0,1}\d{10})$">
<action application="answer"/>
<action application="set" data="playback_terminators=#"/>
<action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/>
</condition>
</extension>
</include>
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org<http://www.freeswitch.org/>
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org<http://www.freeswitch.org/>
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org<http://www.freeswitch.org/>
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110919/4d1c4c5e/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list