Digium Phone Status & Presence

When setting DND or Away on a D70, it does not update the astDB and therefore does not reflect presence in fop2. Would I need to create a custom app in order to get the behavior of also setting presence in astDB?

Howdy,

If you’re using DPMA, then the presence is maintained in AstDB. If you’re not using DPMA, then you don’t get the full status app, and you only get available and DND, where DND returns a 486 when the phone is called.

See the /CustomPresence/{id} key.

e.g.:

pbx*CLI> database show
/CustomPresence/101                               : available,,              
/CustomPresence/102                               : available,,              
/CustomPresence/103                               : available,,              
/CustomPresence/104                               : available,,   

I am using DPMA, and I do see that now that you have me looking in the right direction.

Still working on my end-goal, but your answer did help.

Thanks.

Howdy,

Yay :smile:

For more information about that, see:

wiki.asterisk.org/wiki/display/ … erPresence

When toggling DND, is it also creating an AMI event? That is what I am looking for.

Sorry, I see that is in the Wiki.

Howdy,

No worries.

That’d be:

wiki.asterisk.org/wiki/display/ … tateChange

e.g.

Event: PresenceStateChange
Privilege: call,all
Presentity: CustomPresence:104
Status: dnd
Subtype: Office Closed
Message: stuff