From a6e2ba187af3710428df1f18d39bd6eccf6db3db Mon Sep 17 00:00:00 2001 From: Alexei Gradinari Date: Mon, 11 Apr 2016 17:20:49 -0400 Subject: 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 --- main/format_cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/format_cap.c') diff --git a/main/format_cap.c b/main/format_cap.c index d3e87fafd..2b3e6cd5f 100644 --- a/main/format_cap.c +++ b/main/format_cap.c @@ -342,7 +342,7 @@ int ast_format_cap_update_by_allow_disallow(struct ast_format_cap *cap, const ch } - while ((this = strsep(&parse, ",|"))) { + while ((this = ast_strip(strsep(&parse, ",|")))) { int framems = 0; struct ast_format *format = NULL; -- cgit v1.2.3