<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Hello,</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
I'm on OpenSIPS 3.4.9 with rtpengine 13.1.1.6. I'm trying to make use of the 'sdp-media-remove' command supported in this version of rtpengine to remove unwanted media sessions from the SDP.</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
The author of rtpengine reminds me its syntax is </div>
<div class="elementToProof" style="font-family: "Lucida Console", Monaco, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
"sdp-media-remove" : ["<media-type>", "<media-type>", ...]</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Or, in other words, this command requires a 'list' as its parameters.</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
The only way I could get rtpengine not to throw an error was by using "sdp-media-remove=video". rtpengine shows this as</div>
<div class="elementToProof" style="font-family: "Lucida Console", Monaco, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
"sdp-media-remove": "video"</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Based on the documentation, it needs to be</div>
<div class="elementToProof" style="font-family: "Lucida Console", Monaco, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
"sdp-media-remove" : ["video"]</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
How can one formulate an rtpengine_offer() command so that I can provide a 'list'. In my case I want to preserve only the 'audio' session, so, I need to write an rtpengine_offer() message with the sdp-media-remove command that sends this:</div>
<div class="elementToProof" style="font-family: "Lucida Console", Monaco, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
"sdp-media-remove" : ["video", "text", "application", "message", "other"]</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Even better, is it possible to use standard OpenSIPS scripting commands like stream_exists() and stream_delete() to remove the streams from the SDP before sending to rtpengine? In my testing, these commands don't have any effect on what rtpengine receives. </div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
I have Cisco devices on my network that send an rtpmap payload of 255, which rtpengine typically refuses to process because it's out of spec. Removing the erroneous an unnecessary streams in OpenSIPS before processing in rtpengine would solve this problem without
having to patch rtpengine.</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Regards,</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Jeff</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
This message is subject to Fusion Connect, Inc.’s email communication policy: www.fusionconnect.com/email-policy
</body>
</html>