[asterisk-users] queue issue

Danny Nicholas danny at debsinc.com
Wed Sep 2 08:30:15 CDT 2009


One way to do this would be to use hints and an AGI to control dialing.
Let's say you have extensions 100 and 101 and each staffer also has a cell
(555-1212 and 555-1213).  When you dial 100, you want to ring 100 and
555-1212 if both are available and the same with 101 and 555-1213.  This
snippet would do it:
- exten => s,1XX,Macro(ring-group,${EXTEN})
- exten => s,1XX,playback(vm-goodbye)
- exten => s,1XX,hangup
- [macro-ring-group]
- exten => s,1,AGI(checkhints.agi,${ARG1})
- exten => s,n,gotoif($["${LINESTAT}" = "BUSY"]?inuse)
- exten => s,n,Dial(SIP/${ARG1}&DAHDI/g1/${CELLLINE},60)
- exten => s,n,hangup
- exten => s,n(inuse),playback(line-in-use)
- exten => s,n,hangup

The AGI checks the hint for 100 or 101 and assigns CELLLINE to call the
cell.  If either is in use, LINESTAT is set to BUSY, otherwise set to AVAIL.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Paul Hales
Sent: Wednesday, September 02, 2009 2:16 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] queue issue


A situation where staff want a mobile and their SIP handset to share an
extension - but to make sure the mobile or SIP handset do not ring if
they are speaking on the other one...

PaulH


Lenz Emilitri wrote:
> It depends on what you want to do to people who are queued; if you
> want them to be queued, you create a queue with only one member, and
> have agents log on and log off as necessary; if you don't want callers
> to be queued, likely I would not use a queue but woul dial the agent
> straight.
> l.
> PS. this is quite an unusual requirement, what is it for? 
>
> 2009/9/1 Paul Hales <pdhales at optusnet.com.au
> <mailto:pdhales at optusnet.com.au>>
>
>
>     I have a _very_ specific situation where I need queues to work in
>     a very
>     specific manner - I need the queue to only accept one call at a time,
>     even though several phones are attached to it.
>
>     My memory tells me that queues might have even worked this way in the
>     distant past (pre 1.0)...but I am willing to be mistaken.
>
>     Is this even remotely possible?
>
>     PaulH
>
>
>
> -- 
> Loway - home of QueueMetrics - http://queuemetrics.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list