[SR-Users] Query in Dialplan module

Logeshwaran G logeshwarangs at gmail.com
Wed Aug 23 11:56:23 CEST 2017


Hi,

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+++++++.

But i dont get the exact result, the first three digits are not removing. I
have used the below rules:

Lcr_rule table:
============
id: 5
lcr_id: 2
Prefix:22291
Request uri: NULL
Stopper: 1
Enabled: 1

LCR_rule_target:
==================
id:3
lcr_id:2
rule_id:5
gw:id:2
priority:1
weight:1

Dialplan table:
=============
id:3
dpid:2
pr:1
match_op:1
match_exp: ^222[0-9]+$
subst_exp: ^222[0-9]+$
repl_exp:\1

Is it correct or not, Please guide me.




Thanks & Kind Regards,
Logeshwaran G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170823/bb392e50/attachment.html>


More information about the sr-users mailing list