2009/5/27 karhu yoannks@gmail.com:
Theorically it's not required at all. These lines "a=rtpmap" are just a textual description. The could appear or not, the only important line is "m=audio...".
Sure it is useless to delete it but i have to ;)
Could I know why? (just curiosity).
Btw it is possible to add a line in the body ? i don't find any functions doing that in Textops. I need to manipulate SDP parameters.
Not sure, but perhaps this could work:
subst_body('/a=rtpmap:107 BV32/16000 /SAME_LINE\r\nNEW_LINE/');
In SAME_LINE you should use the typical variable to copy the match (maybe $1)?