[Asterisk-code-review] rtp engine: Load format name / mime type in uppercase again. (asterisk[13])

Alexander Traud asteriskteam at digium.com
Sat Feb 17 08:49:49 CST 2018


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


Change subject: rtp_engine: Load format name / mime type in uppercase again.
......................................................................

rtp_engine: Load format name / mime type in uppercase again.

This reverts a previous change partly.

ASTERISK-27689

Change-Id: Ia3d2f282db6995be8c1c253b5d52f6038761e8af
---
M main/rtp_engine.c
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/51/8251/1

diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index 6bedd17..9292cda 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -2345,10 +2345,14 @@
 
 int ast_rtp_engine_load_format(struct ast_format *format)
 {
+	char *codec_name = ast_strdupa(ast_format_get_codec_name(format));
+
+	codec_name = ast_str_to_upper(codec_name);
+
 	set_next_mime_type(format,
 		0,
 		ast_codec_media_type2str(ast_format_get_type(format)),
-		ast_format_get_codec_name(format),
+		codec_name,
 		ast_format_get_sample_rate(format));
 	add_static_payload(-1, format, 0);
 

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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3d2f282db6995be8c1c253b5d52f6038761e8af
Gerrit-Change-Number: 8251
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/20180217/2f3ed324/attachment.html>


More information about the asterisk-code-review mailing list