<div dir="ltr">Transfer to it, rather than bridge to loopback.<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><br><div class="gmail_quote">On Sat, Sep 24, 2011 at 9:12 PM, Chad Vogel <span dir="ltr"><<a href="mailto:cvogel@lyonl.com">cvogel@lyonl.com</a>></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">
so how would rewrite the destination_number?
<div><div></div><div class="h5"><div><br>
<div>
<div>On Sep 24, 2011, at 11:49 AM, Avi Marcus wrote:</div>
<br>
<blockquote type="cite">
<div dir="ltr">You can transfer to the new number.
<div>That means it starts the dialplan again, so put this cleanup at the top of your dialplan to minimize wasted routing.<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>
<br>
<div class="gmail_quote">On Sat, Sep 24, 2011 at 5:09 AM, Chad Vogel <span dir="ltr">
<<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>></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">What is the best way to do number normalization in a dial plan to reformat call to e164 before processing? Is this the best way of doing it or is there a better way where I wouldn't need to loopback?
<div>
<div><br>
</div>
<div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(44, 38, 249)">
<<span style="color:#b22221">extension</span> <span style="color:#ff1b18">name</span>=<span style="color:#000000">"</span>CleanUp<span style="color:#000000">"</span>></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(44, 38, 249)">
<<span style="color:#b22221">condition</span> <span style="color:#ff1b18">field</span>=<span style="color:#000000">"</span>destination_number<span style="color:#000000">"</span>
<span style="color:#ff1b18">expression</span>=<span style="color:#000000">"</span>^(44|380)?(\d)$<span style="color:#000000">"</span>></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(44, 38, 249)">
<<span style="color:#b22221">action</span> <span style="color:#ff1b18">application</span>=<span style="color:#000000">"</span>bridge<span style="color:#000000">"</span>
<span style="color:#ff1b18">data</span>=<span style="color:#000000">"</span>loopback/+$1<span style="color:#000000">"</span>/></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(178, 34, 33)">
<span style="color:#2c26f9"> </</span>condition<span style="color:#2c26f9">></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(178, 34, 33)">
<span style="color:#2c26f9"> </</span>extension<span style="color:#2c26f9">></span></div>
</div>
<div><span style="color:#2c26f9"><br>
</span></div>
</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>
</div>
</div>
<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>