No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

U1910 VU script

Publication Date:  2014-02-24 Views:  52 Downloads:  0
Issue Description
All
Alarm Information
None
Handling Process
do the script like the follwing and add the following command for the timing index .


Config add vutime index 0  Startweekday mon endweekday fri Starttime 08:00:00 endtime 17:00:00

Config add vutime index 1  Startweekday mon endweekday fri Starttime 17:00:00 endtime 08:00:00




**********************************
The script
10    define OperationNO   1
50    define true          1
80    define false         0

100   str groupNo = "1"
101   str groupNum2 = "2" 
102   str groupNum3 = "0"
200   str transferNum = "503"
201   str transferNum2 = "504"
202   str transferNum3 = "500"
210   int NumLen = 0
220   str calledNum = ""
230   int seatNo = 65535
231   str strNull = ""
240   int index = 1              
250   int tem = 0

300   calledNum = ""
301   NumLen = 0
302   index = 255
310   GetTimeIndex index       

320   switch( index )
321   {
322     case 0:   
323     {
324      PlayCollect 512,512,252,true,3,'#','*','#','#',20,NumLen,calledNum
425      break
426  }
427     case 1:   
428     {
429      PlayCollect 512,512,253,true,3,'#','*','#','#',20,NumLen,calledNum
430      break
431  }
432     case 64:  
433     {
434      PlayCollect 512,512,254,true,3,'#','*','#','#',20,NumLen,calledNum
435         CallTransfer transferNum3,strNull,1023,1050,1060,2000,1070
436      break
437  }
480     default:  
481     {
482      PlayCollect 512,512,250,true,3,'#','*','#','#',20,NumLen,calledNum
483      break
484  }

500 }

501   switch(NumLen)
599   {
600     case 1:
602     {  
700         if(calledNum == groupNo)
701         {
702              CallTransfer transferNum,strNull,1023,1050,1060,2000,1070
703         }

704         if(calledNum == groupNum2)
705         {
706              CallTransfer transferNum2,strNull,1023,1050,1060,2000,1070
707         }

708     if(calledNum == groupNum3)
709         {
710              CallTransfer transferNum3,strNull,1023,1050,1060,2000,1070
711         }

802         else
803         {
804           goto 300
805         }
806         break
901     }
1000    default:
1001    {
1020       CallTransfer calledNum,strNull,1023,1050,1060,2000,1070
1021       break
1025    }
1030  }

1050  calledNum = ""
1051  NumLen = 0
1052  PlayCollect 512,512,140,true,3,'#','*','#','#',30,NumLen,calledNum
1053  goto 300

1060  calledNum = ""
1061  NumLen = 0
1062  PlayCollect 512,512,177,true,3,'#','*','#','#',30,NumLen,calledNum
1063  goto 300

1070  calledNum = ""
1071  NumLen = 0
1072  PlayCollect 512,512,141,true,3,'#','*','#','#',30,NumLen,calledNum
1073  goto 300

2000  end
Root Cause
None.
Suggestions
1-you can edit the script regarding your requierment .
2-You can edit the time on the timming index command regarding your requierment .

END