Hi, I am facing an Problem in Dialplan Module.
Scenario: ======== I am Dialling 00091xxxxxxxxxx number, I need to remove only the prefix 000, then the call placement will be 91xxxxxxxxxx. My dialplan rule: ============== MariaDB [kamailio]> select * from dialplan; +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^000$ | 0 | ^000$ | | | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ But the prefix 000 is not replaced. Please Guide me to Resolve this issue. Do I need to change somet rules?? Additional info: ============= But, With additional to the above dialplan data rule I used the below rule. +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs | +----+------+----+----------+-----------+-----------+-----------+----------+-------+ | 1 | 1 | 1 | 1 | ^000$ | 0 | ^000$ | | | 111 +----+------+----+----------+-----------+-----------+-----------+----------+-------+ The above rule replacing only the 000, If we Dial 000xxxx its omitting, While Dialing 000 its replacing that with 111. Thanks & Regards, Logeshwaran
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
