diff options
author | Mark Spencer <markster@digium.com> | 2005-02-11 06:53:18 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-02-11 06:53:18 +0000 |
commit | 41453ebf74e9fecfc01cd28c567ca580a8b48d6d (patch) | |
tree | 2e58e561ab914f08fa9456cfe72ccc48703a1961 | |
parent | 9cd9198127f5c2bd6d0e98dbae45d4baaa1a014b (diff) |
Copy/paste errors (bug #3559, #3560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_dial.c | 18 | ||||
-rwxr-xr-x | res/res_features.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index afd3535d4..da8888d5f 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -819,19 +819,19 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags mac++; /* Leave the "m" in the string */ while (*mac && (*mac != ')')) *(mac++) = 'X'; - if (*mac) + if (*mac) { *mac = 'X'; - else { + mac = strchr(mohclass, ')'); + if (mac) + *mac = '\0'; + else { + ast_log(LOG_WARNING, "Music on hold class specified without trailing ')'\n"); + mohclass = NULL; + } + } else { ast_log(LOG_WARNING, "Could not find music on hold class to use, assuming default.\n"); mohclass=NULL; } - mac = strchr(macroname, ')'); - if (mac) - *mac = '\0'; - else { - ast_log(LOG_WARNING, "Music on hold class specified without trailing ')'\n"); - mohclass = NULL; - } } /* Extract privacy info from transfer */ if ((s = strstr(transfer, "P("))) { diff --git a/res/res_features.c b/res/res_features.c index b22846026..a5b8f905d 100755 --- a/res/res_features.c +++ b/res/res_features.c @@ -1501,7 +1501,7 @@ static int load_config(void) } else transferdigittimeout = transferdigittimeout * 1000; } else if (!strcasecmp(var->name, "featuredigittimeout")) { - if ((sscanf(var->value, "%d", &featuredigittimeout) != 1) || (transferdigittimeout < 1)) { + if ((sscanf(var->value, "%d", &featuredigittimeout) != 1) || (featuredigittimeout < 1)) { ast_log(LOG_WARNING, "%s is not a valid featuredigittimeout\n", var->value); featuredigittimeout = DEFAULT_FEATURE_DIGIT_TIMEOUT; } |