From: Joshua Colp Date: Mon, 1 Jun 2009 13:31:27 +0000 (+0000) Subject: Fix a bug where the Event and Content-Type headers were added twice to outgoing SIP... X-Git-Tag: 11.0.0-beta1~4755 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e1bd8aad7b5a8a099004231dcc8521da3a01613;p=thirdparty%2Fasterisk.git Fix a bug where the Event and Content-Type headers were added twice to outgoing SIP NOTIFY messages. (closes issue #15239) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198498 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fe362b805d..9de5626305 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10794,8 +10794,6 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim reqprep(&req, p, SIP_NOTIFY, 0, 1); - add_header(&req, "Event", subscriptiontype->event); - add_header(&req, "Content-Type", subscriptiontype->mediatype); switch(state) { case AST_EXTENSION_DEACTIVATED: if (timeout)