<div dir="ltr">Input Please!!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 5:08 PM, Logeshwaran G <span dir="ltr"><<a href="mailto:logeshwarangs@gmail.com" target="_blank">logeshwarangs@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><div><div>Thanks a lot!<br><br></div>But for my scenario,<br><br></div>If I am Dialling 000919999999999, need to remove the first three digits 000, so the call should go to 919999999999.<br><br></div>I am stucked to create the rule for the above scenario, Kindly help me for the same.<br><br></div>Kind Regards,<br></div>Logeshwaran </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 4:48 PM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, Aug 03, 2017 at 04:00:45PM +0530, Logeshwaran G wrote:<br>
><br>
> +----+------+----+----------+-<wbr>----------+-----------+-------<wbr>----+----------+-------+<br>
> | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp<br>
> | attrs |<br>
> +----+------+----+----------+-<wbr>----------+-----------+-------<wbr>----+----------+-------+<br>
> |  1 |    1 |  1 |        1 | ^000$     |         0 | ^000$     |<br>
> |       | 111<br>
> +----+------+----+----------+-<wbr>----------+-----------+-------<wbr>----+----------+-------+<br>
><br>
> The above rule replacing only the 000, If we Dial 000xxxx its omitting,<br>
> While Dialing 000 its replacing that with 111.<br>
<br>
</span>IN a regexp ^ matches the beginning of the line/string, and $ matches<br>
the end.<br>
<br>
So "^000$" only matches exactly "000" and not "000xxxx"<br>
Remove the $ to match strings begining with 000.<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>