1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/src/sipcc/include/ccapi_calllog.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,87 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "cpr_stdio.h" 1.9 +#include "ccapi_call.h" 1.10 +#include "sessionHash.h" 1.11 +#include "CCProvider.h" 1.12 +#include "phone_debug.h" 1.13 + 1.14 + 1.15 +/** 1.16 + * get the placed missed rcvd disposition for the call 1.17 + * @param [in] handle - reference to call log 1.18 + * @return cc_log_disposition_t - log disposition 1.19 + */ 1.20 +cc_log_disposition_t CCAPI_CallLog_getCallDisposition(cc_calllog_ref_t handle); 1.21 + 1.22 +/** 1.23 + * get call start Time as seconds since epoch 1.24 + * @param [in] handle - reference to call log 1.25 + * @return cc_uint32_t - start time as number of seconds since epoch 1.26 + */ 1.27 +cc_uint32_t CCAPI_CallLog_getStartTime(cc_calllog_ref_t handle); 1.28 + 1.29 +/** 1.30 + * get call duration in seconds 1.31 + * @param [in] handle - reference to call log 1.32 + * @return cc_uint32_t - call duration in seconds 1.33 + */ 1.34 +cc_uint32_t CCAPI_CallLog_getCallDuration(cc_calllog_ref_t handle); 1.35 + 1.36 +/** 1.37 + * get first leg remote party name 1.38 + * @param [in] handle - reference to call log 1.39 + * @return cc_string_t - remote party name for first leg 1.40 + */ 1.41 +cc_string_t CCAPI_CallLog_getFirstLegRemotePartyName(cc_calllog_ref_t handle); 1.42 + 1.43 +/** 1.44 + * get last leg remote party name 1.45 + * @param [in] handle - reference to call log 1.46 + * @return cc_string_t - remote party name for last leg 1.47 + */ 1.48 +cc_string_t CCAPI_CallLog_getLastLegRemotePartyName(cc_calllog_ref_t handle); 1.49 + 1.50 +/** 1.51 + * get first leg remote party number 1.52 + * @param [in] handle - reference to call log 1.53 + * @return cc_string_t - remote party number for first leg 1.54 + */ 1.55 +cc_string_t CCAPI_CallLog_getFirstLegRemotePartyNumber(cc_calllog_ref_t handle); 1.56 + 1.57 +/** 1.58 + * get last leg remote party number 1.59 + * @param [in] handle - reference to call log 1.60 + * @return cc_string_t - remote party number for last leg 1.61 + */ 1.62 +cc_string_t CCAPI_CallLog_getLastLegRemotePartyNumber(cc_calllog_ref_t handle); 1.63 + 1.64 +/** 1.65 + * get first leg local party name 1.66 + * @param [in] handle - reference to call log 1.67 + * @return cc_string_t - local party name for first leg 1.68 + */ 1.69 +cc_string_t CCAPI_CallLog_getLocalPartyName(cc_calllog_ref_t handle); 1.70 + 1.71 +/** 1.72 + * get first leg local party number 1.73 + * @param [in] handle - reference to call log 1.74 + * @return cc_string_t - local party number for first leg 1.75 + */ 1.76 +cc_string_t CCAPI_CallLog_getLocalPartyNumber(cc_calllog_ref_t handle); 1.77 + 1.78 +/** 1.79 + * get first leg alt party number 1.80 + * @param [in] handle - reference to call log 1.81 + * @return cc_string_t - alt party number for first leg 1.82 + */ 1.83 +cc_string_t CCAPI_CallLog_getFirstLegAltPartyNumber(cc_calllog_ref_t handle); 1.84 + 1.85 +/** 1.86 + * get last leg alt party number 1.87 + * @param [in] handle - reference to call log 1.88 + * @return cc_string_t - alt party number for last leg 1.89 + */ 1.90 +cc_string_t CCAPI_CallLog_getLastLegAltPartyNumber(cc_calllog_ref_t handle);