git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2879
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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");
}
oreg->freq = atoi(oreg->expires_str);
-
+ if (!oreg->freq) {
+ oreg->state = REG_STATE_REGED;
+ }
oreg->next = profile->registrations;
profile->registrations = oreg;
}