SHARE
TWEET

Untitled

a guest Nov 9th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Answer();
  2. Wait(1);
  3. Read(option,entrada_ura,1,,3,5);
  4.  
  5. switch (${option})
  6. {
  7.     case 1:
  8.         Set(QUEUE=Comercial);
  9.         ifTime (08:00-18:00|mon-fri|*|*)
  10.         {
  11.             Set(queueExten=${Confast.Queues.Comercial});
  12.         }
  13.         else
  14.         {
  15.             Dial(PJSIP/104,60);
  16.         }
  17.         break;
  18.  
  19.     case 2:
  20.         Set(QUEUE=Financeiro);
  21.         ifTime (08:00-18:00|mon-fri|*|*)
  22.         {
  23.             Set(queueExten=${Confast.Queues.Financeiro});
  24.         }
  25.         else
  26.         {
  27.             Dial(PJSIP/104,60);
  28.         }
  29.         break;
  30.  
  31.     case 3:
  32.         Set(QUEUE=Suporte);
  33.         ifTime (08:00-19:30|mon-fri|*|*)
  34.         {
  35.             Set(queueExten=${Confast.Queues.Suporte});
  36.         }
  37.         else
  38.         {
  39.             Dial(PJSIP/104,60);
  40.         }
  41.         break;
  42. }
  43.  
  44. if ("${READSTATUS}" = "TIMEOUT")
  45. {
  46.     Gosub(Confast-processCallOptions,${queueExten},1(Inbound));
  47.     Queue(Suporte,tTc,,,180);
  48.  
  49. }
  50.  
  51. Gosub(Confast-processCallOptions,${queueExten},1(Inbound));
  52. Queue(${QUEUE},tTc,,,180);
  53. //Confast-Queues-Extens|${queueExten}|1;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top