diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index d87a68909f0a914b171c3a68412d2ed09de1257f..a9e91a0949fe76dfbb38d1b6eca0aa868e424299 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2672,6 +2672,10 @@ LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc){ return linphone_address_new(linphone_core_get_primary_contact(lc)); } +LinphoneAddress *linphone_core_create_primary_contact_parsed (LinphoneCore *lc) { + return linphone_address_new(linphone_core_get_primary_contact(lc)); +} + LinphoneStatus linphone_core_set_audio_codecs(LinphoneCore *lc, bctbx_list_t *codecs){ if (lc->codecs_conf.audio_codecs!=NULL) bctbx_list_free(lc->codecs_conf.audio_codecs); lc->codecs_conf.audio_codecs=codecs; diff --git a/include/linphone/core.h b/include/linphone/core.h index 0fcc2db969c6c1ba7996bc2f1c6bafb39cbe636e..c5a0b9dc67ee676cd950a6acdbf89dfed714cd66 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -1557,12 +1557,21 @@ LINPHONE_PUBLIC void linphone_core_enable_ipv6(LinphoneCore *lc, bool_t val); /** * Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object - * instead of const char* + * instead of const char *. * * @ingroup proxies + * @deprecated Use linphone_core_create_primary_contact_parsed() instead. Deprecated since 2018-10-22. **/ LINPHONE_PUBLIC LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc); +/** + * Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object + * instead of const char *. + * + * @ingroup proxies +**/ +LINPHONE_PUBLIC LinphoneAddress *linphone_core_create_primary_contact_parsed (LinphoneCore *lc); + LINPHONE_PUBLIC const char * linphone_core_get_identity(LinphoneCore *lc); /**