fop2 trixbox no trunks
Hello! I have trixbox 2.8 (asterisk 1.6, FreePBX 2.5). I installed latest FOP 2.26+fop2admin 1.2.10 FreePBX module.
My problem is I do not have any trunks listed when I access http://server/fop2/
But all necessary extensions are listed.
/usr/local/fop2/autoconfig-buttons-freepbx.sh shows my trunks+extensions
/usr/local/fop2/autoconfig-users-freepbx.sh shows all users and their access rights
Firstly I thought it is a problem with web browser. But then I tried diferrent ones and nothing changed...
My problem is I do not have any trunks listed when I access http://server/fop2/
But all necessary extensions are listed.
/usr/local/fop2/autoconfig-buttons-freepbx.sh shows my trunks+extensions
/usr/local/fop2/autoconfig-users-freepbx.sh shows all users and their access rights
Firstly I thought it is a problem with web browser. But then I tried diferrent ones and nothing changed...
Comments
The Free/Lite version is limited to 15 buttons on screen. If you reach that limit, any other button (no matter what kind) won't be displayed.
You can disable buttons via the disable checkbox in fop2admin fop2 buttons page if you want to disable some to "make room" for other types, or you can register to see all buttons with no limits.
I temporarily solved the problem by manually editing fop2.cfg and making buttons.cfg file.
Seems like FreePBX fop2admin module can't pass config to fop2...
If you have doubts about the autoconfiguration script, run it by hand and inspect the output:
/usr/local/fop2/autoconfig-buttons-freepbx.sh
The first 15 buttons you see on that configuration files are the ones you are going to see. If turnks are below, you are NOT going to see them. This limitation is performed regardless of group or contexts configurations. If you want to disable buttons to make room, you can do so by checking the disabled checkbox on the fop2 buttons page.
You did not have the same issue, but a different one. If you run fop2 without registering, it has a hard limit of 15 buttons, that will left out trunks, queues, parks, etc, unless you disabled extensions/conferences to make room for them, or if you register your copy to avoid that limit.
Trixbox is quite old, its freepbx version is modified and outdated, it is possible that trunks are not stored in the asterisk database in the way fop2manager expects it to be, so it won't produce the trunk button in itself. You can very well edit functions-freepbx.php and look for the function that extracts trunk info from the DB, and compare to your own database schema and see if you can fix it or add support for it. It should not be that hard *if* trunks are stored in a database somehow.
Best regards,
Trunk buttons will work if defined correctly. If you have a button that fails to display states is just because the channel/device name used does not match the channel/device name broadcasted by asterisk via AMI.
Do a
asterisk -rx "show channels"
To see the channel names when you have ongoing calls via your trunk, that name, minus the -xxxxx suffix (session) is the one you have to use in a button definition in fop2.
Best regards,
Here is a sample capture from my show channels:
[ZAP/1]
type=trunk
label=zap trunk
extension=1
context=from-trunk
channel=ZAP/2
channel=ZAP/3
channel=ZAP/4
Then restart fop2, and be sure your fop2 user does not have any groups selected.
Best regards,