Actions

Open door script does not work

From Zenitel Wiki

AI.png

The Open Door script as described in early versions of the manual, and as part of standard scripts in early VS-Operators itself, does not work for both incoming and outgoing calls. This is be rectified in later versions, and it is recommended to download and install the latest version of both VS-Operator Server and VS-Operator Client.

The correct script is:

string dirop = App.Params.Get("DIROP", ""); 
string dira = App.Params.Get("DIRA", ""); 
int nnop = App.Params.Get("NNOP", 0);
int nna = App.Params.Get("NNA", 0);
 
if ((dira==dirop) && (nna==nnop))
{
	App.STE ("@U%NNB $ER U2 U0 U1 U1 L%DIRB U3 L(%NNOP)%DIROP"); 
	App.Delay (3500);
	App.STE ("@U%NNB $ER U2 U0 U0 U1 L%DIRB U3 L(%NNOP)%DIROP");
}
else
{
	App.STE ("@U%NNA $ER U2 U0 U1 U1 L%DIRA U3 L(%NNOP)%DIROP");
	App.Delay (3500);
	App.STE ("@U%NNA $ER U2 U0 U0 U1 L%DIRA U3 L(%NNOP)%DIROP");
}