查询去电
该API用于查询指定去电的相关信息,如:去电的编号、主叫方、被叫方、通过的中继号码、通话状态以及通话的相对唯一标识符。
请求示例
<?xml version="1.0" encoding="utf-8" ?>
<Control attribute="Query">
<outer id="5"/>
</Control>
参数说明
参数名称 | 类型 | 参数说明 | 参数值说明 |
---|---|---|---|
<outer id> | int | 去电的编号 | 数字,值为空时列举所有去电 |
响应示例
<?xml version="1.0" encoding="utf-8" ?>
<Status>
<outer id="5" from="200" to="13012345678" trunk="02161208234" callid="32773">
<outer id="5" from="200" to="13012345678" trunk="02161208234" callid="32773"/>
</outer>
</Status>
解释: 去电5是由分机200对外部电话13012345678发起的呼叫,该路通话所经过的中继线为02161208234。
参数说明
说明:<>表示必选项,[]表示可选项(当参数值为默认值或空时,响应消息可能不携带该参数)
参数名称 | 类型 | 说明 |
---|---|---|
[outer] | object | 去电,从OM设备的中继呼出的通话 |
<id> | int | 去电的编号,可依据该参数进行转接、挂断、查询等操作 |
<from> | string | 原始主叫号码 |
<to> | string | 原始被叫号码(对于visitor而言,原始被叫为来电呼入的中继号码) |
<trunk> | string | 中继号,这里为该去电呼出时通过的中继 |
<callid> | int | 通话的相对唯一标识符 |
[state] | string | 通话状态, Talk: 通话进行中 Progress: 呼叫处理过程中 Wait: 呼叫等待中 |