From 7a69d7d47cbb4db5b5ea100e8d9555b701f62b90 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 27 Sep 2012 12:10:13 -0500 Subject: [PATCH] FS-4638 --resolve add error log for bad codec string --- src/switch_loadable_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 15c4739775..d253a75bea 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -2108,6 +2108,8 @@ SWITCH_DECLARE(char *) switch_parse_codec_buf(char *buf, uint32_t *interval, uin *rate = atoi(cur); } else if (strchr(cur, 'b')) { *bit = atoi(cur); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Bad syntax for codec string. Missing qualifier [h|k|i|b] for part [%s]!\n", cur); } } cur = next;