Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetCallLog

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    BOOL NET_SDK_GetCallLog(
        LONG lUserID,
        const CALL_RECORD_QUERY_PARAM& queryParam,
        CALL_RECORD* pRecord,
        const unsigned int maxNum,
        unsigned int& num,
        unsigned int& totalNum);

    1
    2
    3
    4
    5
    6
    7
    public static extern Boolean NET_SDK_GetCallLog(
        Int32 lUserID,
        in CALL_RECORD_QUERY_PARAM queryParam,
        IntPtr pRecord,
        in UInt32 maxNum,
        ref UInt32 num,
        ref UInt32 totalNum);

### Function Description

Obtain call history for the access control indoor unit.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
queryParamin | const `CALL_RECORD_QUERY_PARAM`& | Query parameters.
pRecordout | `CALL_RECORD`* | Call record array.
maxNumin | const unsigned int | PRecord array capacity.
numout | unsigned int& | The number of call records actually was found.
totalNumout | unsigned int& | Total number of call records.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code