diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 17e77a41d..de9bac4cf 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5885,9 +5885,9 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc){ return lc->zrtp_secrets_cache; } -const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) { +LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri) { MSList *calls; - const LinphoneCall *c; + LinphoneCall *c; const LinphoneAddress *address; char *current_uri; diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index dff394515..231ba0c05 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1626,7 +1626,7 @@ const char *linphone_core_get_zrtp_secrets_file(LinphoneCore *lc); * @param uri which should match call remote uri * @return LinphoneCall or NULL is no match is found */ -LINPHONE_PUBLIC const LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri); +LINPHONE_PUBLIC LinphoneCall* linphone_core_find_call_from_uri(const LinphoneCore *lc, const char *uri); LINPHONE_PUBLIC int linphone_core_add_to_conference(LinphoneCore *lc, LinphoneCall *call); LINPHONE_PUBLIC int linphone_core_add_all_to_conference(LinphoneCore *lc);