 | CtiRawActionsPickUp 方法 |
代接来电。
命名空间: Ipxchina.Sdk.Cti.Actions程序集: CtiSdk (在 CtiSdk.dll 中) 版本:1.0.0.2 (1.0.0.2)
语法public Task<ResponseOriginate> PickUp(
string channel,
string pickupexten,
int timeout = 0,
string callerid = null,
NameValueCollection variables = null,
bool async = false
)
Public Function PickUp (
channel As String,
pickupexten As String,
Optional timeout As Integer = 0,
Optional callerid As String = Nothing,
Optional variables As NameValueCollection = Nothing,
Optional async As Boolean = false
) As Task(Of ResponseOriginate)
public:
Task<ResponseOriginate^>^ PickUp(
String^ channel,
String^ pickupexten,
int timeout = 0,
String^ callerid = nullptr,
NameValueCollection^ variables = nullptr,
bool async = false
)
member PickUp :
channel : string *
pickupexten : string *
?timeout : int *
?callerid : string *
?variables : NameValueCollection *
?async : bool
(* Defaults:
let _timeout = defaultArg timeout 0
let _callerid = defaultArg callerid null
let _variables = defaultArg variables null
let _async = defaultArg async false
*)
-> Task<ResponseOriginate> 参数
- channel String
- 拨号标识
- pickupexten String
- 正在振铃的分机号码或拨号接口,传入分机号码时无法代接来自队列的电话
- timeout Int32 (Optional)
- 等待被叫channel接听的时间(单位毫秒)(可缺省)
- callerid String (Optional)
- 显示的主叫号码(可缺省)
- variables NameValueCollection (Optional)
- 通道变量(可缺省)
- async Boolean (Optional)
- 异步呼叫(可缺省)
返回值
TaskResponseOriginateAPI 响应
参见