diff options
author | Mark Spencer <markster@digium.com> | 2003-09-30 04:57:20 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-09-30 04:57:20 +0000 |
commit | b9643771af6356f70c2b331c3a63991c6da1e95c (patch) | |
tree | 2fb5bcf649e8d95c9ba927aaa28848be29aefafd | |
parent | b64094d528550e7f1dd46db3e3007ab801a8254c (diff) |
Destroy channels on BYE when no owner is present
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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 feb3abf63..38af7956f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5043,6 +5043,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc } } else if (p->owner) ast_queue_hangup(p->owner, 0); + else + p->needdestroy = 1; transmit_response(p, "200 OK", req); } else if (!strcasecmp(cmd, "MESSAGE")) { if (sipdebug) |