Skype音频通话有时被叫方是接收方

时间:2019-04-04 09:17:59

标签: javascript web skype skype-for-business

我正在使用Skype Web SDK实施音频功能。 当检测到来电时,我将检索来电显示。 不幸的是,呼叫者ID有时是收件人ID,有时是呼叫者ID。

function startAudioCallListener() {
    var conversationsManager = client.conversationsManager;
    conversationsManager.conversations.added(function (conversation) {
        conversation.audioService.accept.enabled.when(true, function () {
           alert('Incoming Audio call detected from ' 
                 + JSON.stringify(conversation.creator.displayName())
                 + "; Caller id()=" + conversation.creator.id());

        });


        conversation.state.changed(function (newValue, reason, oldValue) {
           console.log('Conversation state changed from', oldValue, 'to', newValue);
        });
    });
    alert("Ready for Incoming Call detection!");
};

有人知道在检测到传入的音频呼叫时如何仅获取呼叫者ID吗?

欢迎提出任何建议。

0 个答案:

没有答案