[SR-Users] How to use sdp_remove_media() ?

Denys Pozniak denys.pozniak at gmail.com
Fri Nov 1 10:26:32 CET 2019


Hello!

I'm trying to remove m=video stream from incoming SIP/SDP request in th way
below:

modparam("rtpengine", "read_sdp_pv", "$avp(read_sdp_pv)")
modparam("rtpengine", "write_sdp_pv", "$avp(write_sdp_pv)")
...
  sdp_remove_media("video");
  msg_apply_changes();
  sdp_get("$avp(read_sdp_pv)");
  xlog("L_WARN","[$cfg(route)] *m=video removed* ci| rb=/$rb/ \n");
  xlog("L_WARN","[$cfg(route)] *m=video removed* ci|
avp(read_sdp_pv)=/$avp(read_sdp_pv)/ \n");
  rtpengine_manage("$avp(rtpengine_offer)");
  set_body("$avp(write_sdp_pv)", "application/sdp");

But no luck, xlog shows m=video in $rb and $avp(rtp_sdp_read) as well.

-- 

BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191101/00444528/attachment.html>


More information about the sr-users mailing list