On Thu, Aug 03, 2017 at 04:00:45PM +0530, Logeshwaran G wrote:
>
> +----+------+----+----------+-----------+-----------+------- IN a regexp ^ matches the beginning of the line/string, and $ matches----+----------+-------+
> | 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.
the end.
So "^000$" only matches exactly "000" and not "000xxxx"
Remove the $ to match strings begining with 000.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr- users