mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
MODENDP-169
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11160 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -801,6 +801,7 @@ static switch_status_t load_config(void)
|
||||
}
|
||||
|
||||
globals.indev = globals.outdev = globals.ringdev = -1;
|
||||
globals.sample_rate = 8000;
|
||||
|
||||
if ((settings = switch_xml_child(cfg, "settings"))) {
|
||||
for (param = switch_xml_child(settings, "param"); param; param = param->next) {
|
||||
@@ -821,7 +822,7 @@ static switch_status_t load_config(void)
|
||||
globals.sample_rate = atoi(val);
|
||||
} else if (!strcmp(var, "codec-ms")) {
|
||||
int tmp = atoi(val);
|
||||
if (SWITCH_ACCEPTABLE_INTERVAL(tmp)) {
|
||||
if (switch_check_interval(globals.sample_rate, tmp)) {
|
||||
globals.codec_ms = tmp;
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
|
||||
|
||||
Reference in New Issue
Block a user