Commit 653a123b authored by Simon Morlat's avatar Simon Morlat
Browse files

presence and publish bugfixes

parent bb0f07f6
......@@ -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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment