]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Improve error message in CONFBRIDGE_INFO
authorMatthew Jordan <mjordan@digium.com>
Wed, 14 Dec 2011 20:51:39 +0000 (20:51 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 14 Dec 2011 20:51:39 +0000 (20:51 +0000)
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

apps/app_confbridge.c

index f0b80967d67a2c197701d648f685cdf51f481d28..95a025f13d59e0c89faec82cb34b4da109b30caf 100644 (file)
@@ -2700,7 +2700,8 @@ static int func_confbridge_info(struct ast_channel *chan, const char *cmd, char
        } 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);