I created queue 1000 and added the extension 111 to it. If I place a
call from another extension to queue 1000, extension 111 rings.
If I run adhearsion and make it join queue 1000, Asterisk enters in an
endless loop. A restart is then required.
I created a very simple dialplan to test this. Any help is greatly
appreciated.
extensions.conf (only my changes)
=========
[adhearsion]
exten => s,1,AGI(agi://
127.0.0.1)
exten => _.,n,Hangup
custom destination (my inbound route points to this destination)
=========
adhearsion,s,1
dialplan.rb
=========
adhearsion {
test_queue
}
components/test/test.rb
=========
methods_for :dialplan do
def test_queue
TestQueue.new(self).start
end
end
class TestQueue
def initialize(call)
@call = call
end
def start
@call.queue("1000").join!()
end
end
asterisk log (following lines repetead ad nauseum)
==========
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") in new stack
-- Executing [111@from-queue:2] Goto("Local/111@from-queue-e6af,
2", "|1") in new stack
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") in new stack
-- Executing [111@from-queue:2] Goto("Local/111@from-queue-e6af,
2", "|1") in new stack
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") in new stack
-- Executing [111@from-queue:2] Goto("Local/111@from-queue-e6af,
2", "|1") in new stack
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") in new stack
-- Executing [111@from-queue:2] Goto("Local/111@from-queue-e6af,
2", "|1") in new stack
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") in new stack
-- Executing [111@from-queue:2] Goto("Local/111@from-queue-e6af,
2", "|1") in new stack
-- Goto (from-queue,111,1)art now
-- Executing [111@from-queue:1] Set("Local/111@from-queue-e6af,2",
"QAGENT=111") i
--
Eduardo