]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_stasis: remove call to missing function control_continue.
authorDavid M. Lee <dlee@digium.com>
Wed, 21 Aug 2013 16:00:10 +0000 (16:00 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 21 Aug 2013 16:00:10 +0000 (16:00 +0000)
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

res/res_stasis.c
res/stasis/control.h

index 4b4563af3e8e4a4759dce0d882b025350428e09b..39f6be1347fd3ff822ee1fddca8809a7ab6a4b34 100644 (file)
@@ -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;
                }
        }
 
index 9e580b860ca5cff88d26786cf17918120a957024..042fc67bb9a267309f2938c93b26eb29e8754f33 100644 (file)
@@ -55,14 +55,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.
  *