Fix variables to comply with documentation changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@167837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
31a3307245
commit
6dbe101045
|
@ -2241,7 +2241,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
pbx_builtin_setvar_helper(chan, "MINIVM_ACCMESS_STATUS", "FAILED");
|
pbx_builtin_setvar_helper(chan, "MVM_ACCMESS_STATUS", "FAILED");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2254,7 +2254,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, void *data)
|
||||||
}
|
}
|
||||||
if (ast_strlen_zero(domain) || ast_strlen_zero(username)) {
|
if (ast_strlen_zero(domain) || ast_strlen_zero(username)) {
|
||||||
ast_log(LOG_ERROR, "Need username@domain as argument. Sorry. Argument 0 %s\n", argv[0]);
|
ast_log(LOG_ERROR, "Need username@domain as argument. Sorry. Argument 0 %s\n", argv[0]);
|
||||||
pbx_builtin_setvar_helper(chan, "MINIVM_ACCMESS_STATUS", "FAILED");
|
pbx_builtin_setvar_helper(chan, "MVM_ACCMESS_STATUS", "FAILED");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2292,7 +2292,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, void *data)
|
||||||
if(ast_test_flag(vmu, MVM_ALLOCED))
|
if(ast_test_flag(vmu, MVM_ALLOCED))
|
||||||
free_user(vmu);
|
free_user(vmu);
|
||||||
|
|
||||||
pbx_builtin_setvar_helper(chan, "MINIVM_NOTIFY_STATUS", "SUCCESS");
|
pbx_builtin_setvar_helper(chan, "MVM_NOTIFY_STATUS", "SUCCESS");
|
||||||
|
|
||||||
/* Ok, we're ready to rock and roll. Return to dialplan */
|
/* Ok, we're ready to rock and roll. Return to dialplan */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue