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:[EMAIL PROTECTED],${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 [EMAIL PROTECTED]:1] SetMusicOnHold("SIP/2404-081872e0", 
"slimp3") in new stack
    -- Executing [EMAIL PROTECTED]:8] Macro("SIP/2404-081872e0", 
"queue-call|dispatch") in new stack
    -- Executing [EMAIL PROTECTED]:2] BackGround("SIP/2404-081872e0", 
"pls-wait-connect-call") in new stack
    -- <SIP/2404-081872e0> Playing 'pls-wait-connect-call' (language 'se')
    -- Executing [EMAIL PROTECTED]:3] WaitExten("SIP/2404-081872e0", "0.3") in 
new stack
    -- Timeout on SIP/2404-081872e0, continuing...
    -- Executing [EMAIL PROTECTED]:5] Queue("SIP/2404-081872e0", "dispatch") in 
new stack
    -- Started music on hold, class 'slimp3', on channel 'SIP/2404-081872e0'
    -- Executing [EMAIL PROTECTED]:1] Macro("Local/[EMAIL PROTECTED],2", 
"queue-call|dispatch|") in new stack
    -- Executing [EMAIL PROTECTED]:2] BackGround("Local/[EMAIL PROTECTED],2", 
"pls-wait-connect-call") in new stack
    -- <Local/[EMAIL PROTECTED],2> Playing 'pls-wait-connect-call' (language 
'en')
    -- Local/[EMAIL PROTECTED],1 answered SIP/2404-081872e0
    -- Stopped music on hold on SIP/2404-081872e0
    -- Executing [EMAIL PROTECTED]:3] WaitExten("Local/[EMAIL PROTECTED],2", 
"0.3") in new stack
    -- Timeout on Local/[EMAIL PROTECTED],2, continuing...
    -- Executing [EMAIL PROTECTED]:5] Queue("Local/[EMAIL PROTECTED],2", 
"dispatch") in new stack
    -- Started music on hold, class 'slimp3', on channel 'Local/[EMAIL 
PROTECTED],2'
    -- Executing [EMAIL PROTECTED]:2] Queue("Local/[EMAIL PROTECTED],2", 
"dispatch|t") in new stack
    -- Started music on hold, class 'slimp3', on channel 'Local/[EMAIL 
PROTECTED],2'
    -- Stopped music on hold on Local/[EMAIL PROTECTED],2
    -- <Local/[EMAIL PROTECTED],2> Playing 'queue-thereare' (language 'en')
    -- <Local/[EMAIL PROTECTED],2> Playing 'digits/2' (language 'en')
    -- <Local/[EMAIL PROTECTED],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

Reply via email to