提交 4c0d89aa authored 作者: Anthony Minessale's avatar Anthony Minessale

freq 0 means dont reg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2879 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a30256ad
......@@ -2753,7 +2753,7 @@ static switch_status_t config_sofia(int reload)
oreg->pool = profile->pool;
oreg->profile = profile;
oreg->name = switch_core_strdup(oreg->pool, name);
oreg->freq = 60;
oreg->freq = 0;
for (param = switch_xml_child(registration, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name");
......@@ -2805,7 +2805,9 @@ static switch_status_t config_sofia(int reload)
}
oreg->freq = atoi(oreg->expires_str);
if (!oreg->freq) {
oreg->state = REG_STATE_REGED;
}
oreg->next = profile->registrations;
profile->registrations = oreg;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论