Commit e3365011 authored by Nicolas Follet's avatar Nicolas Follet

add getter of to address in linphoneCall which contains headers

parent 9af74b26
......@@ -2154,6 +2154,10 @@ const LinphoneAddress * linphone_call_get_remote_address(const LinphoneCall *cal
return call->dir==LinphoneCallIncoming ? call->log->from : call->log->to;
}
const LinphoneAddress * linphone_call_get_to_address(const LinphoneCall *call){
return (const LinphoneAddress *)sal_op_get_to_address(call->op);
}
char *linphone_call_get_remote_address_as_string(const LinphoneCall *call){
return linphone_address_as_string(linphone_call_get_remote_address(call));
}
......
......@@ -91,6 +91,11 @@ LINPHONE_PUBLIC bool_t linphone_call_asked_to_autoanswer(LinphoneCall *call);
**/
LINPHONE_PUBLIC const LinphoneAddress * linphone_call_get_remote_address(const LinphoneCall *call);
/**
* Returns the to address with its headers associated to this call
**/
LINPHONE_PUBLIC const LinphoneAddress * linphone_call_get_to_address(const LinphoneCall * call);
/**
* Returns the remote address associated to this call as a string.
* The result string must be freed by user using ms_free().
......
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