拨号

dial 节点

  1. dial

属性

参数 说明
from 主叫号码(在平台租用的号码),可以不填,平台会自动选一个号码
max_call_duration 最大接通时间(秒)
max_dial_duration 最大拨号等待时间(秒)
dial_voice_stop_cond 自定义拨号音停止播放条件。0:振铃停止;1:接听或者挂断停止。

内容

被叫号码

输出参数

参数 说明
type 同一个 IVR Response 中,动作节点的标签名称
error 如果 IVR 执行错误,将输出错误描述;如果没有错误,平台不会提供该参数

嵌套

<play>, <connect>

NTOE

最多只能嵌套一个 <play> 节点,用于播放拨号提示音。 嵌套在 <dial> 中的 <play> 所指定的录音文件将在拨号时循环播放,其重复播放等参数无效。

如果不嵌套 <dial> ,拨号时,原呼叫会听到被叫的原始拨号音。

ATTENTION 目前,必须和 <connect> 配合使用!

示例

  1. <response>
  2. <dial from="4001546646464">
  3. <number>13692208817</number>
  4. <play>ringtone.wav</play>
  5. <connect/>
  6. </dial>
  7. <next>http://yourhost/nextstep</next>
  8. </response>

事件

IVR 事件