From: Olle Johansson Date: Thu, 2 Dec 2010 08:37:17 +0000 (+0000) Subject: If we get a NOTIFY from a non-existing subscription we should answer with 481, not... X-Git-Tag: 1.4.39-rc1~3^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b2304108a2a8280c3c8dafd8e8b790946475ab4;p=thirdparty%2Fasterisk.git If we get a NOTIFY from a non-existing subscription we should answer with 481, not bad event. If we answer 481 the subscription that we don't want will be cancelled. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@297185 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3ed71c96f1..f42a7cc81d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5031,7 +5031,7 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si } else if (intended_method == SIP_NOTIFY) { /* We do not support out-of-dialog NOTIFY either, like voicemail notification, so cancel that early */ - transmit_response_using_temp(callid, sin, 1, intended_method, req, "489 Bad event"); + transmit_response_using_temp(callid, sin, 1, intended_method, req, "481 No subscription"); } else { /* Ok, time to create a new SIP dialog object, a pvt */ if ((p = sip_alloc(callid, sin, 1, intended_method))) {