diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 4c5822590..dd89175f7 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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. **/ diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index f0b6f3d56..4d4a91988 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -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; diff --git a/mediastreamer2 b/mediastreamer2 index 6251dea54..13d3df5a9 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 6251dea54272cf048c580e03a80c67d672367f2a +Subproject commit 13d3df5a9333ce465214ede7afc9a535a43c9076