Trying to understand Presence
We use Digium D70 phones with FreePBX. I have been running FOP2 for a couple years now, and we'd like to start taking advantage of presence. What I'm learning is that the presence icon will change on FOP only if setting DND via a feature code. Presence does not update when selecting DND via the soft-key on the actual phone. Is it possible to have FOP2 recognize when DND is set directly on the phone? I do know that hints are created for DND, but I don't know that FOP2 uses hints.
Thanks you.
Thanks you.
Comments
FOP2 does not use hints for its presence box, it uses astdb entries for it. If you can program the phone to dial the FreePBX feature code, then it will update state. Otherwise it won't. I do not know if Digium phones can be programmed in that way. Does any hint changes on Asterisk itself when you press the dnd button on that phone? Are there any events triggered in asterisk AMI when doing so?
Best regards,
service fop2 stop
cd /usr/local/fop2
script capture.log
./fop2_server -X 1
AT this point log into FOP2 to see the panel, then try setting/unsetting DND with your phone, look at the screen to see if there is any related event when you press the button. Then
ctrl-C
exit
service fop2 start
AT this point you have the capture.log file to inspect in more detail if you want.. I do not know about DPMA and how it works.. if it talks directly to Asterisk with no way to alter behaviour, and it only sets/unset an astdb entry, then I guess you won't be seeing a related event reflecting that status change, making real time monitoring of that state just not possible.
Best regards,
Seems that FOP2 reflects when DND is activated, but not when it's deactivated. I will have to use the feature code to get FOP2 to reflect available again, and sometimes I have to use the feature code twice. I'm wondering if there are too many events for FOP2 to keep up?
FOP2 monitors asterisk only, it does not monitor nor control phones themselves. Many phones can be programmed so the DND button dials the feature code directly, in those cases, you only need to program the DND button on the phone and it will work as expected.
Unless DPMA allows you to inject some code in order to fire a manager event, then FOP2 won't notice a change when dnd is set or unset in your Digium phone.
Best regards,