[Asterisk-code-review] Codecs: strip codec name while parsing allow/disallow options (asterisk[master])

Alexei Gradinari asteriskteam at digium.com
Thu Apr 14 16:35:57 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/2618

Change subject: Codecs: strip codec name while parsing allow/disallow options
......................................................................

Codecs: strip codec name while parsing allow/disallow options

Failed registration using PJSIP/Realtime if one of the codec name
in allow/disallow option is wrong or contains space.

This patch strip codec name.

ASTERISK-25914

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/2618/1

diff --git a/main/format_cap.c b/main/format_cap.c
index d3e87fa..2b3e6cd 100644
--- a/main/format_cap.c
+++ b/main/format_cap.c
@@ -342,7 +342,7 @@
 	}
 
 
-	while ((this = strsep(&parse, ",|"))) {
+	while ((this = ast_strip(strsep(&parse, ",|")))) {
 		int framems = 0;
 		struct ast_format *format = NULL;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifdf02de94e5ddbce305640f6f0666084a3b9283d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list