mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
If we don't accept a SUBSCRIBE, set needdestroy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7022,8 +7022,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||||||
}
|
}
|
||||||
if (found)
|
if (found)
|
||||||
transmit_response(p, "200 OK", req);
|
transmit_response(p, "200 OK", req);
|
||||||
else
|
else {
|
||||||
transmit_response(p, "403 Forbidden", req);
|
transmit_response(p, "403 Forbidden", req);
|
||||||
|
p->needdestroy = 1;
|
||||||
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
p->subscribed = 1;
|
p->subscribed = 1;
|
||||||
|
Reference in New Issue
Block a user