Sat Mar 1 07:00:01 CET 2003
authorMatteo Brancaleoni <mbrancaleoni@espia.it>
Sat, 1 Mar 2003 06:00:15 +0000 (06:00 +0000)
committerMatteo Brancaleoni <mbrancaleoni@espia.it>
Sat, 1 Mar 2003 06:00:15 +0000 (06:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@627 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d4f5a25..adf23a4 100755 (executable)
@@ -3300,7 +3300,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                                                ast_async_goto(transfer_to,"", p->refer_to,1, 1);
                                }
                        }
-                       transmit_request(p, "BYE", p->outgoing);
+                       /* Always increment on a BYE */
+                       transmit_request(p, "BYE", 1);
                        p->alreadygone = 1;
                }
        } else if (!strcasecmp(cmd, "CANCEL") || !strcasecmp(cmd, "BYE")) {