+
+ 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;
+ }
+