Description
I would like to click on a number, and instantly call the number that the user clicked.
I used this tutorial to integrate the zoom phone with my app:
But when I call this event ‘zp-make-call’, the event is not being triggered, and even the number sended in the data, is not being dialed.
What’s strange to me is that when starting the component and calling the 'zp-init-config 'event, the event is triggered by zoom, and the zoom embed is initiating the iframe.
The iframe is being injected when I call injectIframe method, and when I dial a number and press call button, the call starts normally. but this event to make a call via code, is not working, for every number that I insert.
I tried to select the iframe element in dev tools and call this event like that:
I just responded again in the private message thread so you can send your email address. I will open a support inquiry for you on your behalf. When you click on your icon pic you should see a message icon to access your private messages.
@sue1 were you able to reproduce with the the sample code provided as opposed to your refactored code?
document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage({
type: 'zp-init-config',
data: {
enableSavingLog: false,
enableAutoLog: false,
enableContactSearching: false,
enableContactMatching: false,
notePageConfiguration: <configurationJSON>
// Optional. Build your note page with the fields listed in "Add notes" section
}
}, 'https://applications.zoom.us');
document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage({
type: 'zp-make-call',
data: {
number: <phone number>,
callerId: <outgoing caller ID (optional)>,
autoDial: <whether to initiate the call immediately or copy the number (optional and the default is true)>
}
}, 'https://applications.zoom.us');
@gianni.zoom Yes, in addition to this application, I created a JS application, using the same code exactly as it is in the documentation, and in this video on YouTube which is also on the official ZOOM channel. https://www.youtube.com/watch?v=Jiy6sX7VIRo.
However, the problem persists. The ZP-INIT-CONFIG event works and the Iframe is initialized correctly, and I can make calls successfully. However, ZP-MAKE-CALL does not work at all.
As I said before, I even tried selecting the IFRAME in the dev-tools and simply hitting the event, but it still doesn’t work.