[Devel] subst warning
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Apr 7 12:04:43 CEST 2006
Hi Summet,
the second part of a subst is not a regexp, so you do not have to escape
+. The second part accepts only backward references via \x.
regards,
bogdan
S G wrote:
> Apr 6 16:55:15 [/sbin/openser] subst_parser: WARNING: \+ unknown
> escape in /^To: <sip:1?([0-9]{10,10})@(.*)$/To: <sip:\+1\1@\2/_
> Apr 6 16:55:15 [/sbin/openser] subst_parser: WARNING: \+ unknown
> escape in /^To: <sip:(.*)$/To: <sip:\+\1/_
>
>
> "\+" is a valid regex sequence for "+" isn't it? It works properly in
> the script but OpenSER reports it as a warning.
>
> -Sumeet
>
> _________________________________________________________________
> On the road to retirement? Check out MSN Life Events for advice on how
> to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
More information about the Devel
mailing list