mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
add missing call log apis.
This commit is contained in:
parent
b11e3b0a23
commit
76dca7ce19
3 changed files with 14 additions and 1 deletions
|
|
@ -270,6 +270,10 @@ const rtp_stats_t *linphone_call_log_get_remote_stats(const LinphoneCallLog *cl)
|
|||
return &cl->remote_stats;
|
||||
}
|
||||
|
||||
const char *linphone_call_log_get_call_id(const LinphoneCallLog *cl){
|
||||
return cl->call_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign a user pointer to the call log.
|
||||
**/
|
||||
|
|
@ -326,6 +330,13 @@ LinphoneAddress *linphone_call_log_get_to(LinphoneCallLog *cl){
|
|||
return cl->to;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns remote address (that is from or to depending on call direction).
|
||||
**/
|
||||
LinphoneAddress *linphone_call_log_get_remote_address(LinphoneCallLog *cl){
|
||||
return (cl->dir == LinphoneCallIncoming) ? cl->from : cl->to;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the direction of the call.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ typedef enum LinphoneMediaEncryption LinphoneMediaEncryption;
|
|||
/*public: */
|
||||
LinphoneAddress *linphone_call_log_get_from(LinphoneCallLog *cl);
|
||||
LinphoneAddress *linphone_call_log_get_to(LinphoneCallLog *cl);
|
||||
LinphoneAddress *linphone_call_log_get_remote_address(LinphoneCallLog *cl);
|
||||
LinphoneCallDir linphone_call_log_get_dir(LinphoneCallLog *cl);
|
||||
LinphoneCallStatus linphone_call_log_get_status(LinphoneCallLog *cl);
|
||||
time_t linphone_call_log_get_start_date(LinphoneCallLog *cl);
|
||||
|
|
@ -171,6 +172,7 @@ void linphone_call_log_set_ref_key(LinphoneCallLog *cl, const char *refkey);
|
|||
const char *linphone_call_log_get_ref_key(const LinphoneCallLog *cl);
|
||||
const rtp_stats_t *linphone_call_log_get_local_stats(const LinphoneCallLog *cl);
|
||||
const rtp_stats_t *linphone_call_log_get_remote_stats(const LinphoneCallLog *cl);
|
||||
const char *linphone_call_log_get_call_id(const LinphoneCallLog *cl);
|
||||
char * linphone_call_log_to_str(LinphoneCallLog *cl);
|
||||
|
||||
struct _LinphoneCallParams;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 6251dea54272cf048c580e03a80c67d672367f2a
|
||||
Subproject commit 13d3df5a9333ce465214ede7afc9a535a43c9076
|
||||
Loading…
Add table
Reference in a new issue