subst_exp: ^222([0-9]+)$ And if you call dialplan before lcr, remove 222 from lcr table entries. -- Отправлено из myMail для Android среда, 23 августа 2017г., 12:56 +03:00 от Logeshwaran G logeshwarangs@gmail.com :
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 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users