Merge "res_stasis: Add control ref to playback and recording structs." into 13

This commit is contained in:
zuul
2016-03-31 13:39:03 -05:00
committed by Gerrit Code Review
7 changed files with 62 additions and 10 deletions

View File

@@ -1179,6 +1179,11 @@ int stasis_app_control_is_done(struct stasis_app_control *control)
return control_is_done(control);
}
void stasis_app_control_flush_queue(struct stasis_app_control *control)
{
control_flush_queue(control);
}
struct ast_datastore_info set_end_published_info = {
.type = "stasis_end_published",
};
@@ -1371,6 +1376,8 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc,
remove_stasis_end_published(chan);
}
control_flush_queue(control);
/* Stop any lingering silence generator */
control_silence_stop_now(control);