summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAlexei Gradinari <alex2grad@gmail.com>2016-04-11 17:20:49 -0400
committerAlexei Gradinari <alex2grad@gmail.com>2016-04-11 17:25:08 -0400
commit64ecd41c8f432a913eb7e9fdc9be746e4b15cd8c (patch)
tree891119c09cf2c23871293e5d67ba696ed618bc73 /main
parent901e8d78c4ddad0e60ce792f53ebe5a43026f163 (diff)
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
Diffstat (limited to 'main')
-rw-r--r--main/format_cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/format_cap.c b/main/format_cap.c
index 17ae18cd4..bf3bd1c4b 100644
--- a/main/format_cap.c
+++ b/main/format_cap.c
@@ -376,7 +376,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;