UNPKG

fcc-core

Version:

Fusion communication center.

17 lines (15 loc) 448 B
/** * 视频点呼挂断 */ // 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: '1', callId: xw.SEND_ICP_CODE, callType: 0 }) resolve() } else { reject(new xw.BaseException(418, '暂无可挂断的视频')) } }) }