Untitled

From Tinct Porcupine, 2 Months ago, written in Plain Text, viewed 3 times.
URL https://pastebin.freepbx.org/view/209bd577 Embed
Download Paste or View Raw
  1. [custom-tts-ivr]
  2. ;verificacion del celular registrado
  3. exten => s,1,Noop(Entering custom IVR setup in extensions_custom.conf)
  4. exten => s,n,Verbose(Testando Google TTS ${CALLERID(name)});
  5. exten => s,n,Answer();
  6. exten => s,n,Agi(nroRegGb.php,${CALLERID(name)});
  7. exten => s,n,GotoIf($[ “${sucu}” = “0” ]?err);
  8. exten => s,n,GotoIf($[ “${sucu}” = “0” ]?err2);
  9. exten => s,n,GotoIf($[ “${cantPaq}” != “0” ]?oK:ok1);
  10. ;vericacion del CI
  11. exten => s,n(err),Playback(custom/12);
  12. exten => s,n,Read(ci,“silence/2”,8,6);
  13. exten => s,n,Agi(ciRegGb.php,${ci});
  14. exten => s,n,GotoIf($[ “${nombre}” = “nuevo” ]?err1);
  15. exten => s,n,GotoIf($[ “${sucu}” = “0” ]?err2);
  16. exten => s,n,GotoIf($[ “${cantPaq}” != “0” ]?oK:ok1);
  17. ;nuevo cliente
  18. exten => s,n(err1),Goto(nuevo-cliente,s,1);
  19. ;no se detecto el CI cliente
  20. exten => s,n(err2),Playback(custom/15);
  21. ;Posee paquetes
  22. exten => s,n(oK),Goto(cliente-paquete,s,1);
  23. ;No posee paquetes
  24. exten => s,n(ok1),Goto(no-paquetes,s,1);
  25.  
  26. [nuevo-cliente]
  27. exten => s,1,NoOp();
  28. same => 2(loop),Playback(custom/16);
  29. same => n,Playback(custom/18);
  30. same => n,Playback(custom/20);
  31. same => n,Playback(custom/22);
  32. same => n,Playback(custom/23);
  33. same => n,WaitExten(5);
  34. same => n,Goto(loop);
  35. exten => 1,1,Goto(registro,s,1)
  36. exten => 2,1,Goto(aereo,s,1)
  37. exten => 3,1,Goto(maritimo,s,1)
  38. exten => 4,1,Goto(representante,s,1)
  39. exten => 5,1,Goto(representante,s,1)
  40.  
  41. [registro]
  42. exten => s,1,NoOp();
  43. same => n,Playback(custom/17);
  44. same => n,WaitExten(5);
  45. exten => 1,1,Playback(custom/11);
  46. exten => 2,1,Goto(nuevo-cliente,s,1)
  47.  
  48. [aereo]
  49. exten => s,1,NoOp();
  50. same => n,Playback(custom/19);
  51. same => n,WaitExten(5);
  52. exten => 1,1,Playback(custom/11);
  53. exten => 2,1,Goto(nuevo-cliente,s,1)
  54.  
  55. [maritimo]
  56. exten => s,1,NoOp();
  57. same => n,Playback(custom/21);
  58. same => n,WaitExten(5);
  59. exten => 1,1,Playback(custom/11);
  60. exten => 2,1,Goto(nuevo-cliente,s,1)
  61.  
  62. [representante]
  63. exten => s,1,NoOp();
  64. same => n,Playback(custom/11);
  65. same => n,WaitExten(5);
  66.  
  67. ;no se detecto el CI cliente
  68. exten => 5000,30(err2),Playback(custom/15);
  69. same => n,goto “Representante”
  70. same => n,Hangup();
  71.  
  72. [cliente-paquete]
  73. exten => s,1,NoOp();
  74. same => n,Playback(custom/HOLA);
  75. same => n,Agi(googletts.agi,"${nombre}",es);
  76. same => n,Playback(custom/03);
  77. same => n,Agi(googletts.agi,"${cantPaq}",es);
  78. same => n,Playback(custom/04);
  79. same => n,Agi(googletts.agi,"${peso}",es);
  80. same => n,Playback(custom/05);
  81. same => n,Goto(opcion-cliente,s,1);
  82.  
  83. [opcion-cliente]
  84. exten => s,1,NoOp();
  85. same => 2(loop),Playback(custom/06);
  86. same => n,Playback(custom/07);
  87. same => n,Playback(custom/08);
  88. same => n,WaitExten(5);
  89. same => n,Goto(loop);
  90. exten => 1,1,Goto(delivery,s,1);
  91. exten => 2,1,Goto(compra,s,1);
  92. exten => 3,1,Goto(representante,s,1);
  93. exten => 4,1,Goto(representante,s,1);
  94. exten => 5,1,Goto(representante,s,1);
  95.  
  96. [delivery]
  97. exten => s,1,NoOp();
  98. same => n,Playback(custom/09);
  99. same => n,WaitExten(5);
  100. exten => 1,1,Goto(opcion-cliente,s,1)
  101.  
  102. [compra]
  103. exten => s,1,NoOp();
  104. same => n,Playback(custom/10);
  105. same => n,WaitExten(5);
  106. exten => 1,1,Goto(opcion-cliente,s,1)
  107.  
  108. [no-paquetes]
  109. exten => s,1,NoOp();
  110. same => n,Playback(custom/HOLA);
  111. same => n,Agi(googletts.agi,"${nombre}",es);
  112. same => 4(loop),Playback(custom/14);
  113. same => n,WaitExten(5);
  114. same => n,Goto(loop);
  115.  
  116. exten => 1,1,Goto(representante,s,1);
  117. exten => 2,1,Goto(compra,s,1);
  118.  

Reply to "Untitled"

Here you can reply to the paste above