Commit 0795ef13 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Added logs to help debug vCard IMPP URI format issues

parent c3266bd7
......@@ -205,6 +205,8 @@ void __linphone_friend_do_subscribe(LinphoneFriend *fr){
linphone_configure_op(lc,fr->outsub,addr,NULL,TRUE);
fr->outsub->subscribe(lp_config_get_int(lc->config,"sip","subscribe_expires",600));
fr->subscribe_active=TRUE;
} else {
ms_error("Can't send a SUBSCRIBE for friend [%p] without an address!", fr);
}
}
......@@ -805,7 +807,7 @@ void linphone_friend_update_subscribes(LinphoneFriend *fr, bool_t only_when_regi
}
}
if (can_subscribe && fr->subscribe && fr->subscribe_active==FALSE){
ms_message("Sending a new SUBSCRIBE");
ms_message("Sending a new SUBSCRIBE for friend [%p]", fr);
__linphone_friend_do_subscribe(fr);
}else if (can_subscribe && fr->subscribe_active && !fr->subscribe){
linphone_friend_unsubscribe(fr);
......@@ -1199,6 +1201,7 @@ bool_t linphone_friend_create_vcard(LinphoneFriend *fr, const char *name) {
linphone_vcard_set_full_name(vcard, name);
linphone_friend_set_vcard(fr, vcard);
linphone_vcard_unref(vcard);
ms_message("VCard created for friend [%p]", fr);
return TRUE;
}
......
......@@ -265,7 +265,9 @@ void linphone_vcard_add_sip_address(LinphoneVcard *vCard, const char *sip_addres
shared_ptr<belcard::BelCardImpp> impp = belcard::BelCardGeneric::create<belcard::BelCardImpp>();
impp->setValue(sip_address);
vCard->belCard->addImpp(impp);
if (!vCard->belCard->addImpp(impp)) {
ms_error("Couldn't add IMPP value %s to vCard [%p]", sip_address, vCard);
}
}
void linphone_vcard_remove_sip_address(LinphoneVcard *vCard, const char *sip_address) {
......@@ -289,7 +291,9 @@ void linphone_vcard_edit_main_sip_address(LinphoneVcard *vCard, const char *sip_
} else {
shared_ptr<belcard::BelCardImpp> impp = belcard::BelCardGeneric::create<belcard::BelCardImpp>();
impp->setValue(sip_address);
vCard->belCard->addImpp(impp);
if (!vCard->belCard->addImpp(impp)) {
ms_error("Couldn't add IMPP value %s to vCard [%p]", sip_address, vCard);
}
}
}
......
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