Bogdan,
tnx for help!
miha
Dne 5/15/2013 10:58 AM, pis(e Bogdan-Andrei Iancu:
Hello Miha,
According to
http://www.opensips.org/html/docs/modules/1.9.x/dialplan.html#id249053
, try :
match_op = 1 (regexp)
match_exp = "^0[1-7][0-9]{7}$"
subst_exp = "^0(.+)$" ; regular expresion used to do the
transformation (first part of the subst operation)
repl_exp = "386\1" ; second part of the subst (output) - linked to
the subst_exp field; when both defined, they work as a subst()
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05/13/2013 03:15 PM, Miha wrote:
Hi,
I need a little help regarding /subst_exp and repl_xmp.
/I am trying to catch 014564561 which I do with
match_exp(^0[1-7][0-9]{7}). Than I have problem as I would like to
substitute 0 with 386. So If I get 014564561 I would like to get
38614564561.
Can anyone can give me a quick info how to do that:)
Thanks!
Miha
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users