summaryrefslogtreecommitdiff
path: root/apps/app_minivm.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-12-14 14:48:38 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-12-14 14:48:38 +0000
commitd5b454bf8d534e4c37e19148a22315c1c54b4a1e (patch)
treeeb8395c48dfe42302c76abaf23fc722e7e6190bf /apps/app_minivm.c
parentc8759aff259c1593938899b49c6adc28be5306cd (diff)
Convert ast_verbose to ast_verb.
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r--apps/app_minivm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index 20d10699b..77497fb19 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1256,8 +1256,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
switch (cmd) {
case '2':
/* Review */
- if (option_verbose > 2)
- ast_verbose(VERBOSE_PREFIX_3 "Reviewing the message\n");
+ ast_verb(3, "Reviewing the message\n");
ast_streamfile(chan, recordfile, chan->language);
cmd = ast_waitstream(chan, AST_DIGIT_ANY);
break;
@@ -1266,9 +1265,9 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
/* Record */
if (option_verbose > 2) {
if (recorded == 1)
- ast_verbose(VERBOSE_PREFIX_3 "Re-recording the message\n");
+ ast_verb(3, "Re-recording the message\n");
else
- ast_verbose(VERBOSE_PREFIX_3 "Recording the message\n");
+ ast_verb(3, "Recording the message\n");
}
if (recorded && outsidecaller)
cmd = ast_play_and_wait(chan, "beep");
@@ -1571,8 +1570,7 @@ static int leave_voicemail(struct ast_channel *chan, char *username, struct leav
}
if (duration < global_vmminmessage) {
- if (option_verbose > 2)
- ast_verbose( VERBOSE_PREFIX_3 "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, global_vmminmessage);
+ ast_verb(3, "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, global_vmminmessage);
fclose(txt);
ast_filedelete(tmptxtfile, NULL);
unlink(tmptxtfile);