aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-02 08:37:17 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-02 08:37:17 +0000
commitbdb2dba72e9f5707909e1c02e9f7616a8715a452 (patch)
tree51f890256d1ce29c59af7bd2f6b99e97d8c29da9
parent677325de6d4cecf2a2ac2cacd516bd5a182519e5 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@297185 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3ed71c96f..f42a7cc81 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))) {