Don't subscribe to a mailbox on pseudo channels. It is futile. This solves an issue...
authorJoshua Colp <jcolp@digium.com>
Fri, 6 Feb 2009 19:28:53 +0000 (19:28 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 6 Feb 2009 19:28:53 +0000 (19:28 +0000)
(closes issue #14322)
Reported by: amessina

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

channels/chan_dahdi.c

index c783fb8..db2f842 100644 (file)
@@ -9383,7 +9383,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
                tmp->cid_ton = 0;
                ast_copy_string(tmp->cid_name, conf->chan.cid_name, sizeof(tmp->cid_name));
                ast_copy_string(tmp->mailbox, conf->chan.mailbox, sizeof(tmp->mailbox));
-               if (!ast_strlen_zero(tmp->mailbox)) {
+               if (channel != CHAN_PSEUDO && !ast_strlen_zero(tmp->mailbox)) {
                        char *mailbox, *context;
                        mailbox = context = ast_strdupa(tmp->mailbox);
                        strsep(&context, "@");