Try escaping the : as well. They have special meaning in regex.
Ariadne Ramos wrote:
> Hello
>
>
>
> I’m trying to modify the contact header in onreply route
>
>
>
> I’m using
>
>
>
> if(subst('/^Contact:(.*)@proxy.yy.com/Contact:\[email protected]/')) {
>
> xlog("L_INFO", "SUBST OK $ct \n");
>
> }
>
>
>
>
>
> And the contact still being the same
>
>
>
>
>
> Logs
>
> [15224]: SUBST OK <sip:[email protected]>
>
>
>
> Can you help me to understand what I’m missing?
>
>
>
> Thanks in advanced
>
>
>
> Ariadne
>
>
>
> P BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING
> THIS E-MAIL
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> News mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/news
--
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
_______________________________________________
News mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/news