[SR-Users] How to disable video in invite with both audio and video

Henning Westerholt hw at gilawa.com
Fri Apr 22 16:46:07 CEST 2022


Hello,

I did not look in the RFC regarding the removing the video line in questions. You are probably referring to the sdp_remove_media() function.

Do you expect problems when you are doing this? A quick web search found a similar suggestion also e.g. for Cisco router and others.

Another option would be to just return a 415 on the proxy level, by also adding the supported types to the Accept header, like this:
Accept: audio/*

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Simone de Blasiis
Sent: Friday, April 22, 2022 4:32 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] How to disable video in invite with both audio and video

Hello to everyone,
we have a Kamailio 5.5 + RTPEngine deployment.
Some devices will send an invite with both audio and video in the offer and we are trying to disable the video portion of the invite by either setting the video port to 0 or by setting a=inactive in the video portion of the SDP packet.
We know that sdpops has a function that would be able to remove the video portion but it violates standards so we can't use it.
We need to disable the video in the SDP offers because one of the pstn providers we are using doesn't accept invites that contain a video offer.
I've spent days searching but I can't find an obvious way of achieving this.
We were originally doing it with textops but we've been having some issues where the sdp wouldn't be modified correctly in reinvites after the original call is in place so we're looking for alternatives.
Can someone please help us?
Thanks in advance
Simone de Blasiis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220422/91095edd/attachment.htm>


More information about the sr-users mailing list