summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-04-11 07:11:16 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-04-11 07:11:16 -0500
commitfabfe701bbd4f05d0a959ed735b7a3658dce455e (patch)
tree916025ec2ae80170cad6407fa654d3d11cedb6c1 /channels
parent8af759c088b845f991e9701f4915adef8a3d1f40 (diff)
parent0c03eab9626a3262d6b4f122ceaca29e7d390bbc (diff)
Merge "res_pjsip_refer/chan_sip: Fix INVITE with replaces transfer to ConfBridge"
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c357785ab..46f9ad699 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -25887,10 +25887,7 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req,
ast_raw_answer(c);
- ast_channel_lock(replaces_chan);
- bridge = ast_channel_get_bridge(replaces_chan);
- ast_channel_unlock(replaces_chan);
-
+ bridge = ast_bridge_transfer_acquire_bridge(replaces_chan);
if (bridge) {
/*
* We have two refs of the channel. One is held in c and the other