From c994bfae3d58b5b3fc357987e835e42d82895694 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Tue, 14 Sep 2010 22:02:00 +0000 Subject: [PATCH] Merged revisions 286834 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r286834 | dvossel | 2010-09-14 16:57:35 -0500 (Tue, 14 Sep 2010) | 2 lines Sets subscribed type for outgoing MWI subscriptions so correct Event header is used. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@286835 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8aa0d04a44..8acfcc5bbc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11547,7 +11547,9 @@ static int __sip_subscribe_mwi_do(struct sip_subscription_mwi *mwi) /* Associate the call with us */ mwi->call->mwi = ASTOBJ_REF(mwi); - + + mwi->call->subscribed = MWI_NOTIFICATION; + /* Actually send the packet */ transmit_invite(mwi->call, SIP_SUBSCRIBE, 0, 2, NULL);