Merged revisions 141565 via svnmerge from
authorSteve Murphy <murf@digium.com>
Sat, 6 Sep 2008 20:19:50 +0000 (20:19 +0000)
committerSteve Murphy <murf@digium.com>
Sat, 6 Sep 2008 20:19:50 +0000 (20:19 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r141565 | murf | 2008-09-06 14:13:16 -0600 (Sat, 06 Sep 2008) | 1 line

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/trunk@141566 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4f122e3..cbabe03 100644 (file)
@@ -18359,6 +18359,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
                transmit_response_reliable(p, "487 Request Terminated", &p->initreq);
        }
 
+       __sip_pretend_ack(p);
+
        p->invitestate = INV_TERMINATED;
 
        copy_request(&p->initreq, req);