1

我在 MVC C# Web 应用程序中工作。我正在我的应用程序中实现 RingCentral 嵌入式语音。我想在单击 RingCentral 的 iFrame 内的拨号键盘字段时粘贴号码。请帮忙。谢谢。

4

1 回答 1

1

在 iframe 中向 Embeddable Voice 发布消息:

function postMessage(data) {
    document.getElementsByTagName('iframe')[0].contentWindow.postMessage(data, '*');
}


postMessage({
    type: 'rc-adapter-new-call',
    phoneNumber: number,
    toCall: false,
});

参考:https ://github.com/ringcentral/ringcentral-js-widgets/issues/350#issuecomment-325078638

于 2018-07-16T00:54:53.050 回答