properly ignore retransmitted INVITEs on long latency links (issue #3658)
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 26 Sep 2005 03:05:37 +0000 (03:05 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 26 Sep 2005 03:05:37 +0000 (03:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7daa1ee..8a7d00d 100755 (executable)
@@ -10032,7 +10032,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                        transmit_response(p, "100 Trying", req);
                }
        } else {
-               if (p && !ast_test_flag(p, SIP_NEEDDESTROY)) {
+               if (p && !ast_test_flag(p, SIP_NEEDDESTROY) && !ignore) {
                        if (!p->jointcapability) {
                                if (ignore)
                                        transmit_response(p, "488 Not Acceptable Here (codec error)", req);