|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #include "CSFLog.h" |
|
6 #include "CC_Common.h" |
|
7 |
|
8 #include "CC_SIPCCCallServerInfo.h" |
|
9 |
|
10 extern "C" |
|
11 { |
|
12 #include "ccapi_device_info.h" |
|
13 } |
|
14 |
|
15 using namespace std; |
|
16 using namespace CSF; |
|
17 |
|
18 CC_SIPCCCallServerInfo::CC_SIPCCCallServerInfo (cc_callserver_ref_t call_serverinfo) : callserverinfo_ref(call_serverinfo) |
|
19 { |
|
20 } |
|
21 |
|
22 CSF_IMPLEMENT_WRAP(CC_SIPCCCallServerInfo, cc_callserver_ref_t); |
|
23 |
|
24 CC_SIPCCCallServerInfo::~CC_SIPCCCallServerInfo() |
|
25 { |
|
26 } |
|
27 |
|
28 string CC_SIPCCCallServerInfo::getCallServerName() |
|
29 { |
|
30 return CCAPI_DeviceInfo_getCallServerName(callserverinfo_ref); |
|
31 } |
|
32 |
|
33 cc_cucm_mode_t CC_SIPCCCallServerInfo::getCallServerMode() |
|
34 { |
|
35 return CCAPI_DeviceInfo_getCallServerMode(callserverinfo_ref); |
|
36 } |
|
37 |
|
38 cc_ccm_status_t CC_SIPCCCallServerInfo::getCallServerStatus() |
|
39 { |
|
40 return CCAPI_DeviceInfo_getCallServerStatus(callserverinfo_ref); |
|
41 } |