Difference between revisions of "Open door script does not work"
From Zenitel Wiki
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{AI}} | {{AI}} | ||
− | The Open Door script as described in the manual, and as part of standard scripts in | + | 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 = | + | |
− | string dira = | + | The correct script is: |
− | int nnop = | + | <div style="float:left; background-color: #F5F5F5; border:1px solid black; padding: 10px;"> |
− | int nna = | + | 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)) | ||
{ | { | ||
− | + | 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 | 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"); | |
} | } | ||
+ | </div> | ||
+ | <br style="clear:both;" /> | ||
− | + | [[Category: VS-Operator Troubleshooting]] | |
− | [[Category: |
Latest revision as of 09:38, 29 June 2023
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"); }