[Asterisk-code-review] rtp engine: Allow Media Formats with add static payload(-1) ... (asterisk[15])

Alexander Traud asteriskteam at digium.com
Fri May 11 07:16:39 CDT 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8969


Change subject: rtp_engine: Allow Media Formats with add_static_payload(-1) on egress again.
......................................................................

rtp_engine: Allow Media Formats with add_static_payload(-1) on egress again.

This issue affected only installations with rtp_use_dynamic=yes in asterisk.conf
which is the default since Asterisk 15. Codec 2 and SiLK were built-in examples
of media formats which were affected.

ASTERISK-27850
Reported by: Dinis Brazão, Selene Feigl

Change-Id: I08c1e76433a67e4350141d38cacf3a1cb5086496
---
M main/rtp_engine.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/69/8969/1

diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index 5242e81..c550251 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -1539,7 +1539,7 @@
 	if (!explicit) {
 		payload = find_static_payload_type(asterisk_format, format, code);
 
-		if (payload < 0 && (!asterisk_format || ast_option_rtpusedynamic)) {
+		if (payload < 0 && (!asterisk_format || !ast_option_rtpusedynamic)) {
 			return payload;
 		}
 	}

-- 
To view, visit https://gerrit.asterisk.org/8969
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I08c1e76433a67e4350141d38cacf3a1cb5086496
Gerrit-Change-Number: 8969
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180511/9d3299de/attachment.html>


More information about the asterisk-code-review mailing list