Forward(呼叫前转事件)
分机开启呼叫转移后,当该分机的来电被转移时,PBX 向应用服务器发送 Forward 报告。
报告参数
参数 | 类型 | 描述 |
---|---|---|
event | String | 事件类型。 |
callid | String | 每个通话的唯一 ID。 |
members | Array <MemberType> | 通话中的不同类型成员的信息列表。 |
sn | String | PBX 的 SN 码。 |
- MemberTye
-
参数 类型 描述 inbound Object <InboundInfo> 外线来电的信息。 - InboundInfo
-
参数 类型 描述 from Integer 主叫号码。 to Integer 被叫号码。 trunkname String 通过哪条中继呼入。 channelid String 通话中,每个成员的通话通道 ID。
报告示例
外部用户 12345678 呼叫分机 1020,分机 1020 将电话转移到另外一个号码。
POST / HTTP/1.1 Host: 192.168.5.150: 8260 Accept: application/json User-Agent: WebAPI Content-Type: application/json Accept: application/json { "event": "Forward", "callid": "1571901993.46", "members": [ { "inbound": { "from": "12345678", "to": "1020", "trunkname": "siptrunk", "channelid": "PJSIP/trunk-siptrunk-endpoint-0000001c" } } ], "sn": "369451090405" }