From: Russell Bryant Date: Thu, 6 Jan 2005 19:37:55 +0000 (+0000) Subject: fix SIP presence (bug #3251) X-Git-Tag: 1.0.11.1~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96624911f0f9bc7dd41713668e570eef7ee72d04;p=thirdparty%2Fasterisk.git fix SIP presence (bug #3251) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4697 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4f2127f3f1..b130190bd2 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3829,6 +3829,8 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full) } mto = c; + add_header(&req, "Event", "presence"); + add_header(&req, "Subscription-State", "active"); add_header(&req, "Content-Type", "application/xpidf+xml"); if ((state==AST_EXTENSION_UNAVAILABLE) || (state==AST_EXTENSION_BUSY))