]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix usage of "hasvoicemail=yes" and "mailbox=" in users.conf for SIP.
authorJason Parker <jparker@digium.com>
Wed, 2 Mar 2011 19:53:47 +0000 (19:53 +0000)
committerJason Parker <jparker@digium.com>
Wed, 2 Mar 2011 19:53:47 +0000 (19:53 +0000)
Since it's a duplicate, nothing is going to be done, so delme doesn't need to
be set at all.  Strangely, when this was added, this was being set to 1 in 1.6,
and 0 in trunk.

(issue AST-439)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@309255 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index af6d3fbb5d46815214fbff3276f164bfa65af989..19039c68eb4599e6203906504f1bfd8ac29f7fd5 100644 (file)
@@ -24236,7 +24236,6 @@ static void add_peer_mailboxes(struct sip_peer *peer, const char *value)
                AST_LIST_TRAVERSE(&peer->mailboxes, mailbox, entry) {
                        if (!strcmp(mailbox->mailbox, mbox) && !strcmp(S_OR(mailbox->context, ""), S_OR(context, ""))) {
                                duplicate = 1;
-                               mailbox->delme = 1;
                                break;
                        }
                }