 | CtiRawActionsDialToContext 方法 |
拨打电话,接通后送到指定目标。
命名空间: Ipxchina.Sdk.Cti.Actions程序集: CtiSdk (在 CtiSdk.dll 中) 版本:1.0.0.2 (1.0.0.2)
语法public Task<ResponseOriginate> DialToContext(
string channel,
string context,
string exten,
string priority,
string callerid = null,
int timeout = 60000,
NameValueCollection variables = null,
string account = null,
bool async = false,
bool earlymedia = false,
string actionid = null,
string channelid = null,
string otherchannelid = null,
string codecs = null
)
Public Function DialToContext (
channel As String,
context As String,
exten As String,
priority As String,
Optional callerid As String = Nothing,
Optional timeout As Integer = 60000,
Optional variables As NameValueCollection = Nothing,
Optional account As String = Nothing,
Optional async As Boolean = false,
Optional earlymedia As Boolean = false,
Optional actionid As String = Nothing,
Optional channelid As String = Nothing,
Optional otherchannelid As String = Nothing,
Optional codecs As String = Nothing
) As Task(Of ResponseOriginate)
public:
Task<ResponseOriginate^>^ DialToContext(
String^ channel,
String^ context,
String^ exten,
String^ priority,
String^ callerid = nullptr,
int timeout = 60000,
NameValueCollection^ variables = nullptr,
String^ account = nullptr,
bool async = false,
bool earlymedia = false,
String^ actionid = nullptr,
String^ channelid = nullptr,
String^ otherchannelid = nullptr,
String^ codecs = nullptr
)
member DialToContext :
channel : string *
context : string *
exten : string *
priority : string *
?callerid : string *
?timeout : int *
?variables : NameValueCollection *
?account : string *
?async : bool *
?earlymedia : bool *
?actionid : string *
?channelid : string *
?otherchannelid : string *
?codecs : string
(* Defaults:
let _callerid = defaultArg callerid null
let _timeout = defaultArg timeout 60000
let _variables = defaultArg variables null
let _account = defaultArg account null
let _async = defaultArg async false
let _earlymedia = defaultArg earlymedia false
let _actionid = defaultArg actionid null
let _channelid = defaultArg channelid null
let _otherchannelid = defaultArg otherchannelid null
let _codecs = defaultArg codecs null
*)
-> Task<ResponseOriginate> 参数
- channel String
- 拨号标识
- context String
- 入口(通常是from-internal或应用入口)
- exten String
- 号码(通常是目标号码或s)
- priority String
- 序号(通常是1)
- callerid String (Optional)
- 显示的主叫号码(可缺省)
- timeout Int32 (Optional)
- 等待被叫channel接听的时间(单位毫秒)(可缺省)
- variables NameValueCollection (Optional)
- 通道变量(可缺省)
- account String (Optional)
- 计费账号(可缺省)
- async Boolean (Optional)
- 异步呼叫(可缺省),异步呼叫时可使用GetDialProgress或GetDialResponse查询拨号进度和结果
- earlymedia Boolean (Optional)
- 是否在早期媒体(前向语音)阶段桥接(可缺省)
- actionid String (Optional)
- 事务ID,在事件中返回(可缺省)
- channelid String (Optional)
- 指定通道的呼叫编号(可缺省)
- otherchannelid String (Optional)
- 指定另一个通道的呼叫编号(可缺省)
- codecs String (Optional)
- 以英文逗号分隔的语音编码(可缺省)
返回值
TaskResponseOriginateAPI 响应
参见