From: Mark Spencer Date: Wed, 5 Jan 2005 23:18:00 +0000 (+0000) Subject: Fix compliance of SIP presence (bug #3251) X-Git-Tag: 1.2.0-beta1~1478 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a92b798e926011e9318a20e39740fedfc28c35a;p=thirdparty%2Fasterisk.git Fix compliance of SIP presence (bug #3251) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4686 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ac46b9220c..61f25dbe01 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3917,6 +3917,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))