[asterisk-users] Question about queues and the definition and agents
Paul Hales
pdhales at optusnet.com.au
Sun Jan 13 19:02:01 CST 2008
Maybe ADDQUEUEMEMBER(queue1|${CALLERID(num)) is closer to what you are
looking for....or ADDQUEUEMEMBER(queue1) - without the pipe...
PaulH
On Sun, 2008-01-13 at 18:17 +0100, Stefan Guenther wrote:
> Paul wrote
> >
> >;Pause/unpause Queue
> >exten => 424,1,PauseQueueMember(|SIP/${CALLERID(num)})
> >exten => 424,2,Playback(unavailable)
> >exten => 424,3,Hangup
> >exten => 425,1,UnPauseQueueMember(|SIP/${CALLERID(num)})
> >exten => 425,2,Playback(available)
> >exten => 425,3,Hangup
> >
> Following your suggestion and a number of postings and articles I have
> configured the following:
>
> exten => 6662,1,ADDQUEUEMEMBER(queue1|)
> ;exten => 6662,1,ADDQUEUEMEMBER(queue1|SIP/${ID${CALLERID(num)}}@local)
> exten => 6662,2,HANGUP()
>
> When I now call 6662 and then enter "show queues" in the cli, I get:
>
> queue1 has 0 calls (max unlimited) in 'rrmemory' strategy (0s
> holdtime), W:0, C:0, A:0, SL:0.0% within 60s
> Members:
> SIP/sguenther (dynamic) (Unavailable) has taken no calls yet
> No Callers
>
> Why is the agent unavailable and which context would asterisk use to
> call the agent?
>
> Here's the output of the login:
>
> -- Executing [6662 at local:1] AddQueueMember("SIP/sguenther-08202ac8",
> "queue1|") in new stack
> -- Executing [6662 at local:2] Hangup("SIP/sguenther-08202ac8", "") in new
> stack
> == Spawn extension (local, 6662, 2) exited non-zero on
> 'SIP/sguenther-08202ac8'
>
>
> Thanks for your help,
>
> Stefan
More information about the asterisk-users
mailing list