mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
chan_sip: remove unnecessary ast_channel_unlock(peer) as RAII looks after it
Otherwise console output (get_refer_info): mutex 'peer' freed more times than we've locked! (get_refer_info): Error releasing mutex: Operation not permitted or (get_refer_info): attempted unlock mutex 'peer' without owning it! (__ast_read): 'peer' was locked here. ...dump_backtrace (get_refer_info): Error releasing mutex: Operation not permitted (__ast_read): mutex 'chan' freed more times than we've locked! ASTERISK-28011 #close Change-Id: I6e45f2764ba4f3273a943300f91ac9b461ac2893
This commit is contained in:
@@ -18676,7 +18676,6 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
|
||||
S_OR(transferer->context, NULL));
|
||||
pbx_builtin_setvar_helper(peer, "__SIPREFERREDBYHDR",
|
||||
S_OR(p_referred_by, NULL));
|
||||
ast_channel_unlock(peer);
|
||||
}
|
||||
|
||||
owner_relock = sip_pvt_lock_full(transferer);
|
||||
|
Reference in New Issue
Block a user