aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-14 21:57:35 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-14 21:57:35 +0000
commit3e7fc5a78d669cd00762aed6bb39abc7ff22c5ec (patch)
treef454a789a91387902f84cf69baf1f53a1966fd6f /channels
parent7fd820d18c7d61856150f10c7702effc73f30f8c (diff)
Sets subscribed type for outgoing MWI subscriptions so correct Event header is used.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@286834 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6195d041d..148fefbc2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);