----- Original Message -----
From: Keith Herrington
[mailto:keith.herrington@twistpair.com]
To:
asterisk-users@lists.digium.com
Sent: Mon, 31 Jul 2006 18:51:55
-0300
Subject: [asterisk-users] RemoveQueueMember isn't working.
> Hey guys. I've ran into a queue issue that I'm wondering if anyone
has
> seen.
> I am using FreePBX with Asterisk 1.2.9.1 svn rev 34876.
>
> I have setup a queue of 1082. I login to the Queue fine with 1082*, and
> receive calls via the queue. When I try to logout with 1082**, Alison
> says I was removed, but when I do a 'show queue 1082' I'm still
listed.
> If I use the CLI and go 'remove queue member Local/1409 from 1082'
it
> works as expected.
>
> Any ideas?
>
> This is CLI output:
> - Goto (macro-agent-del,s,5)
> -- Executing Set("SIP/1409-60bb", "CALLBACKNUM=1409")
in new stack
> -- Executing GotoIf("SIP/1409-60bb", "0?2)") in new
stack
> -- Executing RemoveQueueMember("SIP/1409-60bb",
> "1082|Local/1409@from-internal/n") in new stack
> -- Executing UserEvent("SIP/1409-60bb", "RefreshQueue")
in new stack
> -- Executing Wait("SIP/1409-60bb", "1") in new stack
> -- Executing Playback("SIP/1409-60bb",
"agent-loggedoff") in new stack
> -- Playing 'agent-loggedoff' (language 'en')
> -- Executing Hangup("SIP/1409-60bb", "") in new stack
> asterisk1*CLI> show queues
> 1082 has 0 calls (max unlimited) in 'ringall' strategy (0s
holdtime),
> W:0, C:0, A:0, SL:0.0% within 0s
> Members:
> Local/1409@from-internal (dynamic) (Unknown) has taken no calls yet
> No Callers
>
> asterisk1*CLI> remove queue member Local/1409@from-internal from 1082
> Removed interface 'Local/1409@from-internal' from queue
'1082'
> asterisk1*CLI> show queue 1082
> 1082 has 0 calls (max unlimited) in 'ringall' strategy (0s
holdtime),
> W:0, C:0, A:0, SL:0.0% within 0s
> No Members
> No Callers
>
> Here's a pastebin to my queues.conf and my extensions.conf sections:
> http://www.pastecode.com/2334
>
> Thanks in advance!
>
> Keith
You are removing a queue member that isn't in the queue ;)
You are adding Local/${CALLBACKNUM}@from-internal to the queue while you are
removing Local/${CALLBACKNUM}@from-internal/n
If you remove the /n it should then work.
Joshua Colp
Digium