summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-10-11 22:19:22 +0000
committerMark Michelson <mmichelson@digium.com>2009-10-11 22:19:22 +0000
commit9e1598b7621d43846e651f9b5201cb4828ed37fb (patch)
treedbb0b03b0143f1400f57b5579124e0887753d0bb
parent32df0363870b0d87fa0a02e9eaefca8f649d016c (diff)
Check the proper page for the SENDRPID flag.
If a pending reinvite were sent, we might not properly send connected party info since we were checking the wrong flag. This was a rare occurrence, but could still happen nevertheless. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@223617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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 ce1fc23bf..4281808ad 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10670,7 +10670,7 @@ static int transmit_reinvite_with_sdp(struct sip_pvt *p, int t38version, int old
add_header(&req, "X-asterisk-Info", "SIP re-invite (External RTP bridge)");
}
- if (ast_test_flag(&p->flags[1], SIP_SENDRPID))
+ if (ast_test_flag(&p->flags[0], SIP_SENDRPID))
add_rpid(&req, p);
if (p->do_history)