diff options
author | Joshua Colp <jcolp@digium.com> | 2009-02-06 19:28:53 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-02-06 19:28:53 +0000 |
commit | fa389ab17acf4ae9181b87feb7890000f87be9df (patch) | |
tree | 7d6e9db6c1ba9748133b6a06f646b83af1e2ee07 /channels/chan_dahdi.c | |
parent | 550f7f1e6569327d73fbda6dcbd5972eded4acb8 (diff) |
Don't subscribe to a mailbox on pseudo channels. It is futile. This solves an issue where duplicated pseudo channels would cause a crash because the first one would unsubscribe and the next one would also try to unsubscribe the same subscription.
(closes issue #14322)
Reported by: amessina
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index c783fb85d..db2f842aa 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -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, "@"); |