Merge "res_musiconhold: Start playlist after initial announcement"
[asterisk/asterisk.git] / apps / app_ivrdemo.c
index d035df9..38134e2 100644 (file)
@@ -32,8 +32,6 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
 #include "asterisk/file.h"
 #include "asterisk/channel.h"
 #include "asterisk/pbx.h"
@@ -108,7 +106,7 @@ static int skel_exec(struct ast_channel *chan, const char *data)
 
        /* Do our thing here */
 
-       if (chan->_state != AST_STATE_UP)
+       if (ast_channel_state(chan) != AST_STATE_UP)
                res = ast_answer(chan);
        if (!res)
                res = ast_ivr_menu_run(chan, &ivr_demo, tmp);
@@ -126,4 +124,5 @@ static int load_module(void)
        return ast_register_application_xml(app, skel_exec);
 }
 
-AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "IVR Demo Application");
+AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "IVR Demo Application");
+