ARI: Fix a crash caused by hanging during playback to a channel in a bridge

ASTERISK-24147 #close
Reported by: Edvin Vidmar
Review: https://reviewboard.asterisk.org/r/3908/
........

Merged revisions 421879 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 421880 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2014-08-22 16:52:51 +00:00
parent 1498ae0830
commit 33835e17a0
9 changed files with 113 additions and 68 deletions

View File

@@ -32,7 +32,8 @@
struct stasis_app_command;
struct stasis_app_command *command_create(
stasis_app_command_cb callback, void *data);
stasis_app_command_cb callback, void *data,
command_data_destructor_fn data_destructor);
void command_complete(struct stasis_app_command *command, int retval);
@@ -49,12 +50,16 @@ int command_join(struct stasis_app_command *command);
* \param chan The channel on which to queue the prestart command
* \param command_fn The callback to call for the command
* \param data The data to pass to the command callback
* \param data_destructor Optional function which will be called on
* the data in either the event of command completion or failure
* to schedule or complete the command
*
* \retval zero on success
* \retval non-zero on failure
*/
int command_prestart_queue_command(struct ast_channel *chan,
stasis_app_command_cb command_fn, void *data);
stasis_app_command_cb command_fn, void *data,
command_data_destructor_fn data_destructor);
/*!
* \brief Get the Stasis() prestart commands for a channel