how to send a 'list' parameter to rtpengine from OpenSIPS 3.4

36 views
Skip to first unread message

Jeff Pyle

unread,
Feb 7, 2025, 5:22:22 PM2/7/25
to Sipwise rtpengine
Hello,

I'm on OpenSIPS 3.4.9 with rtpengine 13.1.1.6. I'm trying to make use of the 'sdp-media-remove' command supported in this version of rtpengine to remove unwanted media sessions from the SDP.

The docs say its syntax is 
  "sdp-media-remove" : ["<media-type>", "<media-type>", ...]

Or, in other words, this command requires a 'list' as its parameters.

The only way I could get rtpengine not to throw an error was by using "sdp-media-remove=video". rtpengine shows this as
  "sdp-media-remove": "video"

Based on the documentation, it needs to be
  "sdp-media-remove" : ["video"]

How can one formulate an rtpengine_offer() command so that I can provide a 'list'? In my case I want to preserve only the 'audio' session, so, I need to write an rtpengine_offer() message with the sdp-media-remove command that sends this:
  "sdp-media-remove" : ["video", "text", "application", "message", "other"]


Regards,
Jeff

Richard Fuchs

unread,
Feb 10, 2025, 6:59:16 AM2/10/25
to rtpe...@googlegroups.com
You'll have to direct this question to the OpenSIPS developers.

In the newer Kamailio module we have restructured the flags parsing so that you can do `rtpengine_offer("sdp-media-remove=[video message image]")` but likely that change hasn't made it over to OpenSIPS yet.

As a workaround you can try passing it as a regular key/value flag, such as `rtpengine_offer("rtpp-flags=sdp-media-remove=[video]")` which may or may not work. Putting multiple media types would require using spaces, which may result in the key/value being split up. As a possible workaround for that you can try putting `rtpp-flags=...` multiple times, once per media type.

Cheers
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rtpengine/0f3841a9-5265-4fc5-9978-2bf09cb82772n%40googlegroups.com.

Richard Fuchs

unread,
Feb 12, 2025, 1:56:43 PM2/12/25
to rtpe...@googlegroups.com
On 10/02/2025 07.59, Richard Fuchs wrote:
> As a workaround you can try passing it as a regular key/value flag,
> such as `rtpengine_offer("rtpp-flags=sdp-media-remove=[video]")` which
> may or may not work. Putting multiple media types would require using
> spaces, which may result in the key/value being split up. As a
> possible workaround for that you can try putting `rtpp-flags=...`
> multiple times, once per media type.

Another option is to use the new signalling templates and just put it in
the config file instead of passing it through your SIP proxy.

Cheers

Jeff Pyle

unread,
Feb 21, 2025, 10:35:31 AM2/21/25
to Sipwise rtpengine
Yes! This is definitely worth experimentation. Thanks, Richard.


- Jeff
Reply all
Reply to author
Forward
0 new messages