Home
RECOMMENDED FOR YOU:
SMS Gateway software
Ozeki brings you outstanding
SMS Gateway technology. Use our SMS Server products on Windows,Linux, or Android

C# SMS API
Developers can use our C# SMS API to send SMS from C#.Net. The C# SMS API comes with full source code

PHP SMS API
The ozeki PHP SMS gateway software can be used to send SMS from PHP and to receive SMS usig PHP on your website

SMPP SMS Gateway
SMS service providers use our SMPP gateway solution, that offers a high performance SMPP server and SMPP client gateway with amazing routing capabilities
Ozeki Phone System

OzWebClient.onSessionClosed event

This event occurs when an active session has been closed in Ozeki Phone System. When the event is occured, the function given as a parameter of the event will be called and that function will get the Id of the Session.

Callback method input parameters

sessionId: Type: string. The ID of the closed session.

Event usage example

In this example we will register to the onSessionClosed event. If a session is closed in the Ozeki Phone System, it will send us and the sessionClosed method will write the Id of the session on the console(Code Example 1).

//registers to the onSessionClosed event
OzWebClient.onSessionClosed(sessionClosed);

function sessionClosed(sessionId)  {  
	console.log("The session with " + sessionId + " Id has closed.");
}
	
Code Example 1 - OzWebClient.onSessionClosed event example

More information