]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't retransmit 200 OK's on ignore status. (Reported on asterisk-users)
authorOlle Johansson <oej@edvina.net>
Wed, 9 May 2007 13:04:14 +0000 (13:04 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 9 May 2007 13:04:14 +0000 (13:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7b68cc27f108cd5a84e12f5f1bb26e4e3b2f417a..74f89c67e23c85ec4db533801267b7020d1ad301 100644 (file)
@@ -13641,8 +13641,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                                } 
                                /* Respond to normal re-invite */
                                if (sendok)
-                                       transmit_response_with_sdp(p, "200 OK", req, XMIT_CRITICAL);
-
+                                       transmit_response_with_sdp(p, "200 OK", req, ast_test_flag(req, SIP_PKT_IGNORE) ?  XMIT_UNRELIABLE : XMIT_CRITICAL);
                        }
                        p->invitestate = INV_TERMINATED;
                        break;