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

Alexei Gradinari asteriskteam at digium.com
Mon Apr 11 16:26:48 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/2572

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/72/2572/1

diff --git a/main/format_cap.c b/main/format_cap.c
index 17ae18c..bf3bd1c 100644
--- a/main/format_cap.c
+++ b/main/format_cap.c
@@ -376,7 +376,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/2572
To unsubscribe, visit https://gerrit.asterisk.org/settings

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



More information about the asterisk-code-review mailing list