]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
DTMF wasn't being logged on connected consoles when enabled in logger.conf
authorJonathan Rose <jrose@digium.com>
Fri, 24 Jun 2011 16:48:06 +0000 (16:48 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 24 Jun 2011 16:48:06 +0000 (16:48 +0000)
Previously in order for DTMF to be logged in a connected console session, the user would
have to do logger set channel DTMF on.  This corrects that so that it is on by default.
This issue was caused by an off by one error incurred by a logger level count of 6 in
logger.h where it should have been 7.

(closes issue: ASTERISK-17974)
Reported by: Luke H

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

include/asterisk/logger.h

index 322214e739f65dca3a70c91f2f86d8e835b20396..a2a28809f203852c6b020831f112c12ba788f0db 100644 (file)
@@ -181,7 +181,7 @@ void ast_console_toggle_loglevel(int fd, int level, int state);
 #endif
 #define AST_LOG_DTMF    __LOG_DTMF, _A_
 
-#define NUMLOGLEVELS 6
+#define NUMLOGLEVELS 7
 
 /*!
  * \brief Get the debug level for a module