FreePBX Presence Refresh Issues
Hello,
I have set up a new Trixbox 2.8.0.4 server which is upgraded to run FreePBX 2.10.1.2. The problem is that when I set DND, either through FOP, ARI, or the phone, I need to manually refresh the FOP page (F5) before it will update the user's button with the DND status. All the other custom presences in FOP have the same issue; you can set these statuses, but need to manually refresh the page before they show up.
I have run generate_override_contexts.pl -w and have confirmed the proper database values are being set in and out of FOP. I have also confirmed that when setting DND outside of FOP the proper user events are being sent in the asterisk logs.
All other call events are showing up properly in FOP, so this appears to be strictly related to the visual refresh of the presence display on the user button.
Any assistance would be appreciated, because as far as I can tell from logs, etc, this should be working.
Thanks,
I have set up a new Trixbox 2.8.0.4 server which is upgraded to run FreePBX 2.10.1.2. The problem is that when I set DND, either through FOP, ARI, or the phone, I need to manually refresh the FOP page (F5) before it will update the user's button with the DND status. All the other custom presences in FOP have the same issue; you can set these statuses, but need to manually refresh the page before they show up.
I have run generate_override_contexts.pl -w and have confirmed the proper database values are being set in and out of FOP. I have also confirmed that when setting DND outside of FOP the proper user events are being sent in the asterisk logs.
All other call events are showing up properly in FOP, so this appears to be strictly related to the visual refresh of the presence display on the user button.
Any assistance would be appreciated, because as far as I can tell from logs, etc, this should be working.
Thanks,
Comments
Trixbox has a bug where the "user" manager permission is not honored. You must edit /etc/asterisk/manager.conf and be sure you have "all" both in the read and write lines.
The DND state is propagated using Asterisk Manager User Events, you can only see those in trixbox when having "hud" or "all" permissions. (this is a trixbox bug, normal asterisk is not affected).
Best regards,
Sorry, I somehow missed the response to this post.
I have set the read/write to "all" and it doesn't help. I have also tried "all,hud" for kicks and it didn't work either. To confirm I checked the user rights directly in CLI and see:
And actually, after further studying the issue, I have to restart the FOP2 service, not just refresh the page, to get it to update the status when I set DND via phone or ARI.
In CLI logs, the following user event is getting set: Which after scanning through the FOP2 freePBX overrides is correct and I have verified that it is following the overide commands and not the native FreePBX ones.
Finally, I checked the FOP2 logging (verbosity 511) as best as I could given how verbose it is, and I get the following when I set DND:
It carries on for a bit before and after that, but those parts seem more with the handling of the call display on the button and don't appear to relate to DND. Really not sure why it isn't working or why I would have to restart the FOP2 service to display presence changes via phone/ARI, but yet changes via FOP2 directly work fine.
Best regards,