 | CtiRawActionsGetCdrList 方法 |
异步获取话单记录,支持分页查询。
命名空间: Ipxchina.Sdk.Cti.Actions程序集: CtiSdk (在 CtiSdk.dll 中) 版本:1.0.0.2 (1.0.0.2)
语法public Task<ResponseGetCdrList> GetCdrList(
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 onlymonitor = false,
string sort = "calldate",
string sens = "DESC",
string offset = null,
string rows = null,
bool history = false
)
Public Function GetCdrList (
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 onlymonitor As Boolean = false,
Optional sort As String = "calldate",
Optional sens As String = "DESC",
Optional offset As String = Nothing,
Optional rows As String = Nothing,
Optional history As Boolean = false
) As Task(Of ResponseGetCdrList)
public:
Task<ResponseGetCdrList^>^ GetCdrList(
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 onlymonitor = false,
String^ sort = L"calldate",
String^ sens = L"DESC",
String^ offset = nullptr,
String^ rows = nullptr,
bool history = false
)
member GetCdrList :
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 *
?onlymonitor : bool *
?sort : string *
?sens : string *
?offset : string *
?rows : 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 _onlymonitor = defaultArg onlymonitor false
let _sort = defaultArg sort "calldate"
let _sens = defaultArg sens "DESC"
let _offset = defaultArg offset null
let _rows = defaultArg rows null
let _history = defaultArg history false
*)
-> Task<ResponseGetCdrList> 参数
- 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-接通),查询效率较低(可选)
- onlymonitor Boolean (Optional)
- 只需要有录音记录(0/1),查询效率较低(可选)
- sort String (Optional)
- 排序字段(默认calldate)(可选)
- sens String (Optional)
- 排序方式(DESC/ASC 默认 DESC)(可选)
- offset String (Optional)
- 偏移量(默认0)(可选)
- rows String (Optional)
- 记录数(可选)
- history Boolean (Optional)
- 查询历史数据库记录(0/1)(可选)
返回值
TaskResponseGetCdrListAPI 响应
参见