Consider VIA on BYE and CANCEL too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-05-11 21:07:53 +00:00
parent 75113c58ef
commit e0458e4c27
1 changed files with 2 additions and 0 deletions

View File

@ -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 */