Don't accept new INVITE if we already have one pending.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
03ac858251
commit
40b71d4b39
|
@ -10584,6 +10584,16 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
|
||||||
/* We do NOT destroy p here, so that our response will be accepted */
|
/* We do NOT destroy p here, so that our response will be accepted */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ignore && p->pendinginvite) {
|
||||||
|
/* We already have a pending invite. Sorry. You are on hold. */
|
||||||
|
transmit_response(p, "491 Request Pending", req);
|
||||||
|
if (option_debug > 1)
|
||||||
|
ast_log(LOG_DEBUG, "Got INVITE on call where we already have pending INVITE, deferring that - %s\n", p->callid);
|
||||||
|
/* Do NOT destroy dialog */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ignore) {
|
if (!ignore) {
|
||||||
/* Use this as the basis */
|
/* Use this as the basis */
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|
Loading…
Reference in New Issue