1

I am working in MVC C# Web Application. I am implementing RingCentral Embeddable Voice in my application. I want to paste the number when clicking on call to the Dial pad field which is inside the iFrame of RingCentral. Please help. Thanks.

Grokify
  • 15,092
  • 6
  • 60
  • 81

1 Answers1

1

Post a message to Embeddable Voice inside iframe:

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


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

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

Tyler Liu
  • 19,552
  • 11
  • 100
  • 84