分机呼外部电话

该API用于让分机向外部电话发起呼叫,从而使二者建立通话。

请求示例

<?xml version="1.0" encoding="utf-8" ?>
<Transfer attribute="Connect">
    <ext id="208"/>
    <outer to="13012345678"/>
</Transfer>

指定中继外呼:

<?xml version="1.0" encoding="utf-8" ?>
<Transfer attribute="Connect">
    <ext id="208"/>
    <trunk id="50017"/>
    <outer to="13012345678"/>
</Transfer>

加前缀外呼:

<?xml version="1.0" encoding="utf-8" ?>
<Transfer attribute="Connect">
    <ext id="208"/>
    <outer to="9,13012345678"/>
</Transfer>

二次拨号:

<?xml version="1.0" encoding="utf-8" ?>
<Transfer attribute="Connect">
    <ext id="208"/>
    <outer to="13012345678,,1"/>
</Transfer>

参数说明

参数名称 类型 说明
<ext id> string 分机号码
<outer to> string 呼出的被叫号码
[trunk id] string 指定中继号码,可以为IP中继或者模拟中继号码

注:

  • 加前缀外呼时,第四行中9为前缀,即指定从模拟外线或IP外线呼出,此时需配置设备的拨号规则为“外线加前缀,内线直拨”。

  • 二次拨号时,“,,1”表示呼叫接通后,主叫自动按键“1”,“,,”后可再加逗号来延迟按键时间,一个逗号延迟1秒(目前版本V114,只有通过IP外线外呼支持,通过模拟外线外呼不支持,待后续修改)。

响应示例

通过IP中继呼出时的响应:

<?xml version="1.0" encoding="utf-8" ?>
<Event attribute="TRANSIENT">
    <outer id="66" from="208" to="13012345678" trunk="50017" callid="8258"/>
    <ext id="208"/>
</Event>

通过模拟中继呼出时的响应:

:通过模拟中继呼出时,响应消息中没有outer id、trunk、callid,但随后OM会再次向应用服务器推送一条“TRANSIENT”事件消息,该消息会将这些参数信息补充完整。

<?xml version="1.0" encoding="utf-8" ?>
<Event attribute="TRANSIENT">
    <outer from="208" to="13012345678"/>
    <ext id="208"/>
</Event>

参数说明

略,可参考查询去电的API响应消息中的参数说明

友情提示:超链接返回的快捷键为Alt + ←)

results matching ""

    No results matching ""