mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 19:20:05 +00:00
FS-4638 --resolve add error log for bad codec string
This commit is contained in:
parent
5b0115676c
commit
7a69d7d47c
@ -2108,6 +2108,8 @@ SWITCH_DECLARE(char *) switch_parse_codec_buf(char *buf, uint32_t *interval, uin
|
|||||||
*rate = atoi(cur);
|
*rate = atoi(cur);
|
||||||
} else if (strchr(cur, 'b')) {
|
} else if (strchr(cur, 'b')) {
|
||||||
*bit = atoi(cur);
|
*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;
|
cur = next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user