]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4638 --resolve add error log for bad codec string
authorJeff Lenk <jeff@jefflenk.com>
Thu, 27 Sep 2012 17:10:13 +0000 (12:10 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 27 Sep 2012 17:10:13 +0000 (12:10 -0500)
src/switch_loadable_module.c

index 15c4739775f3b3df33e6ff0cf0c3cb3314b56629..d253a75bea27be9c75a368db23e05bb7dc0330eb 100644 (file)
@@ -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;