|Ismerje meg, hogyan tudja beállítani és használni a legkorszerűbb mobil, VoIP, SMS és web funkciókat.|
The pillars of your script are the classes. We made some classes for you to use them easily in collaboration with the phone system. You can learn about our classes by clicking on them.
The Call class represents a call object in the system. The class contains methods for a wide range of call, messaging and video stream functionalities. It also contains events to help messaging and monitor callstates.
The Camera class represents a camera. The class contains methods for setting up your camera and checking out camera features.
|Extension||The Extension class represents an extension (or outside line) in the system. The Extension class provides basic information about the extension configured in Ozeki Phone System XE.|
|Helper||The helper class contains methods which lets you query out information from the OzWebclient instance.|
The Session class represents a session of an ongoing call in the system. The Session class provides session modification functions such as hold(), unhold(), etc. which can only be used if the connected webclient has the required privileges.
The User class represents a user configured in Ozeki Phone System XE. The user class contains the user's name, phone number , email address and other user related information.
Classes can contain constructor(s), methods, properties and events. The constructor makes an object of the class, the methods are functions used on the object, properties are attributes of the object. You can also register on events, so if an event occurs it calls a function.
|OzWebClient class methods:|
|OzWebClient.connect(serverAddress, token, properties)|
Connects the webclient to Ozeki Phone System XE.
Returns a new Call object with the specified target phone number.
|OzWebClient.checkWebphoneState(serverAddress, webphoneId, callback)|
It is used to check if the webphone is available.
Disconnects the webclient from Ozeki Phone System XE.
Initiates a call history query request to Ozeki Phone System XE. *
Creates a call between two extensions configured in Ozeki Phone System XE.
|Call class methods:|
Accepts a call coming to the webclient.
Attaches the video stream of a camera to the call.
Forwards the call while not picked up.
Returns the callstate of the current call.
Returns the phone number of the other party.
Hangs up the call.
Holds the call.
Rejects a call coming to the webclient.
Sends a message to the other party.
Displays the video stream coming from the other party.
Starts the call.
Transfers the call after its picked up.
Unholds the call.
OzCamera class methods:
Returns the frames per second value of the video stream.
Returns the height of the video stream in pixels.
Returns the ID of the camera display.
Returns the name of the camera the object represents.
Returns the width of the video stream in pixels.
Returns the names of available cameras.
Returns a new Camera object or null if the given index is not present in the array.
Returns a new Camera object or null if the given cameraName does not exists.
Sets which display should show the video stream.
Sets the width, height and fps of the video stream.
Sets the transmission bandwidth and quality of the video stream.
|Helper class methods:|
Retrieves the active calls of the specified extension.
Retrieves the active calls of the specified user.
Retrieves the session by the specified session ID, or null if the session does not exists.
Retrieves the sessions by the specified session state.
Initiates a getCallHistory request with the specified extension ID.
Retrieves the extension with the specified ID, or null if the extension does not exists.
Retrieves the extensions configured in Ozeki Phone System XE.
Retrieves the extensions whose type equals to the specified type.
Retrieves the outside line with the specified ID, or null if the outside line does not exists.
Retrieves the outside lines configured in Ozeki Phone System XE.
Retrieves the outside lines whose type equals to the specified type.
Retrieves the user instance by the specified extension ID, e.g returns the user whose device list contains the specified extension. *
Retrieves the user instance by the specified user ID, or null if the user does not exists.
|Session class methods:|
Uses blind transfer to transfer the call to another party. *
Closes the session, terminating the call. *
Closes the session by calling HANGUP. *
Forwards the session to another party. *
Calls HANGUP on the session, terminating the call.*
Holds both call parties. *
Sends a DTMF signal to one of the call parties. *
Starts a listening session e.g. lets you listen to the ongoing call. *
Stops the current listening session. *
Unholds both call parties. *
* Can only be used if the connected webclient has the required privilege.
|OzWebClient class events:|
|OzWebClient.onCallHistoryInfoReceived||This event occurs when the result of the query initiated from the getCallHistory function has been received.|
|OzWebClient.onClientStateChanged||This event occurs when the state of the webclient changes.|
|OzWebClient.onConnectionStateChanged||This event occurs when the state of the connection changes.|
|OzWebClient.onErrorOccured||This event occurs if an error message has been received from Ozeki Phone System XE.|
|OzWebClient.onExtensionInfoReceived||This event occurs when the webclient receives information about an extension.|
|OzWebClient.onExtensionRemoved||This event occurs when the webclient receives information about an extension which has been removed.|
|OzWebClient.onIncomingCall||This event occurs when the webclient receives an incoming call.|
|OzWebClient.onSessionCreated||This event occurs if a new Session has been created e.g. a new session has started in Ozeki Phone System XE.|
|OzWebClient.onSessionClosed||This event occurs when an active session has been closed.|
|OzWebClient.onUserInfoReceived||This event occurs when the webclient receives information about a user.|
|OzWebClient.onUserRemoved||This event occurs when the webclient receives information about a user being removed from Ozeki Phone Sytem XE.|
|OzWebClient.onWebphoneStateReceived||This event occurs when the state of the webphone is received.|
|Call class events:|
|onCallStateChanged||This event occurs when the state of the call changes. Callstates: "RINGING", "NOT_FOUND", "REJECTED", "HOLD", "IN_CALL", "COMPLETED", "BUSY" and "ANSWERED".|
|onMessageReceived||This event occurs when a message is received.|
|Extension class events:|
|onExtensionStatusChanged||This event occurs when the status of the extension has changed.|
|Session class events:|
|onSessionStateChanged||This event occurs when the state of an active session has changed.|
If you have any questions or need assistance, please contact us at firstname.lastname@example.org
People who read this also read...