If somehow we don't have an answer, set need to destroy on CANCEL
authorMark Spencer <markster@digium.com>
Mon, 10 Nov 2003 17:18:09 +0000 (17:18 +0000)
committerMark Spencer <markster@digium.com>
Mon, 10 Nov 2003 17:18:09 +0000 (17:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1717 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cf1faa4..52e120c 100755 (executable)
@@ -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")) {