Module: kamailio
Branch: master
Commit: 60aa7ec193950249a1610a943b767421e310fb10
URL:
https://github.com/kamailio/kamailio/commit/60aa7ec193950249a1610a943b76742…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-04-07T11:16:43+02:00
modules: readme files regenerated - sdpops ... [skip ci]
---
Modified: src/modules/sdpops/README
---
Diff:
https://github.com/kamailio/kamailio/commit/60aa7ec193950249a1610a943b76742…
Patch:
https://github.com/kamailio/kamailio/commit/60aa7ec193950249a1610a943b76742…
---
diff --git a/src/modules/sdpops/README b/src/modules/sdpops/README
index 4f1737f..573e1fc 100644
--- a/src/modules/sdpops/README
+++ b/src/modules/sdpops/README
@@ -298,6 +298,26 @@ if(sdp_with_active_media("video"))
Remove the streams that match on 'm=type ...' line. The parameter can
be static string or variable holding the media type.
+ Note: If this is executed on a request, the callee should reply without
+ the Media too. However, RFC 3264 mandates, that the reply should
+ contain the exact same number of "m=" lines as the request.
+
+
+ 6 Generating the Answer
+
+ [...]
+
+ For each "m=" line in the offer, there MUST be a corresponding
"m="
+ line in the answer. The answer MUST contain exactly the same number of
+ "m=" lines as the offer. This allows for streams to be matched up based
+ on their order. This implies that if the offer contained zero "m="
+ lines, the answer MUST contain zero "m=" lines.
+
+ --RFC 3264
+
+ So this may not work with all Endpoints, especially if they follow RFC
+ 3264 precisely (e.g. JSSIP).
+
This function can be used from ANY_ROUTE.
Example 1.8. sdp_remove_media usage