]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't issue hangup on hangup on hangup on hangup (for jcmoore)
authorOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 19:02:04 +0000 (19:02 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 19:02:04 +0000 (19:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66474 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b7305697228f06cdc3f22f2399bc4c5e48355694..d494be206ce17c8ad4a252b17c9d43fdfcf2e854 100644 (file)
@@ -12490,7 +12490,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                        break;
                                default:
                                        /* Send hangup */       
-                                       if (owner && sipmethod != SIP_MESSAGE && sipmethod != SIP_INFO)
+                                       if (owner && sipmethod != SIP_MESSAGE && sipmethod != SIP_INFO && sipmethod != SIP_BYE)
                                                ast_queue_hangup(p->owner);
                                        break;
                                }