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

unHold() method

If a call object is added to the program, this method can run on it. It is used to put a call back from HOLD state to IN_CALL state. It reverses the effect of the hold() method.

Method usage example

You can register to the onIncomingCall event. If the webclient receives a call then the incoming function is called that will hold the old call and accept the new call. Then it will register to the onCallStateChanged event, which occurs when the state of the new call changes. When the event happens the callStateChanged function is called. This function hangs up the new call and unholds the old call if the new call is completed (Code example 1).

OzWebClient.onIncomingCall(incoming); //registers to the onIncomingCall event

function incoming(newCall) {
	oldCall.hold(); //hold the old call
	newCall.accept(); //accepts the new call
	newCall.onCallStateChanged(callStateChanged); //registers to the onCallStateChanged event
}
  
function callStateChanged(state) {
	if (state == "COMPLETED") { //if the state of the new call is completed
		newCall.hangUp(); //hang up the new call and
		oldCall.unHold(); //unhold the old call
	}	
}
	
Code example 1 - unHold() method example

More information