From a05ebb78af88a9730e77821d5609ad1d40192d4f Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Sat, 6 Sep 2008 20:13:16 +0000 Subject: [PATCH] This fix comes from Joshua Colp The Brilliant, who, given the trace, came up with a solution. This will most likely will close 13235 and 13409. I'll wait till Monday to verify, and then close these bugs. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@141565 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6e9d135a85..0dbef77443 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15165,6 +15165,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req) if (p->pendinginvite && !ast_test_flag(&p->flags[0], SIP_OUTGOING) && !ast_test_flag(req, SIP_PKT_IGNORE) && !p->owner) transmit_response_reliable(p, "487 Request Terminated", &p->initreq); + __sip_pretend_ack(p); + p->invitestate = INV_TERMINATED; copy_request(&p->initreq, req); -- 2.47.3