summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-08-07 09:22:43 +0000
committerOlle Johansson <oej@edvina.net>2006-08-07 09:22:43 +0000
commitb57c23826069819a48c8f57131b159d00b9ac4f2 (patch)
treeff49970fd06d26d5610c6ecf21e910ddff296f4a /channels
parentf2178d336b5773d137d83ee3a9870ec801a18681 (diff)
Issue #7651 - always send subscription-state (AuPix)
Small change to the fix in the report. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c6b67c921..63b177c06 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6708,8 +6708,7 @@ static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq, char *messa
reqprep(&req, p, SIP_NOTIFY, 0, 1);
snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
add_header(&req, "Event", tmp);
- if (terminate)
- add_header(&req, "Subscription-state", "terminated;reason=noresource");
+ add_header(&req, "Subscription-state", terminate ? "terminated;reason=noresource" : "active");
add_header(&req, "Content-Type", "message/sipfrag;version=2.0");
add_header(&req, "Allow", ALLOWED_METHODS);
add_header(&req, "Supported", SUPPORTED_EXTENSIONS);