Page 1 of 1

Digium Phone Status & Presence

PostPosted: Fri May 29, 2015 9:20 am
by mpiontek
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?

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 8:18 am
by malcolmd
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.:

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

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 1:49 pm
by mpiontek
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.

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 1:52 pm
by malcolmd
Howdy,

Yay :)

For more information about that, see:

https://wiki.asterisk.org/wiki/display/ ... erPresence

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 1:55 pm
by mpiontek
When toggling DND, is it also creating an AMI event? That is what I am looking for.

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 1:56 pm
by mpiontek
Sorry, I see that is in the Wiki.

Re: Digium Phone Status & Presence

PostPosted: Mon Jun 01, 2015 2:03 pm
by malcolmd
Howdy,

No worries.

That'd be:

https://wiki.asterisk.org/wiki/display/ ... tateChange

e.g.

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