If we receive OPTIONS as the start of a conversation, kill it immediately after giving our response
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1020 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
41e194707a
commit
4cb2eec530
|
@ -4188,6 +4188,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||
transmit_response_with_allow(p, "484 Address Incomplete", req);
|
||||
else
|
||||
transmit_response_with_allow(p, "200 OK", req);
|
||||
/* Destroy if this OPTIONS was the opening request, but not if
|
||||
it's in the middle of a normal call flow. */
|
||||
if (!p->lastinvite)
|
||||
p->needdestroy = 1;
|
||||
} else if (!strcasecmp(cmd, "INVITE")) {
|
||||
if (p->outgoing && p->owner && (p->owner->_state != AST_STATE_UP)) {
|
||||
/* This is a call to ourself. Send ourselves an error code and stop
|
||||
|
|
Reference in New Issue