<div dir="ltr"><div>Maybe this will do what you want.</div><div>&lt;include&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;extension name=&quot;20254&quot;&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(20254.+)&quot;&gt;</div>
<div><span class="" style="white-space:pre">                        </span>&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;</div>
<div><span class="" style="white-space:pre">                        </span>&lt;action application=&quot;bridge&quot; data=&quot;sofia/${use_profile}/$1@xxx.xxx.xxxx&quot;/&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/condition&gt;</div>
<div><span class="" style="white-space:pre">        </span>&lt;/extension</div><div>&lt;/include&gt;</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 6:12 PM, Andre <span dir="ltr">&lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div><pre><span style="color:#1f497d">Hi, I’m working on testing some things with FreeSWITCH and I’m creating a static dial string however it doesn’t seem to be working.<u></u><u></u></span></pre>
<pre><span style="color:#1f497d">What is wrong with the below? I want anything with prefix 202254 to go to one IP but I need to send the prefix with it<u></u><u></u></span></pre><pre><span style="color:#1f497d"><u></u> <u></u></span></pre>
<pre><span style="color:#1f497d">&lt;include&gt;<u></u><u></u></span></pre><pre><span style="color:#1f497d">  &lt;extension name=&quot;20254&quot;&gt;<u></u><u></u></span></pre><pre><span style="color:#1f497d">    &lt;condition field=&quot;destination_number&quot; expression=&quot;^20254&quot;&gt;<u></u><u></u></span></pre>
<pre><span style="color:#1f497d"><u></u> <u></u></span></pre><pre><span style="color:#1f497d">&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<u></u><u></u></span></pre><pre><span style="color:#1f497d">&lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;<u></u><u></u></span></pre>
<pre><span style="color:#1f497d">&lt;action application=&quot;bridge&quot; data=&quot;sofia/${use_profile}/$0@xxx.xxx.xxxx&quot;/&gt;<u></u><u></u></span></pre><pre><span style="color:#1f497d">   <u></u><u></u></span></pre>
<pre><span style="color:#1f497d"> &lt;/condition&gt;<u></u><u></u></span></pre><pre><span style="color:#1f497d">  &lt;/extension<u></u><u></u></span></pre><pre><span style="color:#1f497d">&lt;/include&gt;<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext"><u></u> <u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">This is what I see in the debug screen<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext"><u></u> <u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> Regex (FAIL) [public_extensions] des<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">tination_number(202543015551212) =~ /^(10[01][0-9])$/ break=on-false<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> parsing [public-&gt;public_did] continu<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">e=false<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> Regex (FAIL) [public_did] destinatio<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">n_number(202543015551212) =~ /^(5551212)$/ break=on-false<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">2014-08-29 18:02:57.882447 [DEBUG] switch_core_state_machine.c:167 (sofia/intern<u></u><u></u></span></pre>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><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></blockquote></div><br></div>