// 有电话呼入 softPhoneUA.on('invite', function (session) { currentSession = session; softPhone.sessionEvent(session); layer.confirm('有电话呼入 ... 请注意是否接听)', { btn: ['取消', '接听', '拒绝'], btn1: function () { layer.close(index); }, btn2: function () { PHONE.answer(); }, btn3: function () { softPhone.hangUp(); } }); })