<div dir="ltr">Is such possible with FreeSWITCH?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 5, 2015 at 11:05 AM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would like my dial plan in FS to automatically add a country code (from the users variable "country_code") if no country code has been dialled.<div><br></div><div>This is part of my dial plan:</div><div><br></div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)"> </span><span style="color:rgb(52,187,199)"><condition</span> field="destination_number" expression="^\+(\d{3,20})$"<span style="color:rgb(52,187,199)">></span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)"> </span><span style="color:rgb(52,187,199)"><action</span> application="export" data="dialed_extension=$1"/<span style="color:rgb(52,187,199)">></span></p></div><div><span style="color:rgb(52,187,199)"><br></span></div><div>Is it possible to automatically check if either + or 00 is dialled, if not then add + <user country_code>. If 00 is dialled then this should be replaced with a +.<span style="color:rgb(52,187,199)"><br></span></div></div>
</blockquote></div><br></div>