aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-10 17:18:09 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-10 17:18:09 +0000
commit860991be248e59c4ab2173bb05f05a390a28ad9f (patch)
treeecf9563fce7c2e46cf336bdae3b03f5bfdbb0e29 /channels
parentebe2223e496f204b991b336f44c1b2a5c735c7b2 (diff)
If somehow we don't have an answer, set need to destroy on CANCEL
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1717 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cf1faa46f..52e120ce3 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5111,6 +5111,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
}
if (p->owner)
ast_queue_hangup(p->owner, 0);
+ else
+ p->needdestroy = 1;
transmit_response(p, "200 OK", req);
transmit_response_reliable(p, "487 Request Terminated", &p->initreq);
} else if (!strcasecmp(cmd, "BYE")) {