diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/res_stasis.c | 13 | ||||
-rw-r--r-- | res/stasis/control.h | 8 |
2 files changed, 4 insertions, 17 deletions
diff --git a/res/res_stasis.c b/res/res_stasis.c index 4b4563af3..39f6be134 100644 --- a/res/res_stasis.c +++ b/res/res_stasis.c @@ -631,24 +631,19 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc, f = ast_read(chan); if (!f) { - ast_debug(3, - "%s: No more frames. Must be done, I guess.\n", + /* Continue on in the dialplan */ + ast_debug(3, "%s: Hangup (no more frames)\n", ast_channel_uniqueid(chan)); break; } - switch (f->frametype) { - case AST_FRAME_CONTROL: + if (f->frametype == AST_FRAME_CONTROL) { if (f->subclass.integer == AST_CONTROL_HANGUP) { /* Continue on in the dialplan */ ast_debug(3, "%s: Hangup\n", ast_channel_uniqueid(chan)); - control_continue(control); + break; } - break; - default: - /* Not handled; discard */ - break; } } diff --git a/res/stasis/control.h b/res/stasis/control.h index 9e580b860..042fc67bb 100644 --- a/res/stasis/control.h +++ b/res/stasis/control.h @@ -56,14 +56,6 @@ int control_dispatch_all(struct stasis_app_control *control, void control_wait(struct stasis_app_control *control); /*! - * \brief Signals that a control object should finish and exit back to the - * dialplan. - * - * \param control Control object to continue. - */ -void control_continue(struct stasis_app_control *control); - -/*! * \brief Returns true if control_continue() has been called on this \a control. * * \param control Control to query. |