FOP2 completely empty
Hi,
I was trying to install FOP2, and everything went fine, from the logs, everything should be working as intended. However, when I log into FOP2, I do not see anything. No extensions, no trunks. I see the filter bar, but no other button (except the phonebook).
I am using FreePBX 2.7, all the tables (fop2) are there in the database, all the auto-scripts seem to work (the tables are populated), but no matter what I do, nothing is showing up. I have spent a great deal of time trying to figure it out, but I am at a loss now. I have installed the FreePBX module as well and configured some users, but no matter what I do, nothing shows up.
I have created users that match users of my Asterisk installation, with the same password as the voicemail password I set up on Asterisk.
I would really appreciate any help. I have tried pretty much everything I could think of before posting this.
Thanks!
I was trying to install FOP2, and everything went fine, from the logs, everything should be working as intended. However, when I log into FOP2, I do not see anything. No extensions, no trunks. I see the filter bar, but no other button (except the phonebook).
I am using FreePBX 2.7, all the tables (fop2) are there in the database, all the auto-scripts seem to work (the tables are populated), but no matter what I do, nothing is showing up. I have spent a great deal of time trying to figure it out, but I am at a loss now. I have installed the FreePBX module as well and configured some users, but no matter what I do, nothing shows up.
I have created users that match users of my Asterisk installation, with the same password as the voicemail password I set up on Asterisk.
I would really appreciate any help. I have tried pretty much everything I could think of before posting this.
Thanks!
Comments
/usr/local/fop2/autoconfig-buttons-freepbx.sh
And look at the output, it should look like valid fop2 button configuration data. If that script fails and it does not produce output, then that is the problem you have and that needs fixing.
I have found a "problem" with the script (and this is a fresh install of the OS). Since my first post, I have reinstalled the entire OS and I am still getting the same problem.
Apparently, some rows contain a * in the SQL request, causing the while loop to fail:
If the line is a *, then it will parse the files in the directoy, like so:
Now, I added a sed 's/\*/ /' before the while, but the buttons are still not showing up in the interface. I don't know exactly what it's supposed to look like (the final output) so it's hard to figure out what's wrong with the output I get. Could you enlighten me?
This is the actual output from the SQL request, without the sed:
Best regards,
Apparently, it only removes the CRs from the request.
Any other ideas?
The table:
*************************** 36. row ***************************
channel: SIP/gsm
type: trunk
extension:
label: SIP/gsm
mailbox:
context:
queuecontext:
extenvoicemail: *
privacy:
group:
email:
queuechannel:
originatechannel:
Does anything look out of place?
It finally works!
Why is it not working with the base script? Is it a version problem (mysql) ?