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
From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Simone de Blasiis
Sent: Friday, April 22, 2022 4:32 PM
To: sr-users@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 advanceSimone de Blasiis