Actions

Difference between revisions of "Open door script does not work"

From Zenitel Wiki

m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{A}}
+
{{AI}}
The Open Door script as described in the manual, and as part of standard scripts in Vingtor-Stentofon Operator itself, does not work for both incoming and outgoing calls. This will be rectified in a following release. The correct script is:<br>
+
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.  
  string dirop = Av.Params.Get("DIROP", "");  
+
 
  string dira = Av.Params.Get("DIRA", "");  
+
The correct script is:
  int nnop = Av.Params.Get("NNOP", 0);
+
<div style="float:left; background-color: #F5F5F5; border:1px solid black; padding: 10px;">
  int nna = Av.Params.Get("NNA", 0);
+
  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))
 
  if ((dira==dirop) && (nna==nnop))
 
  {
 
  {
  Av.STE ("@U%NNB $ER U2 U0 U1 U1 L%DIRB U3 L(%NNOP)%DIROP");  
+
  App.STE ("@U%NNB $ER U2 U0 U1 U1 L%DIRB U3 L(%NNOP)%DIROP");  
  Av.Delay (3500);
+
  App.Delay (3500);
  Av.STE ("@U%NNB $ER U2 U0 U0 U1 L%DIRB U3 L(%NNOP)%DIROP");
+
  App.STE ("@U%NNB $ER U2 U0 U0 U1 L%DIRB U3 L(%NNOP)%DIROP");
 
  }
 
  }
 
  else
 
  else
 
  {
 
  {
  Av.STE ("@U%NNA $ER U2 U0 U1 U1 L%DIRA U3 L(%NNOP)%DIROP");
+
  App.STE ("@U%NNA $ER U2 U0 U1 U1 L%DIRA U3 L(%NNOP)%DIROP");
  Av.Delay (3500);
+
  App.Delay (3500);
  Av.STE ("@U%NNA $ER U2 U0 U0 U1 L%DIRA U3 L(%NNOP)%DIROP");
+
  App.STE ("@U%NNA $ER U2 U0 U0 U1 L%DIRA U3 L(%NNOP)%DIROP");
 
  }
 
  }
 +
</div>
 +
<br style="clear:both;" />
  
 
+
[[Category: VS-Operator Troubleshooting]]
[[Category:Vingtor-Stentofon Operator Troubleshooting]]
 

Latest revision as of 10:38, 29 June 2023

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");
}