<HTML><BODY><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="mail-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">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="15034825590000000353">
        



    









        
        


        
        
        
        
        

        
        

        
        



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

        
</div>


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