mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-11 13:54:14 +00:00
FS-4638 --resolve add error log for bad codec string
This commit is contained in:
1 parent
5b0115676c
commit
7a69d7d47c
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user