Friday, October 26, 2007

[asterisk-users] Queue() problems

I've been trying to setup AddQueueMember() as a replacement
for the deprecated AgentCallbackLogin(), but I get _tree_
Queue()'s.

Massaged extensions.conf (can provide the original if need be):

----- s n i p -----
[default]
include => agent-loginout
include => local

; ----------
[agent-loginout]
exten => _100.,n,Macro(queue-addremove,I${EXTEN:3},dispatch,10)

[macro-queue-addremove]
exten => s,1,Goto(${ARG1:0:1})
exten => s,n(I),AddQueueMember(${ARG2},Local/${ARG1:1}@agents,${ARG3});
exten => s,n,Macro(queue-success,${ARG1:0:1})

[macro-queue-success]
exten => s,1,Playback(agent-loginok);

[local]
exten => 2403,1,Macro(switchboard-number,${EXTEN})

[macro-switchboard-number]
exten => s,n,Goto(switchboard-menu,s,1)

[switchboard-menu]
exten => s,1,SetMusicOnHold(slimp3)
exten => s,n,Macro(queue-call,dispatch)
exten => s,n,Goto(noqueue,s,1)

[macro-queue-call]
exten => s,1,Background(pls-wait-connect-call)
exten => s,n,WaitExten(0.3)
exten => s,n,Queue(${ARG1},,${ARG2})
----- s n i p -----

The output (very little massaging):

----- s n i p -----
-- Executing [s@switchboard-menu:1] SetMusicOnHold("SIP/2404-081872e0", "slimp3") in new stack
-- Executing [s@switchboard-menu:8] Macro("SIP/2404-081872e0", "queue-call|dispatch") in new stack
-- Executing [s@macro-queue-call:2] BackGround("SIP/2404-081872e0", "pls-wait-connect-call") in new stack
-- <SIP/2404-081872e0> Playing 'pls-wait-connect-call' (language 'se')
-- Executing [s@macro-queue-call:3] WaitExten("SIP/2404-081872e0", "0.3") in new stack
-- Timeout on SIP/2404-081872e0, continuing...
-- Executing [s@macro-queue-call:5] Queue("SIP/2404-081872e0", "dispatch") in new stack
-- Started music on hold, class 'slimp3', on channel 'SIP/2404-081872e0'
-- Executing [2403@switchboard-menu:1] Macro("Local/2403@switchboard-menu-3730,2", "queue-call|dispatch|") in new stack
-- Executing [s@macro-queue-call:2] BackGround("Local/2403@switchboard-menu-3730,2", "pls-wait-connect-call") in new stack
-- <Local/2403@switchboard-menu-3730,2> Playing 'pls-wait-connect-call' (language 'en')
-- Local/2403@switchboard-menu-3730,1 answered SIP/2404-081872e0
-- Stopped music on hold on SIP/2404-081872e0
-- Executing [s@macro-queue-call:3] WaitExten("Local/2403@switchboard-menu-3730,2", "0.3") in new stack
-- Timeout on Local/2403@switchboard-menu-3730,2, continuing...
-- Executing [s@macro-queue-call:5] Queue("Local/2403@switchboard-menu-3730,2", "dispatch") in new stack
-- Started music on hold, class 'slimp3', on channel 'Local/2403@switchboard-menu-3730,2'
-- Executing [2403@agents:2] Queue("Local/2403@agents-9897,2", "dispatch|t") in new stack
-- Started music on hold, class 'slimp3', on channel 'Local/2403@agents-9897,2'
-- Stopped music on hold on Local/2403@agents-9897,2
-- <Local/2403@agents-9897,2> Playing 'queue-thereare' (language 'en')
-- <Local/2403@agents-9897,2> Playing 'digits/2' (language 'en')
-- <Local/2403@agents-9897,2> Playing 'queue-callswaiting' (language 'en')
-- Hold time for dispatch is 0 minutes 30 seconds
----- s n i p -----

Please also note the two Background()'s, the first playing in 'se',
the other one in 'en'! And then all additional playing is in 'en'.

The bigest problem is that the phone which is logged in on as agent
doesn't ring and I don't hear the queue messages, only the MOH...


As seen, the config etc comes from the queues-with-callback-members.txt
file. But since I don't read AEL, I had to wing it...
Since nothing actually works, I must have missed something big...
--
arrangements DES class struggle Khaddafi Noriega North Korea president
killed ammonium Marxist Mossad Panama Iran Saddam Hussein domestic
disruption
[See http://www.echelonwatch.org/ for more about this]
http://www.theregister.co.uk/2001/09/06/eu_releases_echelon_spying_report/
http://www.aclu.org/safefree/nsaspying/23989res20060131.html#echelon

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: