Merged revisions 63532 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Wed, 9 May 2007 13:07:44 +0000 (13:07 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 9 May 2007 13:07:44 +0000 (13:07 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r63532 | oej | 2007-05-09 15:04:14 +0200 (Wed, 09 May 2007) | 2 lines

Don't retransmit 200 OK's on ignore status. (Reported on asterisk-users)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63533 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 60e6ee5..56b9d70 100644 (file)
@@ -14499,8 +14499,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;