Incorrect log statement when playing transfer sounds (issue #7008 reported and fixed by nathan)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25444 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
6dcc6fb75e
commit
1c7d723a5b
|
@ -704,7 +704,7 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st
|
|||
if (newchan->_softhangup || newchan->_state != AST_STATE_UP || !transferer->_softhangup) {
|
||||
ast_hangup(newchan);
|
||||
if (ast_stream_and_wait(transferer, xfersound, transferer->language, ""))
|
||||
ast_log(LOG_WARNING, "Failed to play courtesy tone!\n");
|
||||
ast_log(LOG_WARNING, "Failed to play transfer sound!\n");
|
||||
finishup(transferee);
|
||||
transferer->_softhangup = 0;
|
||||
return FEATURE_RETURN_SUCCESS;
|
||||
|
@ -757,7 +757,7 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st
|
|||
tobj->bconfig = *config;
|
||||
|
||||
if (ast_stream_and_wait(newchan, xfersound, newchan->language, ""))
|
||||
ast_log(LOG_WARNING, "Failed to play courtesy tone!\n");
|
||||
ast_log(LOG_WARNING, "Failed to play transfer sound!\n");
|
||||
ast_bridge_call_thread_launch(tobj);
|
||||
return -1; /* XXX meaning the channel is bridged ? */
|
||||
}
|
||||
|
|
Reference in New Issue