Remove some unnecessary calls to ast_bridged_channel() in chan_skinny.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-05-01 20:01:10 +00:00
parent b050778ce8
commit 30cf1a590c

View File

@@ -5234,9 +5234,7 @@ static int skinny_transfer(struct skinny_subchannel *sub)
ast_channel_name(xferor->owner), ast_bridged_channel(xferor->owner) ? ast_channel_name(ast_bridged_channel(xferor->owner)) : "");
if (ast_bridged_channel(xferor->owner)) {
if (ast_bridged_channel(xferee->owner)) {
ast_queue_control(xferee->owner, AST_CONTROL_UNHOLD);
}
ast_queue_control(xferee->owner, AST_CONTROL_UNHOLD);
if (ast_channel_state(xferor->owner) == AST_STATE_RING) {
/* play ringing inband */
if ((ts = ast_get_indication_tone(ast_channel_zone(xferor->owner), "ring"))) {