Force FOP to reload config
-
Hi, I am trying to integrate FOP2 into an existing asterisk PBX web ui management system.
The system allows for hotdesking by mapping users extensions to the device they log in to.I have been able to match this setup in FOP2 by modifying the
buttons.cfgfile to reflect the changes. So I might havefop.cfg
user=1991:1991:allbuttons.cfg
[SIP/123] type=extension extension=1991 context=from-internal label=123So my question is is this the best way to do what I need, and if not what is? And second is there a way to get fop2_server to reload the config file without having to restart the deamon which closes all of the client sessions; ideally the changes updated in the config would be reflected in the clients UI.
Thank You.
-
Hi Joe,
You might want to read this post to adapt your hotdesking setup so it works with fop2 as is, with no modifications of config files:
If you want to reload the fop2 configuration you can send a HUP signal to it or reload asterisk, any of this actions will cause fop2 to reload the configuration files. Now, if the configuration involves changing button order (adding or removing a button, or changing its order in the config file), then the connected clientes will be forced to reload, otherwise they will get incorrect status. The latest fop2 version is better in this respect as it does not requires you to enter login credentials if you are properly logged and a config reload forces the page refresh.
Best regards,
-
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