mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 15:48:09 +00:00
presence and publish bugfixes
This commit is contained in:
parent
bb0f07f6a0
commit
653a123b81
3 changed files with 4 additions and 6 deletions
|
|
@ -540,7 +540,7 @@ static void presence_process_request_event(void *op_base, const belle_sip_reques
|
|||
}else{
|
||||
estatus=SalPresenceOffline;
|
||||
}
|
||||
ms_message("We are notified that [%s] has online status [%s]",sal_op_get_from(op),sal_presence_status_to_string(estatus));
|
||||
ms_message("We are notified that [%s] has online status [%s]",sal_op_get_to(op),sal_presence_status_to_string(estatus));
|
||||
if (!subscription_state_header || strcasecmp(BELLE_SIP_SUBSCRIPTION_STATE_TERMINATED,belle_sip_header_subscription_state_get_state(subscription_state_header)) ==0) {
|
||||
sub_state=SalSubscribeTerminated;
|
||||
ms_message("And outgoing subscription terminated by remote [%s]",sal_op_get_to(op));
|
||||
|
|
|
|||
|
|
@ -73,8 +73,6 @@ static void register_refresher_listener ( const belle_sip_refresher_t* refresher
|
|||
op->base.root->callbacks.auth_failure(op,op->auth_info);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ms_warning("Register refresher know what to do with this status code");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1182,12 +1182,12 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){
|
|||
}
|
||||
if (can_register(cfg)){
|
||||
linphone_proxy_config_register(cfg);
|
||||
if (cfg->publish && cfg->publish_op==NULL){
|
||||
linphone_proxy_config_send_publish(cfg,lc->presence_mode);
|
||||
}
|
||||
cfg->commit=FALSE;
|
||||
}
|
||||
}
|
||||
if (cfg->publish && cfg->publish_op==NULL && cfg->state==LinphoneRegistrationOk){
|
||||
linphone_proxy_config_send_publish(cfg,lc->presence_mode);
|
||||
}
|
||||
}
|
||||
|
||||
void linphone_proxy_config_set_sip_setup(LinphoneProxyConfig *cfg, const char *type){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue