<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>    &lt;!-- route 1234 numbers through trunkxxx -&gt;<br>    &lt;condition field=&quot;destination_number&quot;  break=&quot;on-true&quot;<br>          expression=&quot;^1234567890$&quot;&gt;<br>          &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/trunkxxx/240$0&quot;/&gt;<br>    &lt;/condition&gt;<br><br></div>What do I need to do to send the whole matched number prefixed or suffixed with some other numbers?<br><div><br><br><div><div>-- <br><div class="gmail_signature">Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a></div>
</div></div></div></div>