Actions

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

From Zenitel Wiki

(Created page with "{{A}} The Open Door script as described in the manual, and as part of standard scripts in AlphaView itself does not work for both incoming and outgoing calls. This will be rec...")
 
m
Line 1: Line 1:
 
{{A}}
 
{{A}}
The Open Door script as described in the manual, and as part of standard scripts in AlphaView 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 the manual, and as part of standard scripts in AlphaView itself, does not work for both incoming and outgoing calls. This will be rectified in a following release. The correct script is:<br>
 
  string dirop = Av.Params.Get("DIROP", "");  
 
  string dirop = Av.Params.Get("DIROP", "");  
 
  string dira = Av.Params.Get("DIRA", "");  
 
  string dira = Av.Params.Get("DIRA", "");  
Line 9: Line 9:
 
  if ((dira==dirop) && (nna==nnop))
 
  if ((dira==dirop) && (nna==nnop))
 
  {
 
  {
  Av.STE ("@U%NNOP $ER U2 U0 U1 U1 L(%NNOP)%DIRB U3 L%DIROP");  
+
  Av.STE ("@U%NNB $ER U2 U0 U1 U1 L%DIRB U3 L(%NNOP)%DIROP");  
 
  Av.Delay (3500);
 
  Av.Delay (3500);
  Av.STE ("@U%NNOP $ER U2 U0 U0 U1 L(%NNOP)%DIRB U3 L%DIROP");
+
  Av.STE ("@U%NNB $ER U2 U0 U0 U1 L%DIRB U3 L(%NNOP)%DIROP");
 
  }
 
  }
 
  else
 
  else
 
  {
 
  {
  Av.STE ("@U%NNOP $ER U2 U0 U1 U1 L(%NNOP)%DIRA U3 L%DIROP");
+
  Av.STE ("@U%NNA $ER U2 U0 U1 U1 L%DIRA U3 L(%NNOP)%DIROP");
 
  Av.Delay (3500);
 
  Av.Delay (3500);
  Av.STE ("@U%NNOP $ER U2 U0 U0 U1 L(%NNOP)%DIRA U3 L%DIROP");
+
  Av.STE ("@U%NNA $ER U2 U0 U0 U1 L%DIRA U3 L(%NNOP)%DIROP");
 
  }
 
  }
  
  
 
[[Category:AlphaView Troubleshooting]]
 
[[Category:AlphaView Troubleshooting]]

Revision as of 09:17, 19 January 2018

AlphaCom icon 300px.png

The Open Door script as described in the manual, and as part of standard scripts in AlphaView itself, does not work for both incoming and outgoing calls. This will be rectified in a following release. The correct script is:

string dirop = Av.Params.Get("DIROP", ""); 
string dira = Av.Params.Get("DIRA", ""); 
int nnop = Av.Params.Get("NNOP", 0);
int nna = Av.Params.Get("NNA", 0);


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