<div dir="ltr">I use mod_translate for that sort of thing but that&#39;s personal preference.</div><div class="gmail_extra"><br><div class="gmail_quote">On 11 September 2015 at 09:28, Jörn Ott <span dir="ltr">&lt;<a href="mailto:joern.ott@ext.chefkoch.de" target="_blank">joern.ott@ext.chefkoch.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello guys,<br></div><div><br></div><div>its not the digits causing problems but the \+ at the beginning.<br></div><div><br></div><div>My routes for national calls ^0(\d\d\d\d\d*)$ and international calls ^00(\d\d\d\d\d*)$ work fine that way (targetting all numbers which are longer than internal numbers and have a leading 0 or 00). The problem happens, if  add a similar rule starting with a literal + (\+), then I am getting switch parse errors.<br><div></div></div><div><br></div><div>Kind regards<br></div><div>Joern<br></div><div><br></div><hr><div><b>Von: </b>&quot;Ken Rice&quot; &lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;<br><b>An: </b>&quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br><b>Gesendet: </b>Freitag, 11. September 2015 04:13:59<br><b>Betreff: </b>Re: [Freeswitch-users] Replacing leading &quot;+&quot; in outgoing numbers<br></div><div><br></div><div><div><div class="h5"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">\d* is wrong… should be \d+ or maybe \d.*</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Jörn Ott<br><b>Sent:</b> Thursday, September 10, 2015 7:16 AM<br><b>To:</b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br><b>Subject:</b> [Freeswitch-users] Replacing leading &quot;+&quot; in outgoing numbers</span></p></div></div><p class="MsoNormal"> </p><div><div><div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">Hello all,</span></p></div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black"> </span></p><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">I am using FusionPBX and freeswitch. Incoming calls are signalled with a leading + and also stored in the snom phones call lists. If someone tries to call back an external caller, I tried to strip off the leading + on the outgoing call with the following condition:</span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">&lt;extension name=&quot;ext.ddddd&quot; &gt;<br>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^\+(\d\d\d\d\d*)$&quot; &gt;<br>       &lt;action application=&quot;set&quot; data=&quot;sip_h_X-accountcode=${accountcode}&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;sip_h_X-Tag=&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;call_direction=outbound&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;ignore_display_updates=true&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;callee_id_number=$1&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot; /&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;outbound_prefix=+&quot; /&gt;<br>       &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/781c8f7f-5d96-4e9e-8939-423b883cb675/$1&quot; /&gt;<br>   &lt;/condition&gt;<br>&lt;/extension&gt;</span></p></div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black"> </span></p><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">Sadly, the condition field already generates compile error.</span></p></div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black"> </span></p><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">Can you give me a hint, how I can strip the + from the dialled number?</span></p></div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black"> </span></p><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">Kind regards</span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">Joern</span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">-- </span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black">--<br>Jörn Ott<br>Systemadministrator<br><br>Chefkoch GmbH<br>Joseph-Schumpeter-Allee 33<br>53227 Bonn<br><br>Telefon <a href="tel:%2B49%20228%2028669-50" value="+492282866950" target="_blank">+49 228 28669-50</a><br>Telefax <a href="tel:%2B49%20228%2028669-511" value="+4922828669511" target="_blank">+49 228 28669-511</a><br><a href="mailto:joern.ott@ext.chefkoch.de" target="_blank">joern.ott@ext.chefkoch.de</a> | <a href="http://www.chefkoch.de" target="_blank">http://www.chefkoch.de</a><br><br>HRB 18761, Amtsgericht Bonn<br>Geschäftsführer: Martin Meister, Sven Giebler, Arne Wolter<br>Ein Unternehmen von Gruner+Jahr.</span></p></div></div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif;color:black"> </span></p></div></div></div><br></div></div>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">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-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></div></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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://www.cassidywebservices.co.uk/static/emailsig.png"><br></div><div><br><div><b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960 
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div><div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div><div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div></div></div></div></div></div>
</div>