mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
make sure registration with expires=0 is allowed
This commit is contained in:
parent
504a67b0e7
commit
04fa4d457b
2 changed files with 3 additions and 3 deletions
|
|
@ -4393,7 +4393,7 @@ void linphone_core_refresh_registers(LinphoneCore* lc) {
|
|||
elem=linphone_core_get_proxy_config_list(lc);
|
||||
for(;elem!=NULL;elem=elem->next){
|
||||
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
|
||||
if (linphone_proxy_config_register_enabled(cfg) ) {
|
||||
if (linphone_proxy_config_register_enabled(cfg) && linphone_proxy_config_get_expires(cfg)>0) {
|
||||
linphone_proxy_config_refresh_register(cfg);
|
||||
}
|
||||
}
|
||||
|
|
@ -4403,7 +4403,7 @@ void __linphone_core_invalidate_registers(LinphoneCore* lc){
|
|||
const MSList *elem=linphone_core_get_proxy_config_list(lc);
|
||||
for(;elem!=NULL;elem=elem->next){
|
||||
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
|
||||
if (linphone_proxy_config_register_enabled(cfg) ) {
|
||||
if (linphone_proxy_config_register_enabled(cfg)) {
|
||||
linphone_proxy_config_edit(cfg);
|
||||
linphone_proxy_config_done(cfg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ void linphone_proxy_config_enableregister(LinphoneProxyConfig *obj, bool_t val){
|
|||
* Sets the registration expiration time in seconds.
|
||||
**/
|
||||
void linphone_proxy_config_expires(LinphoneProxyConfig *obj, int val){
|
||||
if (val<=0) val=600;
|
||||
if (val<0) val=600;
|
||||
obj->expires=val;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue