Merged revisions 66474 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 19:17:49 +0000 (19:17 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 19:17:49 +0000 (19:17 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66474 | oej | 2007-05-29 21:02:04 +0200 (Tue, 29 May 2007) | 2 lines

Don't issue hangup on hangup on hangup on hangup (for jcmoore)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66502 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7350779..30e592e 100644 (file)
@@ -13371,7 +13371,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                        break;
                                default:
                                        /* Send hangup */       
                                        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;
                                }
                                                ast_queue_hangup(p->owner);
                                        break;
                                }