diff --git a/coreapi/bellesip_sal/sal_op_presence.c b/coreapi/bellesip_sal/sal_op_presence.c index b325db9d7..19b69fecb 100644 --- a/coreapi/bellesip_sal/sal_op_presence.c +++ b/coreapi/bellesip_sal/sal_op_presence.c @@ -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)); diff --git a/coreapi/bellesip_sal/sal_op_registration.c b/coreapi/bellesip_sal/sal_op_registration.c index bc90809d5..5683568b4 100644 --- a/coreapi/bellesip_sal/sal_op_registration.c +++ b/coreapi/bellesip_sal/sal_op_registration.c @@ -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"); } } diff --git a/coreapi/proxy.c b/coreapi/proxy.c index 208b63903..c3770d87e 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -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){