提交 743dbbf9 authored 作者: Christopher Rienzo's avatar Christopher Rienzo

fix do_config for <conference> and <dial>

上级 eacb6396
......@@ -1480,22 +1480,26 @@ static switch_status_t do_config(void)
profile->perms.dial.enabled = 1;
if ((tag = switch_xml_child(profile_tag, "conference"))) {
char *var = (char *) switch_xml_attr_soft(tag, "name");
char *val = (char *) switch_xml_attr_soft(tag, "value");
for (param = switch_xml_child(tag, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name");
char *val = (char *) switch_xml_attr_soft(param, "value");
if (!strcasecmp(var, "default-profile")) {
profile->conference_params.use_profile = switch_core_strdup(globals.pool, val);
if (!strcasecmp(var, "default-profile")) {
profile->conference_params.use_profile = switch_core_strdup(globals.pool, val);
}
}
}
if ((tag = switch_xml_child(profile_tag, "dial"))) {
char *var = (char *) switch_xml_attr_soft(tag, "name");
char *val = (char *) switch_xml_attr_soft(tag, "value");
for (param = switch_xml_child(tag, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name");
char *val = (char *) switch_xml_attr_soft(param, "value");
if (!strcasecmp(var, "context")) {
profile->dial_params.context = switch_core_strdup(globals.pool, val);
} else if (!strcasecmp(var, "dialplan")) {
profile->dial_params.dp = switch_core_strdup(globals.pool, val);;
if (!strcasecmp(var, "context")) {
profile->dial_params.context = switch_core_strdup(globals.pool, val);
} else if (!strcasecmp(var, "dialplan")) {
profile->dial_params.dp = switch_core_strdup(globals.pool, val);
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论