Juha,

On 09/19/2011 02:54 PM, Juha Heinanen wrote:

trying to hack around the possible fix_nated_sdp("1") issue that i
outlined in previous message, i thought to remove video media
description from sdp.  in sdpops module there is sdp_with_media(type),
but for some reason no sdp_remove_media(type) function.  is there some
other means to get rid of sdp video media description?

I suppose you could use plain old subst_body() from textops to do it, if push came to shove:


http://www.kamailio.org/docs/modules/3.1.x/modules_k/textops.html#id2946106

I doubt that the PV ($rb) referring to the message body is mutable. The documentation does not suggest that. But if it were, you could use this transformation:


http://www.kamailio.org/dokuwiki/doku.php/transformations:3.1.x#resubst_expression

It seems like a slightly cleaner way than subst_body().

--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to