Advertisement
krtapas

Install FOP2 Debian

Dec 29th, 2011
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. Descargar el tarball, descomprimirlo e instalar el paquete.
  2.  
  3. # cd /usr/src
  4. # wget http://download.fop2.com/fop2-2.24-debian-i386.tgz
  5. # ls
  6. fop2-2.24-debian-i386.tgz
  7. # tar zxvf fop2-2.24-debian-i386.tgz
  8. # cd fop2
  9. # make install
  10.  
  11. =========================================
  12. Configurar el manager de asterisk
  13.  
  14. # vim /etc/asterisk/manager.conf
  15. [general]
  16. displaysystemname = yes ;Solo vale para Asterisk 1.4
  17. enabled = yes
  18. port = 5038
  19. bindaddr = 0.0.0.0
  20. ;
  21. ;FOP2
  22. [admin]
  23. secret = amp111
  24. deny = 0.0.0.0/0.0.0.0
  25. permit = 127.0.0.1/255.255.255.0
  26. read = system,call,command,agent,user,originate
  27. write = system,call,command,agent,user,originate
  28.  
  29. # asterisk -rx "module reload"
  30.  
  31. ==========================================
  32. Verificar la misma configuración en el archivo /usr/local/fop2/fop2.cfg
  33.  
  34. # vim /usr/local/fop2/fop2.cfg
  35. [general]
  36. manager_host=127.0.0.1
  37. manager_port=5038
  38. manager_user=admin
  39. manager_secret=amp111
  40.  
  41. ==========================================
  42. Crear el directorio indicado a continuación y editar el archivo /etc/init.d/fop2 y agregar la línea export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp en los lugares indicados.
  43.  
  44. # mkdir /usr/local/fop2/temp
  45.  
  46. # vim /etc/init.d/fop2
  47. start)
  48. echo -n "Starting $DESC: $NAME"
  49. export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  50.  
  51. stop)
  52. echo -n "Stopping $DESC: $NAME"
  53. export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  54.  
  55. reload)
  56.  
  57. # If the daemon can reload its config files on the fly
  58. # for example by sending it SIGHUP, do it here.
  59. #
  60. # If the daemon responds to changes in its config file
  61. # directly anyway, make this a do-nothing entry.
  62. #
  63. echo -n "Reloading $DESC configuration..."
  64. export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  65.  
  66. restart|force-reload)
  67. #
  68. # If the "reload" option is implemented, move the "force-reload"
  69. # option to the "reload" entry above. If not, "force-reload" is
  70. # just the same as "restart".
  71. #
  72. echo -n "Restarting $DESC: $NAME"
  73. export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  74.  
  75. ==========================================
  76. Correr el test para verificar si la conexión con el manager fue satisfactoria.
  77.  
  78. # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  79. # /usr/local/fop2/fop2_server --test
  80. Flash Operator Panel 2 - No valid license found. Demo Mode
  81. Connection to manager OK!
  82.  
  83. ==========================================
  84. Se puede proceder a lanzar el servicio
  85.  
  86. # /etc/init.d/fop2 start
  87. Starting Flash Operator Panel 2: [ OK ]
  88.  
  89. ==========================================
  90. Agregar el parámetro callevents al general del sip.conf
  91.  
  92. # vim /etc/asterisk/sip.conf
  93. [general]
  94. callevents=yes
  95.  
  96. ==========================================
  97. Agregar el parámetro eventwhencalled a cada una de las colas del queues.conf que queramos exhibir en el panel.
  98.  
  99. # vim /etc/asterisk/queues.conf
  100. [INBOUND]
  101. eventwhencalled=yes
  102.  
  103. ==========================================
  104. Editar el archivo fop2.cfg y comentar la línea #exec que se usa solo para integración con FreePBX. Se crea un usuario para poder hacer login en el panel. Se verifica la línea que indica dónde se alojará la configuración de los botones.
  105.  
  106. # vim /usr/local/fop2/fop2.cfg
  107. ;
  108. ;#exec autoconfig-users-freepbx.sh
  109. ;
  110. user=user:user:all
  111. ;
  112. buttonfile=buttons.cfg
  113.  
  114. ==========================================
  115. Editar el archivo buttons.cfg y agregar la configuración de los botones que se desean visualizar
  116.  
  117. # vim /usr/local/fop2/buttons.cfg
  118. [SIP/1010]
  119. type=extension
  120. extension=1010
  121. context=extensiones
  122. label=Extension 1010
  123. channel=SIP/1010
  124. ;
  125. [QUEUE/INBOUND]
  126. type=queue
  127. label=Entrante Comercial
  128.  
  129. ===========================================
  130. Para hacer debug del servicio se usa la cadena siguiente
  131.  
  132. # /usr/local/fop2/fop2_server -X 511
  133.  
  134. ===========================================
  135. Identificar la versión actual del panel
  136.  
  137. # /usr/local/fop2/fop2_server -v
  138.  
  139. ===========================================
  140. Para instalar una licencia se lleva a cabo lo siguiente:
  141.  
  142. # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  143. /usr/local/fop2/fop2_server --register
  144.  
  145. License Activation
  146. ------------------
  147.  
  148. Enter your serial code: xxxxxxxxx
  149.  
  150. Serial code available!
  151.  
  152. Registration Successfull
  153.  
  154. ===========================================
  155. Para revocar una licencia existente llevar a cabo lo siguiente:
  156.  
  157. # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
  158. # /usr/local/fop2/fop2_server --revoke
  159. License Revoke
  160. --------------
  161.  
  162. Enter your serial code: xxxxxxxxx
  163. Revokation Successfull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement