freq 0 means dont reg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2879 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-30 01:26:54 +00:00
parent a30256ad94
commit 4c0d89aace
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}