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

Jenkins2 asteriskteam at digium.com
Mon Feb 19 19:59:36 CST 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/8252 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index 764be19..cb60464 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -2937,10 +2937,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/8252
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3d2f282db6995be8c1c253b5d52f6038761e8af
Gerrit-Change-Number: 8252
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180219/78728f1d/attachment-0001.html>


More information about the asterisk-code-review mailing list