FreePBX | Register | Issues | Wiki | Portal | Support

How to set up fop2 credentials


#1

I decided to have a play with FOP2. The latest installation instructions have this:

### Manager Credentials

Before starting the FOP2 service, some basic configuration is required in  *fop2.cfg*  and probably in  */etc/asterisk/manager.conf*  (in many backends you can configure that in  */etc/asterisk/manager_custom.conf* ), because the FOP2 daemon connects via TCP to the Asterisk Manager Interface (AMI) using a username and secret. The basic daemon config is covered [here](https://www.fop2.com/docs/installation.php#ConfigurationServer).

Once that the files are in place and the manager credentials configured you will have to start the service. There are a number of ways to do that. The best way is to use a proper init script for your distribution, another way is to start it from /etc/rc.local.

You can always check if the manager credentials are correctly configured, and also verify if your license is ok, by running the command:

```
/usr/local/fop2/fop2_server --test
```'

There is nothing there about how to configure these files.


(Lorne Gaetz) #2

You can use the GUI to configure: https://wiki.freepbx.org/display/FPG/Asterisk+Managers+User+Guide


#3

I added a user from the GUI as you suggested. In the Permissions tab, I don’t see fop2 listed. When I try to login from mysite.com/fop2, I get “invalid credentials”


#4

Read

/usr/local/fop2/fop2.cfg

and make the credentials match


#5

Did that. Restarted fop2. Still get “Invalid Credentials”


(Nate) #6

Normally fop2 puts its AMI user in /etc/asterisk/manager_custom.conf whereas the GUI puts them in /etc/asterisk/manager_additional.conf - I would check that you don’t have credentials in both places.


#7

They were in manager_additional.conf… manager_custom.conf is empty


(Nate) #8

Do you see your fop2 user if you do:

asterisk -rx 'manager show users'


#9
[root@freepbx asterisk]# asterisk -rx 'manager show users'

username
--------
admin
cxpanel
d0325mgray
firewall
-------------------
4 manager users configured.

d0325mgray is the user that is failing authentication

I am copying and pasting the password to be sure that is not the problem


#10

Also at the cli

manager show connected

Is d0325mgray and its associated password reflected in your fop2.cfg file?

If necessary restart the fop2 service and fwportal


#11
 d0325mgray       127.0.0.1                                                1559661995  4563        18        0         08191  08191

I have restart the fop2 service. There is no fwportal service

fop2.cfg has the matching name and password.


#12

sorry fwconsole

Was that all manager show connected wrote?


#13
Username         IP Address                                               Start       Elapsed     FileDes   HttpCnt   Read   Write
  d0325mgray       127.0.0.1                                                1559667161  150         21        0         08191  08191
  firewall         127.0.0.1                                                1559667163  148         23        0         2147483647  00064
  admin            127.0.0.1                                                1559667176  135         45        0         1073750015  1073750015
  admin            127.0.0.1                                                1559667177  134         48        0         1073750015  1073750015
  admin            127.0.0.1                                                1559667184  127         49        0         1073750015  1073750015
  admin            127.0.0.1                                                1559667311  0           20        0         1073750015  1073750015
6 users connected.

issued “fwconsole restart”

No change


#14

Now set up users

Http://your.machine/fop2/admin


#15

There are three extensions listed on the left side. set up one extension to log in with and was successful. I can now start to configure this.

Is this all documented in one place? I was unable to find a recipe for setting this up

Thank you for all your help


#16

Pretty well all in the README file of the fop2 installation directory.


#17

I was only looking on the web. Even this readme file doesn’t cover all the steps you put me through.


#18

One last question :smile:

There is a button on the FreePBX admin/config.php page called Operator Panel. What is that supposed to be fore?


(Nate) #19

I believe that is used for iSymphony if you have it set up.


#20

There is another tab along the top row for isymphony