fcc-core
Version:
Fusion communication center.
17 lines (15 loc) • 451 B
JavaScript
/**
* 语音点呼挂断
*/
// import BaseException from '../../../errors/base-exception'
// 呼叫主体
export default async function (xw, params) {
await new Promise(async (resolve, reject) => {
if (xw.SEND_ICP_CODE) {
xw.exe.emit('PhoneCallEnd', { isVideo: '0', callId: xw.SEND_ICP_CODE, callType: 0 })
resolve()
} else {
reject(new xw.BaseException(418, '暂无可挂断的视语音'))
}
})
}