<div dir="ltr">Hi,<div><br></div><div>I wants to remove media type "image" from SDP. For that I have tried to use KSR.sdpops.remove_media but it is not working. Not working in the sense that there is no effect of that function on SDP. I am using lua. Kindly find more details below.</div><div><br></div><div><b>Kamailio version</b>: kamailio 5.2.5 (x86_64/linux) 62d35f</div>





<div><br></div><div><b>SDP to process:</b></div><div>INVITE <a href="http://sip:xxxxxxxxxx@xxxxxxxxx.com:5060">sip:xxxxxxxxxx@xxxxxxxxx.com:5060</a> SIP/2.0<br>Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK-60823-1-0<br>From: xxxxxxxxxx <sip: xxxxxxxxxx@ <a href="http://xxxxxxxxxx.com:5060">xxxxxxxxxx.com:5060</a>>;tag=xxxxx<br>To: xxxxxxxxxx <sip: xxxxxxxxxx@ <a href="http://xxxxxxxxxx.com:5060">xxxxxxxxxx.com:5060</a>><br>Call-ID: <a href="mailto:1-60823@172.16.19.64">1-60823@172.16.19.64</a><br>CSeq: 1 INVITE<br>Contact: sip:xx@xxxxxxx:5060<br>Max-Forwards: 70<br>Content-Type: application/sdp<br>Content-Length:   337<br><br>v=0<br>o=zt 53655765 2353687637 IN IP4 xxx.xxx.xxx.xxx<br>s=-<br>c=IN IP4 xxx.xxx.xxx.xxx<br>t=0 0<br>m=image xxxx RTP/AVP udptl t38<br>a=sendrecv<br>a=T38FaxVersion:0<br>a=T38MaxBitRate:14400<br>a=T38FaxRateManagement:transferredTCF<br>a=T38FaxMaxBuffer:262<br>a=T38FaxMaxDatagram:176<br>a=T38FaxUdpEC:t38UDPRedundancy<br>m=audio xxxx RTP/AVP 0<br>a=rtpmap:0 PCMU/8000<br></div><div><br></div><div><br></div><div><b>Code snippet:</b></div><div>KSR.sdpops.remove_media("image")<br>logger.log("info", "SDP:" .. headers.get("$sdp(body)"))<br></div><div><br></div><div><b>Log snippet:</b></div><div><a href="https://pastebin.com/5JZmQUfq">https://pastebin.com/5JZmQUfq</a><br></div><div><br></div><div>One more thing I would like to mention that if I do not use dialog module then the function KSR.sdpops.remove_media works. But I can not avoid using dialog module.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Mitesh</div></div>