mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Destroy sip channel when message is sent outside the context of a call...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
Block a user