diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-04-11 17:20:49 -0400 |
---|---|---|
committer | Alexei Gradinari <alex2grad@gmail.com> | 2016-04-14 16:35:56 -0500 |
commit | a6e2ba187af3710428df1f18d39bd6eccf6db3db (patch) | |
tree | 8d09b83c6588bac5eb62ab3d4efa92742666598a /main/format_cap.c | |
parent | be4333ddadc982905e498a03d17e05984c8f07b0 (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/format_cap.c')
-rw-r--r-- | main/format_cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |