[asterisk-users] how to determine if a SIP extension has DNDonoroff

Vieri rentorbuy at yahoo.com
Fri Sep 14 08:18:37 CDT 2007


--- Steve Langstaff <steve.langstaff at citel.com> wrote:

> The OP was asking whether they could update
> Asterisk's DND status
> 
> I think that they *actually* want to do some queue
> management based on
> the DND button of the (SIP) phone.
> 
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com 
> > [mailto:asterisk-users-bounces at lists.digium.com]
> On Behalf Of 
> > Joshua Colp
> > 
> > What do you mean modified/customized exactly?

As Steve pointed out, we need to manage queues where
the "strict" behavior is not exactly what we "want".

Here's a snippet of my earlier post:

--
Also, can this problem be handled the other way
around? Can Asterisk be configured somehow so that
whenever someone tries to call a particular extension
and the latter yields a 'response 486 "Do Not
Disturb"' then the DND field in AstDB for that
extension is updated?
This way the custom AGI script would only need to
execute "database show dnd"...

I need this particularly for queues that have the
strict option for joining and leaving.
In this situation a custom cron script adds and
removes members dynamically from the queues. The
problem I found is that "strict" behavior works "as
expected" when the agents, even if added via
AddQueueMember, are logged off or have their softphone
turned off but "fails" if they activate DND (either by
pressing the softphone DND button or dialing *78).
So a "solution" I am thinking of implementing is to
change this custom cron script and make it "detect" if
certain SIP extensions have DND on or not (either with
"database show dnd" or any other reliable method). If
it detects an activated DND then it will execute a
RemoveQueueMember(queuenum, sipnum). If it detects
that DND is off again then it will run an
AddQueueMember(queuenum, sipnum).



      ____________________________________________________________________________________
Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
http://tv.yahoo.com/ 




More information about the asterisk-users mailing list