<div dir="ltr"><div><div><div><div>Hi,<br><br></div></div><div>As far as I understood you need to prefix exact number with 240 and send it out to provider.<br></div><div><br></div>Please try following:<br><br> <!-- route 1234 numbers through trunkxxx -><br> <condition field="destination_number" break="on-true"<br> expression="^(1234567890$)"><br> <action application="bridge" data="sofia/gateway/trunkxxx/240$1"/><br> </condition><br><br></div>In this case only 1234567890 numbers will satisfy this condition and you will sand out to provider 240123456790<br><br></div><div></div>With kind regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 28, 2016 at 2:10 PM, vfclists . <span dir="ltr"><<a href="mailto:vfclists@gmail.com" target="_blank">vfclists@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"><div><div><div><br clear="all"></div>This may be due to my ignorance on how regexes are matched to parts of the dialled number.<br><br></div>I am testing a new trunk in the dialplan by routing a single number through it. All the other numbers use the existing trunk and will be switched over later. This means I match the whole number and use it in the dial plan. However when I use $0 on its on in the dial string it works okay, but when I prefix it, eg 240$0 the $0 is not translated to the dialled number and is sent literally to the provider with the obvious results.<br><br> <!-- route 1234 numbers through trunkxxx -><br> <condition field="destination_number" break="on-true"<br> expression="^1234567890$"><br> <action application="bridge" data="sofia/gateway/trunkxxx/240$0"/><br> </condition><br><br></div>What do I need to do to send the whole matched number prefixed or suffixed with some other numbers?<span class="HOEnZb"><font color="#888888"><br><div><br><br><div><div>-- <br><div>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a></div>
</div></div></div></font></span></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></div>