OzWebClient.onErrorOccured event
This event occurs if an error message has been received from Ozeki Phone System. When the error is occured, the function given as a parameter of the event will be called and that function will get the error message.
Callback method input parameters
errorMessage: Type: string. The content of the sent error message.
Event usage example
In this example we will register to the onErrorOccured event. If the Ozeki Phone System send us an error, then the errorOccured method will write it on the console(Code example 1).
//registers to the onErrorOccured event OzWebClient.onErrorOccured(errorOccured); function errorOccured(error) { console.log(error); }
More information
- JavaScript connect method
- JavaScript createCall method
- JavaScript checkWebPhoneState method
- JavaScript disconnect method
- JavaScript method initiates a call history query request
- JavaScript onCallHistoryInfoReceived method
- JavaScript onClientStateChanged event
- JavaScript onConnectionStateChanged event
- JavaScript OzWebClient.onErrorOccured event
- JavaScript OzWebClient.onIncomingCall event
- OzWebClient.onSessionCreated event
- JavaScript OzWebClient.onSessionClosed event