aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-17 16:24:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-17 16:24:29 +0000
commitf9d917c44cb0dd579ce0e847a8fa5ec1a07a0069 (patch)
treeda2fbc0220b827add95dfc89557a96978f5bb62c
parentd794e0dc3e54ec82a1d0ddf36afb6dc8762ec28b (diff)
200 OKs in response to a reinvite need to be sent reliably. If the remote side does not receive one the dialog will be torn down.
(closes issue #12208) Reported by: atrash git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@109107 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 330fc737e..406acc17a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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;