通话结束事件 (BYE)
当一路通话释放时, OM向应用服务器推送该事件报告。
报告示例
- 来电和分机的通话结束,来电挂断:
<?xml version="1.0" encoding="utf-8" ?> <Event attribute="BYE"> <visitor id="42" from="13012345678" to="02161208234" callid="16426" /> <ext id="200" /> </Event>
分机和去电的通话结束,分机挂断:
- 类型一:
<?xml version="1.0" encoding="utf-8" ?> <Event attribute="BYE"> <ext id="200" /> <outer to="13012345678" /> </Event>
- 类型二:
<?xml version="1.0" encoding="utf-8" ?> <Event attribute="BYE"> <outer id="38" from="200" to="13012345678" trunk="02161208234" callid="16422" /> </Event>
- 类型一:
- 来电转去电的通话结束,来电挂断:
<?xml version="1.0" encoding="utf-8" ?> <Event attribute="BYE"> <visitor id="50" from="02167103750" to="02161204000" callid="49202" /> <outer id="51" from="200" to="13012345678" trunk="02161208234" callid="49202" /> </Event>
- 双向外呼的通话结束,两个去电分别各有一个BYE事件:
<?xml version="1.0" encoding="utf-8" ?> <Event attribute="BYE"> <outer id="48" from="" to="13012345678" trunk="28900928" callid="49200" /> </Event>