FOP2

Sep 16, 2016 16:57

ставим FOP2 на эластикс:

Вкратце: панель рабочая но в бесплатном варианте бестолковая, в отличие от того же HelloAsterisk ...

wget -O - http://download.fop2.com/install_fop2.sh | bash

https://www.fop2.com/docs/#ConfigurationServer

http://www.ansealk.ru/wiki/doku.php?id=fop2_s_licenziej

language keyword on the server side is deprecated. You must set the language only in the client side by editing the /var/www/html/fop2/js/preferences.js file, or each use can set its own language opening the preferences pane in the FOP2 UI. You should also set the language in /var/www/html/fop2/config.php for the PHP applications (Voicemail Explorer, Recordings Interface, Call History).

Дебаг для FOP2:

http://members.asternic.biz/knowledge_base/how-to-debug-fop2

Server Side Debug

In order to capture debug output on the server side you must pass some command line options to the fop2_server binary:

  • -X Log Level
  • -l Log Directory

Log level is a bitwise operator, that means that depending on the bit some particular messages are going to be logged. The bit table is this:

1
AMI Events received

2
AMI Commands sent

4
FOP2 Client events received

8
FOP2 Client command sent

16
Verbose

32
Verbose+

64
Verbose++

128
Verbose+++

For enabling full debug, the level to use is 511 ( 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1)

If you want to enable only AMI Events/Commands, set debug level to 3 ( 2 + 1 )

So, if you want to start FOP2 with full level debug, and storing the debug log (named fop2_debug.log) into the /var/log directory, you should pass the following parameters to the fop2_server binary:

-X 511 -l /var/log

In order to pass those parameters to the service init script you must edit the settings file and add those options. On a Centos/RedHat based system, the file to edit is /etc/sysconfig/fop2 , while on Debian based distributions, the file is named/etc/default/fop2. So go ahead and edit the file, leave any options you might have already set there, like -d, and just append the new options, so it will look similar to this:

OPTIONS="-d -X 511 -l /var/log"

It is very important to NOT remove any other command line options you might have specified there, otherwise you will most probably break your init script.

Once the file is modified, restart FOP2.

On Centos/RedHat run

service fop2 restart

Once the service is restarted, you will have a /var/log/fop2_debug.log file with information that will help troubleshooting / debugging issues.

elastix, asterisk elastix, fop2, freepbx, asterisk

Previous post Next post
Up