From: Damien Wedhorn Date: Fri, 22 Mar 2013 06:32:03 +0000 (+0000) Subject: Fix skinny voicemail indication issues. X-Git-Tag: 13.0.0-beta1~1993 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401f7c188038a327ed40a7bff30a28f03b69f8a1;p=thirdparty%2Fasterisk.git Fix skinny voicemail indication issues. Unsubscribe from MWI stasis event on channel reload. (closes issue ASTERISK-21216) Reported by: wedhorn Tested by: snuffy, myself Patches: skinny-mwiind02.diff uploaded by snuffy (license 5024) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383560 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 6045a09f07..f8f5328299 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -8571,6 +8571,9 @@ int skinny_reload(void) We do not want to free the line here, that will happen below. */ while ((l = AST_LIST_REMOVE_HEAD(&d->lines, list))) { + if (l->mwi_event_sub) { + l->mwi_event_sub = stasis_unsubscribe(l->mwi_event_sub); + } } /* Delete all speeddials for this device */ while ((sd = AST_LIST_REMOVE_HEAD(&d->speeddials, list))) {