<div dir="ltr"><div>Sorry, Typo Error in previous mail.<br><br></div>^222([0-9]+)$ I do have the same subst_exp but the first three digits are not removing.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 23, 2017 at 3:31 PM,  <span dir="ltr"><<a href="mailto:yu@yu-boot.ru" target="_blank">yu@yu-boot.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><p style="margin-top:0px" dir="ltr">subst_exp: ^222([0-9]­+)$ </p> 
<p dir="ltr">And if you call dialplan before lcr, remove 222 from lcr table entries.</p> 
<div id="m_-8459745462404258086mail-app-auto-default-signature">
 <p dir="ltr">--<br> Отправлено из myMail для Android</p>
</div>среда, 23 августа 2017г., 12:56 +03:00 от Logeshwaran G <a href="mailto:logeshwarangs@gmail.com" target="_blank">logeshwarangs@gmail.com</a>:<br><br><blockquote id="m_-8459745462404258086mail-app-auto-quote" style="border-left:1px solid #fc2c38;margin:0px 0px 0px 10px;padding:0px 0px 0px 10px" cite="http://15034825590000000353">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="m_-8459745462404258086js-helper m_-8459745462404258086js-readmsg-msg">
        
        <div><div><div class="h5">
                
                
                        <div id="m_-8459745462404258086style_15034825590000000353_BODY"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I have one query in Dialplan module, my scenario is If I call 22291+++++++++ the first three digit should remove and the call place to 91+++++++.<br><br></div>But i dont get the exact result, the first three digits are not removing. I have used the below rules:<br><br></div>Lcr_rule table:<br>============<br></div>id: 5<br></div>lcr_id: 2<br></div>Prefix:22291<br></div>Request uri: NULL<br></div>Stopper: 1<br></div>Enabled: 1<br><br></div>LCR_rule_target:<br>==================<br></div>id:3<br></div>lcr_id:2<br></div>rule_id:5<br></div>gw:id:2<br></div>priority:1<br></div>weight:1<br><br></div>Dialplan table:<br>=============<br></div>id:3<br></div>dpid:2<br></div>pr:1<br></div>match_op:1<br></div>match_exp: ^222[0-9]+$ <br></div>subst_exp: ^222[0-9]+$ <br></div>repl_exp:\1<br><br></div>Is it correct or not, Please guide me.<br><div><div><div><br><div><div><div><div><div><div><div><div><br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br><br clear="all"><div><div><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
                        </div></div><div>______________________________<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" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div>
                
                
        </div>

        
</div>


</blockquote></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>