<div dir="ltr"><div>Maybe this will do what you want.</div><div><include></div><div><span class="" style="white-space:pre">        </span><extension name="20254"></div><div><span class="" style="white-space:pre">                </span><condition field="destination_number" expression="^(20254.+)"></div>
<div><span class="" style="white-space:pre">                        </span><action application="set" data="hangup_after_bridge=true"/></div><div><span class="" style="white-space:pre">                        </span><action application="set" data="bypass_media=true"/></div>
<div><span class="" style="white-space:pre">                        </span><action application="bridge" data="sofia/${use_profile}/$1@xxx.xxx.xxxx"/></div><div><span class="" style="white-space:pre">                </span></condition></div>
<div><span class="" style="white-space:pre">        </span></extension</div><div></include></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"><<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>></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"><include><u></u><u></u></span></pre><pre><span style="color:#1f497d"> <extension name="20254"><u></u><u></u></span></pre><pre><span style="color:#1f497d"> <condition field="destination_number" expression="^20254"><u></u><u></u></span></pre>
<pre><span style="color:#1f497d"><u></u> <u></u></span></pre><pre><span style="color:#1f497d"><action application="set" data="hangup_after_bridge=true"/><u></u><u></u></span></pre><pre><span style="color:#1f497d"><action application="set" data="bypass_media=true"/><u></u><u></u></span></pre>
<pre><span style="color:#1f497d"><action application="bridge" data="sofia/${use_profile}/$0@xxx.xxx.xxxx"/><u></u><u></u></span></pre><pre><span style="color:#1f497d"> <u></u><u></u></span></pre>
<pre><span style="color:#1f497d"> </condition><u></u><u></u></span></pre><pre><span style="color:#1f497d"> </extension<u></u><u></u></span></pre><pre><span style="color:#1f497d"></include><u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";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:"Calibri","sans-serif";color:windowtext">Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> parsing [public->public_did] continu<u></u><u></u></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">e=false<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:windowtext">n_number(202543015551212) =~ /^(5551212)$/ break=on-false<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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>