]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
200 OKs in response to a reinvite need to be sent reliably. If the remote side does...
authorJoshua Colp <jcolp@digium.com>
Mon, 17 Mar 2008 16:24:29 +0000 (16:24 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 17 Mar 2008 16:24:29 +0000 (16:24 +0000)
(closes issue #12208)
Reported by: atrash

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

channels/chan_sip.c

index 330fc737e1002a1f2e7c069cb8da86733bc90295..406acc17a0970c96a805941989ce1f44e0ec8fed 100644 (file)
@@ -14156,7 +14156,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                                /* Respond to normal re-invite */
                                if (sendok)
                                        /* If this is not a re-invite or something to ignore - it's critical */
-                                       transmit_response_with_sdp(p, "200 OK", req, (reinvite || ast_test_flag(req, SIP_PKT_IGNORE)) ?  XMIT_UNRELIABLE : XMIT_CRITICAL);
+                                       transmit_response_with_sdp(p, "200 OK", req, (reinvite ? XMIT_RELIABLE : (ast_test_flag(req, SIP_PKT_IGNORE) ? XMIT_UNRELIABLE : XMIT_CRITICAL)));
                        }
                        p->invitestate = INV_TERMINATED;
                        break;