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.cfg` file to reflect the changes. So I might have
fop.cfg
buttons.cfg
So 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.
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.cfg` file to reflect the changes. So I might have
fop.cfg
user=1991:1991:all
buttons.cfg
[SIP/123]
type=extension
extension=1991
context=from-internal
label=123
So 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.
Comments
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:
View Post 1205
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,