Destroy sip channel when message is sent outside the context of a call...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4766 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
9d04e3a6aa
commit
bd8bca1327
|
@ -7918,6 +7918,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||
receive_message(p, req);
|
||||
}
|
||||
transmit_response(p, "200 OK", req);
|
||||
if (!p->lastinvite)
|
||||
ast_set_flag(p, SIP_NEEDDESTROY);
|
||||
} else if (!strcasecmp(cmd, "SUBSCRIBE")) {
|
||||
if (!ignore) {
|
||||
/* Use this as the basis */
|
||||
|
|
Reference in New Issue