Hello Michael,
You could try to achieve this functionality in dialplan by using the
applications AddQueueMember/RemoveQueueMember which are used to
dynamically add/remove queue members.
An example dialplan flow for agent login will be
1. get the SIP interface from which the agent is logging in (like
SIP/1234). You should be able to extract it from the CHANNEL variable
2. Ask for the agentid/code. Read the agentid/code and use an AGI to
authenticate the agent
3. Add the SIP interface to the queue using AddQueueMember
AddQueueMember(queuename,SIP/1234,,,,,)
You could have a similar dialplan for agent logout, which removes SIP
interface from the queue using RemoveQueueMember.
For the DND you could then use PauseQueueMember/UnpauseQueueMember applications.
Regards,
Deepesh
On Sat, Dec 25, 2010 at 7:01 PM, Michael <voip.question at gmail.com>
wrote:>
> Greetings and Merry Christmas,
>
> We're trying to implements a queue and agents login mechanism on our
Asterisk.
>
> After going over the documentation, we're unsure if we got it right.
>
> We wish to setup a "hotdesk" mechanism, where an agent comes to a
station with a PC & IP phone (that is defined as a sip friend user in
sip.conf), dials a certain number (agent login extension), enters his agent Id
and code, and from now on this phone serves as his. Then, when a call comes into
the queue he is associated to, if he is not on the line, the call would ring in
his phone and he'll be able to pick it up. He should also be able to set a
DND (if he needs a break).
>
> Is that possible?? From what we saw, the agents login works on a constantly
open line.
>
> Any help (and examples) would be highly appreciated.
>
> Thank you in advance,
>
> Michael
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> ? ? ? ? ? ? ? http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> ? http://lists.digium.com/mailman/listinfo/asterisk-users