[OpenSIPS-Users] textops and Variable

Marco Colombo mcolombo at enter.it
Thu Nov 8 10:30:09 CET 2012


Hi All,
i'm trying with Textops to do codec substitution in a call with re-invite.
I'm trying to do this, with this command : 

replace_body_all("m=audio 7078 RTP/AVP 8 18 0 2 100 99", "m=audio 7078 RTP/AVP 8 18 101");

but when this line "m=audio 7078 RTP/AVP 8 18 0 2 100 99" does not match perfectly, such as : "m=audio 7078 RTP/AVP 0 2 100" ecc
This substitution does not work.
It's possible to do, something like this : 

replace_body_all("m=audio 7078 RTP/AVP * ", "m=audio 7078 RTP/AVP 8 18 101");
I would to replace any codec with this "8 18 101"

Anybody can help me?

Thanks for all
Best Regards
Marco



More information about the Users mailing list