mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Missing SIP pvt and channel unlock in sip_set_rtp_peer().
Regression introduced by -r326144. Add missing SIP pvt and channel unlock in sip_set_rtp_peer(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -28379,7 +28379,9 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *i
|
|||||||
if ((instance || vinstance || tinstance) &&
|
if ((instance || vinstance || tinstance) &&
|
||||||
!ast_bridged_channel(chan) &&
|
!ast_bridged_channel(chan) &&
|
||||||
!sip_cfg.directrtpsetup) {
|
!sip_cfg.directrtpsetup) {
|
||||||
return 0;
|
sip_pvt_unlock(p);
|
||||||
|
ast_channel_unlock(chan);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->alreadygone) {
|
if (p->alreadygone) {
|
||||||
|
|||||||
Reference in New Issue
Block a user