FS-2216 partial with renaming

This commit is contained in:
Jeff Lenk
2012-01-08 14:19:16 -06:00
parent bcf7d477e2
commit 24288832b1
16 changed files with 52 additions and 67 deletions

View File

@@ -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;
}