When using the TEXTOPS module to search and/or replace items in the SIP
messages, I don't seem to be able to match IPv6 addresses that are enclosed in
square brackets '[' ']'.
If I try and escape with '\[' or ']' it seems to invalidate the entire subst
command.
If I escape with '\x4b' or '\x4d' it simply won't match.
e.g.
subst('/^Contact: ([^@]*<)([^@]*@)[a-zA-Z_0-9\[\].:-]+(.*)(>.*)$/Contact:
\1\2$var(contact)\3\4/ig');
Any ideas?
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users