Hide offline extensions
-
-
-
-
-
-
-
-
-
-
Found it in manager.
Do I still have to alter operator.css?
Cause changing the setting in manager only won't have an effect.And to add to that, non of the changes I make under settings in FOP2 seem to have an effect. What could be wrong?
I tried warn close, warn hangup, hide unregistered, etc. -
Maybe you are referring to presence.js? In that case, version 2.30 presence.js does not mention any configuration variable as before. Your presence.js should not include any of those config settings, or they will override what you set via Manager.
Check if the changes you made via FOP2 Manager 'stick'. Do they remain in the value you set after refreshing the page? Perhaps you have a permission issue with the file /usr/local/fop2/fop2_settings.db, that should be writable by the web server user.
-
The changes stick with FOP2 manager, they are still there after refreshing the page, but they don't have any effect.
Is there a way to check for errors whenever writing into /usr/local/fop2/fop2_settings.db fails?
On my HA system I have a c- option in sysconfig to copy changes to /etc/asterisk/fop2. -
If changes 'stick', then you do not have issues with permissions. Check that you do not have any preferences set in /var/www/html/fop2/js/presence.js. If you do have them, then they will override whatever you set via web gui. The latest version presence.js does not include any settings, just the options for presence changes, queue penalties and commented section for pauses/reasons, but not other var XXX=YYY setting.
-
This is how my /var/www/html/fop2/js/presence.js looks like. I guess there are no preference settings in there.
Hm.. what else could be the problem?var language = 'en';
var applicationTitle = 'Flash Operator Panel 2';var presence = new Object();
presence[''] = '';
presence['Do not Disturb'] = '#FF8A8A';
presence['Out to lunch'] = '#57BCD9';
presence['Break'] = '#6094DB';
presence['Meeting'] = '#CDD11B';/* Uncomment the following to enable pause menu with reasons
//
var pauseReasons = new Object();
pauseReasons['Break'] = 1;
pauseReasons['Lunch'] = 2;
*//* Uncomment the following to enable queue penalty set
//
var queuePenalties = new Object();
queuePenalties['Low'] = 2;
queuePenalties['Medium'] = 1;
queuePenalties['High'] = 0;
*/var availLang = new Object();
availLang['ca'] = 'Català';
availLang['cr'] = 'Hrvatski';
availLang['da'] = 'Dansk';
availLang['de'] = 'Deutsch';
availLang['he'] = 'עברית';
availLang['el'] = 'Ελληνικά';
availLang['en'] = 'English';
availLang['es'] = 'Español';
availLang['fr_FR'] = 'Francais';
availLang['hu'] = 'Magyar';
availLang['it'] = 'Italiano';
availLang['nl'] = 'Dutch'
availLang['pl'] = 'Polski';
availLang['pt_BR'] = 'Português';
availLang['ru'] = 'Русский';
availLang['se'] = 'Svenska';
availLang['tr'] = 'Türkçe';
availLang['zh'] = '简体中文';
var lang = new Object(); -
And by the way my settings file is called fop2settings.db, and not fop2_settings.db. Not sure if this is relevant.
I found that my fop2_settings.db file in /usr/local/fop2 was differnet from
DB Connection fail: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database -
Filename is fop2settings.db in /usr/local/fop2 (it was a typo on my part before).
If you see that error, then any change you make in the GUI should not persist. And fixing that requires to set proper permissions and ownership to the fop2settings.db file, try
chown asterisk.asterisk /usr/local/fop2/fop2settings.db
chmod g+w /usr/local/fop2/fop2settings.db -
Sorry I accidently pressed enter before without finishing my post.
When I do a:
diff -r /usr/local/fop2 /etc/asterisk/fop2/, I get:
Binary files /usr/local/fop2/fop2settings.db and /etc/asterisk/fop2/fop2settings.db differMaybe manager is writing the changes into one file and reading from the other?
The general error:8 I got when I copied fop2settings from /etc/asterisk/fop2 into /usr/local/fop2
-
I answered in another post, fop2settings.db that counts in your setup is the one in /etc/asterisk/fop2, be sure it is owned by asterisk, that asterisk user can write to it, and also modify the pagebs.fop2settings.php page to point to that directory instead of /usr/local/fop2
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login