one more tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7436 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-01-30 15:59:11 +00:00
parent 89b9e1fbf1
commit 21602675ec
1 changed files with 4 additions and 1 deletions

View File

@ -4488,7 +4488,10 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_m
}
if (!strcasecmp(var, "rate") && !switch_strlen_zero(val)) {
rate_name = val;
uint32_t tmp = atoi(val);
if (tmp == 8000 || tmp == 16000 || tmp == 32000) {
rate_name = val;
}
} else if (!strcasecmp(var, "domain") && !switch_strlen_zero(val)) {
domain = val;
} else if (!strcasecmp(var, "interval") && !switch_strlen_zero(val)) {