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

Henning Westerholt hw at gilawa.com
Fri Apr 22 17:41:32 CEST 2022


Hello,

Ok, understood – have a look to the reply from Richard in this e-mail thread, he also provided a standard compliant suggestion.

Cheers,

Henning

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

From: Simone de Blasiis <simone.deblasiis at teameis.it>
Sent: Friday, April 22, 2022 5:33 PM
To: Henning Westerholt <hw at gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] How to disable video in invite with both audio and video

Hello Henning,
thanks for the suggestions.
You are right, I was referring to the sdp_remove_media() function. In the documentation<https://kamailio.org/docs/modules/5.5.x/modules/sdpops.html#sdpops.f.sdp_remove_media> of the sdpops modules it cites RFC 3264 and it says that the number of m= lines must be the same for both the offer and the answer.
We have experienced issues ourselves with this solution so it's not viable.

Sadly we can't return 415 either because it would mean that the call would be dropped.
We have some devices that will always offer the video and that won't strip it in any occasion from their invites.



Our only solution is to find a way of doing it ourselves with either Kamailio or rtpengine.

Regards

Simone

Il giorno ven 22 apr 2022 alle ore 16:46 Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>> ha scritto:
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<mailto: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<mailto: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/22cfa128/attachment.htm>


More information about the sr-users mailing list