HWH5.makePhoneCall
根据dialNumber, makeWay打开语音通话界面(需要对应的租户开通外呼权限)
扫码体验:

请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| dialNumber | String | 是 | 必传,手机或座机号码,不支持拨打国际电话,国内座机格式:区号-座机号码、区号座机号码 |
| makeWay | Number | 是 | 必传,1回拨 |
返回结果
| 参数 | 说明 |
|---|---|
| code | 1 拨号失败; 0 成功,调起正在拨打电话页面。 |
| message | 失败说明。 |
请求示例
HWH5.makePhoneCall({
dialNumber: '18066668888',
makeWay: 0
}).then(reply => {
console.log(reply);
}).catch(error => {
console.log('请求异常', error);
});
HWH5.makePhoneCall({
dialNumber: '18066668888',
makeWay: 0
}).then(function (reply) {
console.log(reply);
}).catch(function (error) {
console.log('请求异常', error);
});