Skip to content
Snippets Groups Projects
Commit e0458e4c authored by Mark Spencer's avatar Mark Spencer
Browse files

Consider VIA on BYE and CANCEL too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 75113c58
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment