diff options
author | Mark Spencer <markster@digium.com> | 2005-01-12 15:23:06 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-12 15:23:06 +0000 |
commit | b72da3343cd16e8c383aae5168dc647b997ab446 (patch) | |
tree | a22c2997fa3b88d3cdc9be21abbf8fa7dbfcb01b /channels | |
parent | ea8e10e8bcfaf8840ebd97ac6ef0ed0b63474065 (diff) |
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
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3576e966c..a5fdc4980 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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 */ |