
# 拨打呼叫
#### 应用场景
只有使用软电话模拟用户进行呼叫测试时才需要从软电话发起呼叫，正常外呼业务需要从座席接续条发起呼叫操作。
#### 前提条件
- 话机账号登陆注册成功。
 
#### 流程说明
调用OpenEyeCall的[startCall](https://support.huaweicloud.com/devg-openeye-cec/cec_05_1543.html)接口进行接听呼叫。
```
/**
 * 呼出
 */
function startCall() {
//需要区分匿名呼叫还是非匿名
var ischecked = document.getElementById("toggle-button-anonymous").checked;
if(ischecked){
this.global_openEye_SDK.openEyeCall.startAnonymousCall(document.getElementById("calloutNumber").value, false, {
response: startCallResponse
});
}else{
this.global_openEye_SDK.openEyeCall.startCall(document.getElementById("calloutNumber").value, false, {
response: startCallResponse
});
}
}
/**
 * 呼出的响应
 */
function startCallResponse(data) {
    if (data.result == 0) {
        console.info("StartCall success. callid="+JSON.stringify(data));
        tupCurrentCallId = data.param.callId;
    } else {
        console.error("StartCall failed. The ErrorCode is " + data.result);
        console.info(data);
        alert("StartCall failed.  The ErrorCode is " + data.result);
    }
}
```
