summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorSergej Kasumovic <sergej@bicomsystems.com>2017-07-14 08:11:50 +0200
committerSergej Kasumovic <sergej@bicomsystems.com>2017-07-14 01:22:31 -0500
commitd3f5b265c77760351cfa1892b14e386c3d362b9b (patch)
tree6eea12e733857327af7807d25e8fb3eaa5846a90 /channels
parent0f45c979a3de00b320e05ba93309cf412e9e2702 (diff)
chan_iax2: On reload make sure to check for existing MWI subscription
On every reload of chan_iax2 module, MWI subscription was added, which results in additional taskprocessors being accumulated over time. This commit fixes it by making sure we check for existing subscription first. This was verified with 'core show taskprocessors' CLI command. ASTERISK-27122 #close Change-Id: Ie2ef528fd5ca01b933eeb88188cc10967899cfb9
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index f40873e9d..5abb6c37f 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -13055,7 +13055,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st
ast_free_acl_list(oldacl);
}
- if (!ast_strlen_zero(peer->mailbox)) {
+ if (!ast_strlen_zero(peer->mailbox) && !peer->mwi_event_sub) {
struct stasis_topic *mailbox_specific_topic;
mailbox_specific_topic = ast_mwi_topic(peer->mailbox);