How can I get back the currentCall object on a Verto FreeSwitch?
I am using this guide from the Verto Documentation.
When I want to hangup after a tab refresh, I get this error:
Cannot read property 'hangup' of undefined at HTMLButtonElement.hangupCall
and when i try to print it, it says "undefined".
What can I do?
After some research it seems that i didn't read well the doc. My bad.
This line on the onDialog State function make it.
if (!currentCall) {
currentCall = dialog;
}