]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change verbose messages to use the ast_verb macro.
authorMark Michelson <mmichelson@digium.com>
Tue, 5 Feb 2008 20:54:53 +0000 (20:54 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 5 Feb 2008 20:54:53 +0000 (20:54 +0000)
(closes issue #11931)
Reported by: snuffy
Patches:
      bug-11931.diff uploaded by snuffy (license 35)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102501 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 0e716b418141f2003b063fe1cedb8b9e61d3f48d..be3e5db3d43df71d7895e175ea03d7dd70c3359d 100644 (file)
@@ -3328,8 +3328,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
                if (txt) {
                        if (duration < vmminsecs) {
                                fclose(txt);
-                               if (option_verbose > 2) 
-                                       ast_verbose(VERBOSE_PREFIX_3 "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, vmminsecs);
+                               ast_verb(3, "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, vmminsecs);
                                ast_filedelete(tmptxtfile, NULL);
                                unlink(tmptxtfile);
                                if (ast_check_realtime("voicemail_data")) {
@@ -8902,16 +8901,14 @@ static int dialout(struct ast_channel *chan, struct ast_vm_user *vmu, char *num,
                }
                
        } else {
-               if (option_verbose > 2)
-                       ast_verbose(VERBOSE_PREFIX_3 "Destination number is CID number '%s'\n", num);
+               ast_verb(3, "Destination number is CID number '%s'\n", num);
                ast_copy_string(destination, num, sizeof(destination));
        }
 
        if (!ast_strlen_zero(destination)) {
                if (destination[strlen(destination) -1 ] == '*')
                        return 0; 
-               if (option_verbose > 2)
-                       ast_verbose(VERBOSE_PREFIX_3 "Placing outgoing call to extension '%s' in context '%s' from context '%s'\n", destination, outgoing_context, chan->context);
+               ast_verb(3, "Placing outgoing call to extension '%s' in context '%s' from context '%s'\n", destination, outgoing_context, chan->context);
                ast_copy_string(chan->exten, destination, sizeof(chan->exten));
                ast_copy_string(chan->context, outgoing_context, sizeof(chan->context));
                chan->priority = 0;