Provided a more descriptive error message when a value supplied for the parameter
type is not one of the acceptable values.
(closes issue ASTERISK-18717)
Reported by: Paul Belanger
Patches:
__20111103-better-confbridge_info-error-msg.txt (License #4999)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348160
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
} else if (!strncasecmp(args.type, "locked", 6)) {
count = bridge->locked;
} else {
- ast_log(LOG_ERROR, "Invalid keyword.\n");
+ ast_log(LOG_ERROR, "Invalid keyword '%s' passed to CONFBRIDGE_INFO. Should be one of: "
+ "parties, admins, marked, or locked.\n", args.type);
}
snprintf(buf, len, "%d", count);
ao2_unlock(bridge);