]> sjero.net Git - linphone/commitdiff
add missing call log apis.
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 8 Feb 2013 16:30:55 +0000 (17:30 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 8 Feb 2013 16:30:55 +0000 (17:30 +0100)
coreapi/linphonecore.c
coreapi/linphonecore.h
mediastreamer2

index 4c58225902c8a8c37d4c5f47d3d8bbcaa437a51b..dd89175f7f621d6a5b2ac2584bb3a6575eb80333 100644 (file)
@@ -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.
 **/
index f0b6f3d56872081ac5aedb077a264e4053772bcf..4d4a919883c3a38710c4548d31fdce060c58250b 100644 (file)
@@ -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;
index 6251dea54272cf048c580e03a80c67d672367f2a..13d3df5a9333ce465214ede7afc9a535a43c9076 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6251dea54272cf048c580e03a80c67d672367f2a
+Subproject commit 13d3df5a9333ce465214ede7afc9a535a43c9076