 | CtiRawActionsGetCdrCount 方法 |
异步获取话单总数,通常用于分页查询。
命名空间: Ipxchina.Sdk.Cti.Actions程序集: CtiSdk (在 CtiSdk.dll 中) 版本:1.0.0.2 (1.0.0.2)
语法public Task<ResponseCount> GetCdrCount(
string starttime,
string endtime,
string caller = null,
string callee = null,
string uniqueid = null,
string disposition = null,
string accountcode = null,
string channel = null,
string dstchannel = null,
string dnid = null,
string direct = null,
string firstdialstatus = null,
string lastdialstatus = null,
bool history = false
)
Public Function GetCdrCount (
starttime As String,
endtime As String,
Optional caller As String = Nothing,
Optional callee As String = Nothing,
Optional uniqueid As String = Nothing,
Optional disposition As String = Nothing,
Optional accountcode As String = Nothing,
Optional channel As String = Nothing,
Optional dstchannel As String = Nothing,
Optional dnid As String = Nothing,
Optional direct As String = Nothing,
Optional firstdialstatus As String = Nothing,
Optional lastdialstatus As String = Nothing,
Optional history As Boolean = false
) As Task(Of ResponseCount)
public:
Task<ResponseCount^>^ GetCdrCount(
String^ starttime,
String^ endtime,
String^ caller = nullptr,
String^ callee = nullptr,
String^ uniqueid = nullptr,
String^ disposition = nullptr,
String^ accountcode = nullptr,
String^ channel = nullptr,
String^ dstchannel = nullptr,
String^ dnid = nullptr,
String^ direct = nullptr,
String^ firstdialstatus = nullptr,
String^ lastdialstatus = nullptr,
bool history = false
)
member GetCdrCount :
starttime : string *
endtime : string *
?caller : string *
?callee : string *
?uniqueid : string *
?disposition : string *
?accountcode : string *
?channel : string *
?dstchannel : string *
?dnid : string *
?direct : string *
?firstdialstatus : string *
?lastdialstatus : string *
?history : bool
(* Defaults:
let _caller = defaultArg caller null
let _callee = defaultArg callee null
let _uniqueid = defaultArg uniqueid null
let _disposition = defaultArg disposition null
let _accountcode = defaultArg accountcode null
let _channel = defaultArg channel null
let _dstchannel = defaultArg dstchannel null
let _dnid = defaultArg dnid null
let _direct = defaultArg direct null
let _firstdialstatus = defaultArg firstdialstatus null
let _lastdialstatus = defaultArg lastdialstatus null
let _history = defaultArg history false
*)
-> Task<ResponseCount> 参数
- starttime String
- 开始日期或开始日期时间(可选)
- endtime String
- 结束日期或结束日期时间(可选)
- caller String (Optional)
- 主叫号码(可选)
- callee String (Optional)
- 被叫号码 (可选)
- uniqueid String (Optional)
- 呼叫编号(可选)
- disposition String (Optional)
- 呼叫状态
- accountcode String (Optional)
- 计费号码(可选)
- channel String (Optional)
- 主叫活动通道(可选)
- dstchannel String (Optional)
- 被叫活动通道(可选)
- dnid String (Optional)
- 原被叫号码(可选)
- direct String (Optional)
- 呼叫方向(IN/OUT/INNER)(可选)
- firstdialstatus String (Optional)
- 首次拨号结果(0-全部(默认) 1-未通 2-接通),覆盖 disposition 参数(可选)
- lastdialstatus String (Optional)
- 最后拨号结果(0-全部(默认) 1-未通 2-接通),查询效率较低(可选)
- history Boolean (Optional)
- 查询历史数据库记录(0/1)(可选)
返回值
TaskResponseCountAPI 响应
参见