<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
it seems to almost work, but call forwarding doesnt work, I get this error: &quot;[INFO] mod_dptools.c:2801 Originate Failed. &nbsp;Cause: ORIGINATOR_CANCEL&quot;
<div>
<div><br>
</div>
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp;&nbsp;&lt;</span>include<span style="color: #2c26f9">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">extension</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>4142211800<span style="color: #000000">&quot;</span>&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">condition</span> <span style="color: #ff1b18">
field</span>=<span style="color: #000000">&quot;</span>destination_number<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">expression</span>=<span style="color: #000000">&quot;</span>^(\&#43;?1)?(4142211800)$<span style="color: #000000">&quot;</span>&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">action</span> <span style="color: #ff1b18">
application</span>=<span style="color: #000000">&quot;</span>bridge<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">data</span>=<span style="color: #000000">&quot;</span>sofia/gateway/level3/&#43;15618911806<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &nbsp; &nbsp; &lt;/</span>condition<span style="color: #2c26f9">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &nbsp; &lt;/</span>extension<span style="color: #2c26f9">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">extension</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>13127567001<span style="color: #000000">&quot;</span>&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">condition</span> <span style="color: #ff1b18">
field</span>=<span style="color: #000000">&quot;</span>destination_number<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">expression</span>=<span style="color: #000000">&quot;</span>^(\&#43;?1)?(\d{10})$<span style="color: #000000">&quot;</span>&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">action</span> <span style="color: #ff1b18">
application</span>=<span style="color: #000000">&quot;</span>answer<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">action</span> <span style="color: #ff1b18">
application</span>=<span style="color: #000000">&quot;</span>set<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">data</span>=<span style="color: #000000">&quot;</span>playback_terminators=#<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #b22221">action</span> <span style="color: #ff1b18">
application</span>=<span style="color: #000000">&quot;</span>playback<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">data</span>=<span style="color: #000000">&quot;</span>C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &nbsp; &nbsp; &lt;/</span>condition<span style="color: #2c26f9">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &nbsp; &lt;/</span>extension<span style="color: #2c26f9">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &lt;/</span>include<span style="color: #2c26f9">&gt;</span></div>
<div><font class="Apple-style-span" color="#2c26f9"><br>
</font></div>
<div><font class="Apple-style-span" color="#2c26f9"><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">Our gateway config (i did replace the username's and passwords):</span></font></div>
<div><font class="Apple-style-span" color="#2c26f9"><br>
</font></div>
<div><font class="Apple-style-span" color="#2c26f9">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp;&nbsp;&lt;<span style="color: #b22221">gateway</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>level3<span style="color: #000000">&quot;</span>&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; ">
&nbsp; &nbsp; &lt;<span style="color: rgb(178, 34, 33); ">param</span> <span style="color: rgb(255, 27, 24); ">
name</span>=<span style="color: rgb(0, 0, 0); ">&quot;</span>username<span style="color: rgb(0, 0, 0); ">&quot;</span>
<span style="color: rgb(255, 27, 24); ">value</span>=<span style="color: rgb(0, 0, 0); ">&quot;</span>username<span style="color: rgb(0, 0, 0); ">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>password<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>password<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>proxy<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>4.55.35.60:5070<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>expire-seconds<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>3600<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>register-transport<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>udp<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>register<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>false<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(44, 38, 249); ">
&nbsp; &nbsp; &lt;<span style="color: #b22221">param</span> <span style="color: #ff1b18">name</span>=<span style="color: #000000">&quot;</span>dtmf-type<span style="color: #000000">&quot;</span>
<span style="color: #ff1b18">value</span>=<span style="color: #000000">&quot;</span>rfc2833<span style="color: #000000">&quot;</span>/&gt;</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&nbsp; &lt;/</span>gateway<span style="color: #2c26f9">&gt;</span><span style="color: #000000">&gt;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Consolas; color: rgb(178, 34, 33); ">
<span style="color: #2c26f9">&lt;/</span>include<span style="color: #2c26f9">&gt;</span></div>
<div><span style="color: #2c26f9"><br>
</span></div>
</font></div>
<div>
<div>On Sep 19, 2011, at 12:46 AM, Avi Marcus wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">&#43; is a regex operator (see a basic intro at&nbsp;<a href="http://wiki.freeswitch.org/wiki/Regular_Expression">http://wiki.freeswitch.org/wiki/Regular_Expression</a>)
<div>If you want to use a literal &#43;, you need to escape it, e.g \&#43;<br clear="all">
<div dir="ltr"><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br>
<br>
<div class="gmail_quote">On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <span dir="ltr">
&lt;<a href="mailto:cvogel@lyonl.com">cvogel@lyonl.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">level 3 is sending us &#43; on every incoming DID, how would i write the correct expression?
<div>
<div></div>
<div class="h5">
<div><br>
</div>
<div>
<div>
<div>On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote:</div>
<br>
<blockquote type="cite">hi chad,<br>
<br>
nothing could match &quot;&#43;&quot; in the destination_number.&nbsp; <br>
<br>
-nandy<br>
<br>
<div class="gmail_quote">On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <span dir="ltr">
&lt;<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex">
<div style="word-wrap:break-word">
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">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.</span></div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)"><br>
</span></div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp;&nbsp;&lt;</span>include<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">extension</span>
<span style="color:rgb(255, 27, 24)">name</span>=<span style="color:rgb(0, 0, 0)">&quot;</span><a href="tel:14142211800" value="&#43;14142211800" target="_blank">14142211800</a><span style="color:rgb(0, 0, 0)">&quot;</span>&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">condition</span>
<span style="color:rgb(255, 27, 24)">field</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>destination_number<span style="color:rgb(0, 0, 0)">&quot;</span>
<span style="color:rgb(255, 27, 24)">expression</span>=<span style="color:rgb(0, 0, 0)">&quot;&quot;^&#43;</span><span style="color:rgb(255, 27, 24)"><a href="tel:14142211800" value="&#43;14142211800" target="_blank">14142211800</a></span><span style="color:rgb(0, 0, 0)">$&quot;</span>&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">action</span>
<span style="color:rgb(255, 27, 24)">application</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>bridge<span style="color:rgb(0, 0, 0)">&quot;</span>
<span style="color:rgb(255, 27, 24)">data</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>sofia/gateway/level3/<a href="tel:%2B15618911806" value="&#43;15618911806" target="_blank">&#43;15618911806</a><span style="color:rgb(0, 0, 0)">&quot;</span>/&gt;</div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &lt;/</span>condition<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp; &nbsp; &lt;/</span>extension<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">extension</span>
<span style="color:rgb(255, 27, 24)">name</span>=<span style="color:rgb(0, 0, 0)">&quot;</span><a href="tel:13127567001" value="&#43;13127567001" target="_blank">13127567001</a><span style="color:rgb(0, 0, 0)">&quot;</span>&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">condition</span>
<span style="color:rgb(255, 27, 24)">field</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>destination_number<span style="color:rgb(0, 0, 0)">&quot;</span>
<span style="color:rgb(255, 27, 24)">expression</span>=<span style="color:rgb(0, 0, 0)">&quot;&quot;^&#43;(</span><span style="color:rgb(255, 27, 24)">1</span><span style="color:rgb(0, 0, 0)">{</span><span style="color:rgb(255, 27, 24)">0</span><span style="color:rgb(0, 0, 0)">,</span><span style="color:rgb(255, 27, 24)">1</span><span style="color:rgb(0, 0, 0)">}\</span><span style="color:rgb(255, 27, 24)">d</span><span style="color:rgb(0, 0, 0)">{</span><span style="color:rgb(255, 27, 24)">10</span><span style="color:rgb(0, 0, 0)">})$&quot;</span>&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">action</span>
<span style="color:rgb(255, 27, 24)">application</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>answer<span style="color:rgb(0, 0, 0)">&quot;</span>/&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">action</span>
<span style="color:rgb(255, 27, 24)">application</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>set<span style="color:rgb(0, 0, 0)">&quot;</span>
<span style="color:rgb(255, 27, 24)">data</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>playback_terminators=#<span style="color:rgb(0, 0, 0)">&quot;</span>/&gt;</div>
<div style="margin:0px;color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color:rgb(178, 34, 33)">action</span>
<span style="color:rgb(255, 27, 24)">application</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>playback<span style="color:rgb(0, 0, 0)">&quot;</span>
<span style="color:rgb(255, 27, 24)">data</span>=<span style="color:rgb(0, 0, 0)">&quot;</span>C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav<span style="color:rgb(0, 0, 0)">&quot;</span>/&gt;</div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp; &nbsp; &nbsp; &lt;/</span>condition<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp; &nbsp; &lt;/</span>extension<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;color:rgb(178, 34, 33)"><span style="color:rgb(44, 38, 249)">&nbsp; &lt;/</span>include<span style="color:rgb(44, 38, 249)">&gt;</span></div>
<div style="margin:0px;min-height:11px"><br>
</div>
</div>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>
http://www.freeswitch.org<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>