summaryrefslogtreecommitdiff
path: root/res/res_stasis.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_stasis.c')
-rw-r--r--res/res_stasis.c13
1 files changed, 4 insertions, 9 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;
}
}