dect
/
asterisk
Archived
13
0
Fork 0

Consider VIA on BYE and CANCEL too

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@997 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-05-11 21:07:53 +00:00
parent 7c818da9aa
commit 037498c85e
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 */