Consider VIA on BYE and CANCEL too
authorMark Spencer <markster@digium.com>
Sun, 11 May 2003 21:07:53 +0000 (21:07 +0000)
committerMark Spencer <markster@digium.com>
Sun, 11 May 2003 21:07:53 +0000 (21:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@997 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 12d80f5..b4b391f 100755 (executable)
@@ -4296,6 +4296,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                        p->alreadygone = 1;
                }
        } else if (!strcasecmp(cmd, "CANCEL")) {
+               check_via(p, req);
                p->alreadygone = 1;
                if (p->rtp) {
                        /* Immediately stop RTP */
@@ -4307,6 +4308,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                transmit_response_reliable(p, "487 Request Terminated", &p->initreq);
        } else if (!strcasecmp(cmd, "BYE")) {
                copy_request(&p->initreq, req);
+               check_via(p, req);
                p->alreadygone = 1;
                if (p->rtp) {
                        /* Immediately stop RTP */