<HTML><BODY><p style="margin-top: 0px;" dir="ltr">How do you call dialplan? Post your cfg to pastebin.com plz.</p> 
<div id="mail-app-auto-default-signature">
 <p dir="ltr">--<br> Отправлено из myMail для Android</p>
</div>среда, 23 августа 2017г., 13:06 +03:00 от Logeshwaran G <a href="mailto:logeshwarangs@gmail.com">logeshwarangs@gmail.com</a>:<br><br><blockquote id="mail-app-auto-quote" style="border-left:1px solid #FC2C38; margin:0px 0px 0px 10px; padding:0px 0px 0px 10px;" cite="15034830840000000355">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div >
                <base target="_self" href="https://e-aj.my.com/" />
                
                        <div id="style_15034830840000000355_BODY"><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 ><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div >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 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 >
 <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 style="border-left:1px solid #fc2c38;margin:0px 0px 0px 10px;padding:0px 0px 0px 10px" cite="http://15034825590000000353">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div >
        
        <div><div><div >
                
                
                        <div ><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>_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
                
                
        </div>

        
</div>


</blockquote></div>
<br>_______________________________________________<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-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div>
                        
                
                <base target="_self" href="https://e-aj.my.com/" />
        </div>

        
</div>


</blockquote></BODY></HTML>