mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
one more disallow issue resolved disallow=all in peer must flush prefs list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
frame.c
3
frame.c
@@ -982,7 +982,8 @@ void ast_parse_allow_deny(struct ast_codec_pref *pref, int *mask, char *list, in
|
||||
ast_codec_pref_append(pref, format_i);
|
||||
else
|
||||
ast_codec_pref_remove(pref, format_i);
|
||||
}
|
||||
} else if(!allowing) /* disallow all must clear your prefs or it makes no sense */
|
||||
memset(pref, 0, sizeof(struct ast_codec_pref));
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Cannot %s unknown format '%s'\n", allowing ? "allow" : "disallow", last_format);
|
||||
|
||||
|
Reference in New Issue
Block a user