]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Sets subscribed type for outgoing MWI subscriptions so correct Event header is used.
authorDavid Vossel <dvossel@digium.com>
Tue, 14 Sep 2010 21:57:35 +0000 (21:57 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 14 Sep 2010 21:57:35 +0000 (21:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286834 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6195d041d929ef5c8c93f4352f36811c1b9fbc32..148fefbc21bdf7bb829062603faa49dabe6f0577 100644 (file)
@@ -11522,7 +11522,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);