mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
confbridge: Minor fixes playing user counts to the conference.
* Generate a warning message if sound files do not exist when trying to play the user count to the conference. Use the new helper routine sound_file_exists() for consistency. * Put the new user into autoservice when playing user counts to the conference. * Check the return value of ast_bridge_impart(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@379808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -126,9 +126,8 @@ static int bridge_call(struct ast_channel *ast, const char *dest, int timeout)
|
||||
}
|
||||
|
||||
/* Impart the output channel upon the given bridge of the input channel */
|
||||
ast_bridge_impart(ast_channel_internal_bridge(p->input), p->output, NULL, NULL, 0);
|
||||
|
||||
return 0;
|
||||
return ast_bridge_impart(ast_channel_internal_bridge(p->input), p->output, NULL, NULL, 0)
|
||||
? -1 : 0;
|
||||
}
|
||||
|
||||
/*! \brief Called when a channel should be hung up */
|
||||
|
||||
Reference in New Issue
Block a user