diff options
author | David M. Lee <dlee@digium.com> | 2013-08-21 16:00:10 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-08-21 16:00:10 +0000 |
commit | f5cca5e41e6ce5aec71ac906f1a0a7efff0d8061 (patch) | |
tree | 8f5147ddd0b02307802167a16e820945fb50c3a0 /res/res_stasis.c | |
parent | d213dfa30ffbc834dcc643beb46a8ba0b0f49f01 (diff) |
res_stasis: remove call to missing function control_continue.
In the shuffling around of res_stasis, control_continue was renamed to
stasis_app_control_continue, but the call in res_stasis wasn't updated.
In looking into it, it turns out it wasn't really the right thing to do
in res_stasis anyways.
This patch changes the handling of received a AST_CONTROL_HANGUP frame
to be the same as receiving a NULL frame, and removed the declaration of
control_continue(), since it doesn't exist any more.
(closes issue ASTERISK-22292)
Reported by: Denis Smirnov
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis.c')
-rw-r--r-- | res/res_stasis.c | 13 |
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; } } |