<div dir="ltr">Hello Henning,<div>thanks for the suggestions.<br><div>You are right, I was referring to the sdp_remove_media() function. In the <a href="https://kamailio.org/docs/modules/5.5.x/modules/sdpops.html#sdpops.f.sdp_remove_media">documentation</a> 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.</div><div>We have experienced issues ourselves with this solution so it's not viable.</div><div><br>Sadly we can't return 415 either because it would mean that the call would be dropped.</div><div>We have some devices that will always offer the video and that won't strip it in any occasion from their invites.</div><div><br></div><div><br></div><div><br>Our only solution is to find a way of doing it ourselves with either Kamailio or rtpengine.<br><br>Regards</div><div><br></div><div>Simone</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 22 apr 2022 alle ore 16:46 Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_-6182023508397156824WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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:<u></u><u></u></span></p>
<p class="MsoNormal">Accept: audio/*<span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Simone de Blasiis<br>
<b>Sent:</b> Friday, April 22, 2022 4:32 PM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] How to disable video in invite with both audio and video<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">Hello to everyone,</span><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">we have a Kamailio 5.5 + RTPEngine deployment.<br>
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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">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.<br>
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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">I've spent days searching but I can't find an obvious way of achieving this.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">Can someone please help us?<br>
Thanks in advance<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.5pt;font-family:Roboto">Simone de Blasiis<u></u><u></u></span></p>
</div>
</div>
</div>
</div>

</blockquote></div>