show correct codec in verbose messages (bug #4008)
authorRussell Bryant <russell@russellbryant.com>
Tue, 12 Apr 2005 02:41:29 +0000 (02:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 12 Apr 2005 02:41:29 +0000 (02:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5452 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_lpc10.c
codecs/codec_ulaw.c

index 7ec1571..027c649 100755 (executable)
@@ -569,7 +569,7 @@ parse_config(void)
        if (!strcasecmp(var->name, "genericplc")) {
          useplc = ast_true(var->value) ? 1 : 0;
          if (option_verbose > 2)
-           ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+           ast_verbose(VERBOSE_PREFIX_3 "codec_adpcm: %susing generic PLC\n", useplc ? "" : "not ");
        }
        var = var->next;
       }
index 6705dff..1563db3 100755 (executable)
@@ -359,7 +359,7 @@ parse_config(void)
        if (!strcasecmp(var->name, "genericplc")) {
          useplc = ast_true(var->value) ? 1 : 0;
          if (option_verbose > 2)
-           ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+           ast_verbose(VERBOSE_PREFIX_3 "codec_alaw: %susing generic PLC\n", useplc ? "" : "not ");
        }
        var = var->next;
       }
index 80d978c..f05ba76 100755 (executable)
@@ -1005,7 +1005,7 @@ parse_config(void)
        if (!strcasecmp(var->name, "genericplc")) {
          useplc = ast_true(var->value) ? 1 : 0;
          if (option_verbose > 2)
-           ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+           ast_verbose(VERBOSE_PREFIX_3 "codec_g726: %susing generic PLC\n", useplc ? "" : "not ");
        }
        var = var->next;
       }
index 30dc2d4..bc476a8 100755 (executable)
  * the GNU General Public License
  */
 
-#define TYPE_SILENCE    0x2
-#define TYPE_HIGH       0x0
-#define TYPE_LOW        0x1
-#define TYPE_MASK       0x3
-
 #include <asterisk/lock.h>
 #include <asterisk/translate.h>
 #include <asterisk/config.h>
@@ -282,7 +277,7 @@ static void parse_config(void)
                               if (!strcasecmp(var->name, "genericplc")) {
                                       useplc = ast_true(var->value) ? 1 : 0;
                                       if (option_verbose > 2)
-                                              ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+                                              ast_verbose(VERBOSE_PREFIX_3 "codec_gsm: %susing generic PLC\n", useplc ? "" : "not ");
                               }
                               var = var->next;
                        }
index 904f026..80821d0 100755 (executable)
@@ -357,7 +357,7 @@ static void parse_config(void)
                                if (!strcasecmp(var->name, "genericplc")) {
                                        useplc = ast_true(var->value) ? 1 : 0;
                                        if (option_verbose > 2)
-                                               ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+                                               ast_verbose(VERBOSE_PREFIX_3 "codec_lpc10: %susing generic PLC\n", useplc ? "" : "not ");
                                }
                                var = var->next;
                         }
index 4f2b24c..9dd0e47 100755 (executable)
@@ -358,7 +358,7 @@ parse_config(void)
        if (!strcasecmp(var->name, "genericplc")) {
          useplc = ast_true(var->value) ? 1 : 0;
          if (option_verbose > 2)
-           ast_verbose(VERBOSE_PREFIX_3 "CODEC ULAW: %susing generic PLC\n", useplc ? "" : "not ");
+           ast_verbose(VERBOSE_PREFIX_3 "codec_ulaw: %susing generic PLC\n", useplc ? "" : "not ");
        }
        var = var->next;
       }