<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks that worked<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Russell Treleaven<br><b>Sent:</b> Friday, August 29, 2014 8:04 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Static Dial plan<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=MsoNormal>Maybe this will do what you want.<o:p></o:p></p></div><div><p class=MsoNormal>&lt;include&gt;<o:p></o:p></p></div><div><p class=MsoNormal>            &lt;extension name=&quot;20254&quot;&gt;<o:p></o:p></p></div><div><p class=MsoNormal>                        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(20254.+)&quot;&gt;<o:p></o:p></p></div><div><p class=MsoNormal>                                    &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>                                    &lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>                                    &lt;action application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/$%7buse_profile%7d/$1@xxx.xxx.xxxx">sofia/${use_profile}/$1@xxx.xxx.xxxx</a>&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>                        &lt;/condition&gt;<o:p></o:p></p></div><div><p class=MsoNormal>            &lt;/extension<o:p></o:p></p></div><div><p class=MsoNormal>&lt;/include&gt;<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Fri, Aug 29, 2014 at 6:12 PM, Andre &lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt; wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><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.</span><o:p></o:p></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</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&lt;include&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp; &lt;extension name=&quot;20254&quot;&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^20254&quot;&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&lt;action application=&quot;bridge&quot; data=&quot;<a href="mailto:sofia/$%7buse_profile%7d/$0@xxx.xxx.xxxx">sofia/${use_profile}/$0@xxx.xxx.xxxx</a>&quot;/&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp;&nbsp; </span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp;&lt;/condition&gt;</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&nbsp; &lt;/extension</span><o:p></o:p></pre><pre><span style='color:#1F497D'>&lt;/include&gt;</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>This is what I see in the debug screen</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> Regex (FAIL) [public_extensions] des</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>tination_number(202543015551212) =~ /^(10[01][0-9])$/ break=on-false</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>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</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>e=false</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Dialplan: sofia/internal/<a href="mailto:1000@192.168.1.111" target="_blank">1000@192.168.1.111</a> Regex (FAIL) [public_did] destinatio</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>n_number(202543015551212) =~ /^(5551212)$/ break=on-false</span><o:p></o:p></pre><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>2014-08-29 18:02:57.882447 [DEBUG] switch_core_state_machine.c:167 (sofia/intern</span><o:p></o:p></pre></div></div><p class=MsoNormal><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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>