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:
parent
7c818da9aa
commit
037498c85e
|
@ -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 */
|
||||
|
|
Reference in New Issue