Problem adding caller to Queue from Dialplan

Hello, I am trying to use the asterisk manager to make a call, and if it is a live person, add them to a queue. For some reason, when I try to add them to the queue, asterisk gets stuck in a never ending loop showing the following lines :

[code]

2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Goto (from-queue,5001,1)
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:1] Set(“Local/5001@from-queue-16b8,2”, “QAGENT=5001”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:2] Goto(“Local/5001@from-queue-16b8,2”, “|1”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Goto (from-queue,5001,1)
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:1] Set(“Local/5001@from-queue-16b8,2”, “QAGENT=5001”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:2] Goto(“Local/5001@from-queue-16b8,2”, “|1”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Goto (from-queue,5001,1)
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:1] Set(“Local/5001@from-queue-16b8,2”, “QAGENT=5001”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:2] Goto(“Local/5001@from-queue-16b8,2”, “|1”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Goto (from-queue,5001,1)
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:1] Set(“Local/5001@from-queue-16b8,2”, “QAGENT=5001”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:2] Goto(“Local/5001@from-queue-16b8,2”, “|1”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Goto (from-queue,5001,1)
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:1] Set(“Local/5001@from-queue-16b8,2”, “QAGENT=5001”) in new stack
[2009-09-20 17:56:06] VERBOSE[32557] logger.c: – Executing [5001@from-queue:2] Goto(“Local/5001@from-queue-16b8,2”, “|1”) in new stack[/code]

It just repeats that forever… If I call the queue manually from a softphone to the queue extension it works just fine. Another note is that when adding through my dialplan, it doesn’t play the welcome message either it just goes right to the background music, but then hangs.

Here is the code I am using to originate the call:


Action: Originate
Channel: SIP/Exel/5635087745
Context: bobbyDP
Priority: 1
Callerid: 3097369167
Timeout: 30000

Call comes in fine, I answer, it goes to hold music and repeats over and over.

Here is my dialplan:

[from-internal-custom]				
include => bobbyDP

[bobbyDP]
exten => s,1,NoCDR
exten => s,n,AMD
exten => s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
exten => s,n(mach),WaitForSilence(2500)
exten => s,n,Hangup
exten => s,n(humn),WaitForSilence(500)
exten => s,n,Queue(9001,t))
exten => s,n,Hangup

Here is my Queue settings:

[9001]
announce-frequency=0
announce-holdtime=no
autofill=no
eventmemberstatus=no
eventwhencalled=no
joinempty=yes
leavewhenempty=no
maxlen=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
retry=5
ringinuse=yes
strategy=ringall
timeout=15
weight=0
wrapuptime=0

I am using Asterisk 1.4.21.2 with FreePBX 2.6.0.RC2.1 on CentOS

If anyone could shed some light on what might be causing this I would be very greatful.

Thanks

Please supply the rest of the dialplan, in particular the [from-queue] context.

Hi

[quote]Action: Originate
Channel: SIP/Exel/5635087745
Context: bobbyDP
Priority: 1
Callerid: 3097369167
Timeout: 30000 [/quote]

wheres the rest ? IE the extension that you are connecting to ?

Ian