]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 297185 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Thu, 2 Dec 2010 08:55:09 +0000 (08:55 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 2 Dec 2010 08:55:09 +0000 (08:55 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r297185 | oej | 2010-12-02 09:37:17 +0100 (Tor, 02 Dec 2010) | 5 lines

  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.6.2@297186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1e806a9f61d5f75585df455eef45c0b71009ae6d..77f5f9017343f8d53b515e1d896d49534722a665 100644 (file)
@@ -7541,7 +7541,7 @@ restartsearch:
                } 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, req)))  {