[SR-Users] Issue in Dialplan Module

Logeshwaran G logeshwarangs at gmail.com
Thu Aug 3 12:30:45 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170803/5d6baf0d/attachment.html>


More information about the sr-users mailing list