mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
FS-2216 partial with renaming
This commit is contained in:
@@ -1566,14 +1566,14 @@ static void switch_load_core_config(const char *file)
|
||||
|
||||
if (!zstr(var) && !zstr(val)) {
|
||||
uint32_t *p;
|
||||
uint32_t v = (unsigned long) atol(val);
|
||||
uint32_t v = switch_atoul(val);
|
||||
|
||||
if (!strcasecmp(var, "G723") || !strcasecmp(var, "iLBC")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error adding %s, defaults cannot be changed\n", var);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (v < 0) {
|
||||
if (v == 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error adding %s, invalid ptime\n", var);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user