mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Be sure to process SDP if we already have an owner (bug #3701)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8001,6 +8001,16 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
||||
p->pendinginvite = seqno;
|
||||
copy_request(&p->initreq, req);
|
||||
check_via(p, req);
|
||||
if (p->owner) {
|
||||
/* Handle SDP here if we already have an owner */
|
||||
if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
|
||||
if (process_sdp(p, req))
|
||||
return -1;
|
||||
} else {
|
||||
p->jointcapability = p->capability;
|
||||
ast_log(LOG_DEBUG, "Hm.... No sdp for the moment\n");
|
||||
}
|
||||
}
|
||||
} else if (debug)
|
||||
ast_verbose("Ignoring this request\n");
|
||||
if (!p->lastinvite && !ignore && !p->owner) {
|
||||
|
Reference in New Issue
Block a user