mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
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:
parent
a30256ad94
commit
4c0d89aace
@ -2753,7 +2753,7 @@ static switch_status_t config_sofia(int reload)
|
|||||||
oreg->pool = profile->pool;
|
oreg->pool = profile->pool;
|
||||||
oreg->profile = profile;
|
oreg->profile = profile;
|
||||||
oreg->name = switch_core_strdup(oreg->pool, name);
|
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) {
|
for (param = switch_xml_child(registration, "param"); param; param = param->next) {
|
||||||
char *var = (char *) switch_xml_attr_soft(param, "name");
|
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);
|
oreg->freq = atoi(oreg->expires_str);
|
||||||
|
if (!oreg->freq) {
|
||||||
|
oreg->state = REG_STATE_REGED;
|
||||||
|
}
|
||||||
oreg->next = profile->registrations;
|
oreg->next = profile->registrations;
|
||||||
profile->registrations = oreg;
|
profile->registrations = oreg;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user