From 57f42bd74f78d5022631b2ba2269892f8a3a384a Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Mon, 20 Feb 2012 23:43:27 +0000 Subject: ast_channel opaquification of pointers and integral types Review: https://reviewboard.asterisk.org/r/1753/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356042 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_minivm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/app_minivm.c') diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 9c87a7464..bf408f81f 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -1945,7 +1945,7 @@ static int leave_voicemail(struct ast_channel *chan, char *username, struct leav ast_channel_context(chan), ast_channel_macrocontext(chan), ast_channel_exten(chan), - chan->priority, + ast_channel_priority(chan), ast_channel_name(chan), callerid, date, @@ -2172,7 +2172,7 @@ static int minivm_record_exec(struct ast_channel *chan, const char *data) memset(&leave_options, 0, sizeof(leave_options)); /* Answer channel if it's not already answered */ - if (chan->_state != AST_STATE_UP) + if (ast_channel_state(chan) != AST_STATE_UP) ast_answer(chan); if (ast_strlen_zero(data)) { @@ -2274,7 +2274,7 @@ static int minivm_greet_exec(struct ast_channel *chan, const char *data) } /* Answer channel if it's not already answered */ - if (chan->_state != AST_STATE_UP) + if (ast_channel_state(chan) != AST_STATE_UP) ast_answer(chan); /* Setup pre-file if appropriate */ @@ -2377,7 +2377,7 @@ static int minivm_greet_exec(struct ast_channel *chan, const char *data) } else if (ausemacro && !ast_strlen_zero(ast_channel_macrocontext(chan))) { ast_channel_context_set(chan, ast_channel_macrocontext(chan)); } - chan->priority = 0; + ast_channel_priority_set(chan, 0); pbx_builtin_setvar_helper(chan, "MVM_GREET_STATUS", "USEREXIT"); res = 0; } else if (res == '0') { /* Check for a '0' here */ @@ -2389,7 +2389,7 @@ static int minivm_greet_exec(struct ast_channel *chan, const char *data) ast_channel_context_set(chan, ast_channel_macrocontext(chan)); } ast_play_and_wait(chan, "transfer"); - chan->priority = 0; + ast_channel_priority_set(chan, 0); pbx_builtin_setvar_helper(chan, "MVM_GREET_STATUS", "USEREXIT"); } res = 0; @@ -2518,7 +2518,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, const char *data) } /* Answer channel if it's not already answered */ - if (chan->_state != AST_STATE_UP) + if (ast_channel_state(chan) != AST_STATE_UP) ast_answer(chan); /* Here's where the action is */ -- cgit v1.2.3