[OpenSIPS-Users] Regular expression problems with replace_body

Kristijan Vrban vrban.lkml at googlemail.com
Sat Dec 5 03:21:24 CET 2009


Hello, i try to use replace_body to modify the RTP port in INVITE and OK
messages:

from:
m=audio 13740 RTP/AVP 8 0 3 101

to:
m=audio 666 RTP/AVP 8 0 3 101

with:
replace_body("^m=audio \d+", "m=audio 666");

but "^m=audio \d+" does not match. But the regular expression should be
correct.

Kristijan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091205/0251d51a/attachment.htm 


More information about the Users mailing list