mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
issue #5887
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2005-11-29 Josh Roberson <josh@asteriasgi.com>
|
||||||
|
|
||||||
|
* apps/app_voicemail.c: Only look in 'default' context when no context defined to VoiceMailMain(). (issue #5887)
|
||||||
|
|
||||||
2005-11-25 Russell Bryant <russell@digium.com>
|
2005-11-25 Russell Bryant <russell@digium.com>
|
||||||
|
|
||||||
* apps/app_dial.c: Properly duplicate the string for ANI (issue #5850)
|
* apps/app_dial.c: Properly duplicate the string for ANI (issue #5850)
|
||||||
|
@@ -131,6 +131,10 @@ Applications:
|
|||||||
'mailbox options' menu, and 'change your password' option has been
|
'mailbox options' menu, and 'change your password' option has been
|
||||||
moved to option 5.
|
moved to option 5.
|
||||||
|
|
||||||
|
* The application VoiceMailMain now only matches the 'default' context if
|
||||||
|
none is specified in the arguments. (This was the previously
|
||||||
|
documented behavior, however, we didn't follow that behavior.)
|
||||||
|
|
||||||
Queues:
|
Queues:
|
||||||
|
|
||||||
* A queue is now considered empty not only if there are no members but if
|
* A queue is now considered empty not only if there are no members but if
|
||||||
|
@@ -573,8 +573,12 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex
|
|||||||
struct ast_vm_user *vmu=NULL, *cur;
|
struct ast_vm_user *vmu=NULL, *cur;
|
||||||
ast_mutex_lock(&vmlock);
|
ast_mutex_lock(&vmlock);
|
||||||
cur = users;
|
cur = users;
|
||||||
|
|
||||||
|
if (!context)
|
||||||
|
context = "default";
|
||||||
|
|
||||||
while (cur) {
|
while (cur) {
|
||||||
if ((!context || !strcasecmp(context, cur->context)) &&
|
if ((!strcasecmp(context, cur->context)) &&
|
||||||
(!strcasecmp(mailbox, cur->mailbox)))
|
(!strcasecmp(mailbox, cur->mailbox)))
|
||||||
break;
|
break;
|
||||||
cur=cur->next;
|
cur=cur->next;
|
||||||
@@ -4985,7 +4989,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
|
|||||||
valid++;
|
valid++;
|
||||||
else {
|
else {
|
||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
ast_verbose( VERBOSE_PREFIX_3 "Incorrect password '%s' for user '%s' (context = %s)\n", password, mailbox, context ? context : "<any>");
|
ast_verbose( VERBOSE_PREFIX_3 "Incorrect password '%s' for user '%s' (context = %s)\n", password, mailbox, context ? context : "default");
|
||||||
if (!ast_strlen_zero(prefix))
|
if (!ast_strlen_zero(prefix))
|
||||||
mailbox[0] = '\0';
|
mailbox[0] = '\0';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user