<font size="2"><span style="background-color:rgba(255,255,255,0)">&quot;^\+(\d{5,})$&quot; ?</span></font><br><br>On Thursday, September 10, 2015, Jörn Ott &lt;<a href="mailto:joern.ott@ext.chefkoch.de">joern.ott@ext.chefkoch.de</a>&gt; 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><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello all,<br></div><br><div>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:<br></div><div>&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;<br></div><br><div>Sadly, the condition field already generates compile error.</div><br><div>Can you give me a hint, how I can strip the + from the dialled number?<br></div><br><div>Kind regards<br></div><div>Joern<br></div><div>-- <br></div><div>--<br>Jörn Ott<br>Systemadministrator<br><br>Chefkoch GmbH<br>Joseph-Schumpeter-Allee 33<br>53227 Bonn<br><br>Telefon +49 228 28669-50<br>Telefax +49 228 28669-511<br><a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;joern.ott@ext.chefkoch.de&#39;);" 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.</div></div><br></div></div></div></blockquote><br><br>-- <br><div dir="ltr">Ítalo Rossi<div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div></div><br>