Queue Login Problem

Hi there,

I tryed to use this software called OrdelyQ. Im following all steps from the main site http://www.orderlyq.com/asterisk-queues-tutorial-advanced/#agents.

All works fine perhaps i cant log in on individual queues with my queue numeric names like this example:

[macro-queue-login]
exten => s,1,Set(agent=${ARG1})
exten => s,n,Set(queue=${ARG2})
exten => s,n,NoOp(Queue login agent ${agent} to queue ${phone});
exten => s,n,VMAuthenticate(${agent}) ;comment out this line to disable password authentication.
exten => s,n,AddQueueMember(${queue},Local/${agent}@main);
exten => s,n,Playback(agent-loginok)

[macro-queue-logout]
exten => s,1,Set(agent=${ARG1})
exten => s,n,Set(queue=${ARG2})
exten => s,n,NoOp(Queue logout agent ${agent} from queue ${phone});
exten => s,n,VMAuthenticate(${agent}) ;comment out this line to disable password authentication.
exten => s,n,RemoveQueueMember(${queue},Local/${agent}@main);
exten => s,n,Playback(agent-loggedoff)

[main]
;…

exten => _3XXX1,1,Answer
exten => _3XXX1,n,Read(Agent,Agent-user)
exten => _3XXX1,n,Macro(queue-login,${Agent},${EXTEN:0:4})
exten => _3XXX1,n,Hangup

exten => _3XXX11,1,Answer
exten => _3XXX11,n,Read(Agent,Agent-user)
exten => _3XXX11,n,Macro(queue-logout,${Agent},${EXTEN:0:4})
exten => _3XXX11,n,Hangup

could someone explain me what is wrong and how to fix it?, im a beginner

The Macro() application is deprecated in newer versions of Asterisk.

You’re not wrong - the Macro() function is deprecated, but FreePBX still has a lot of Macro() calls and will be supported here for a little while. @rkgupta or @lgaetz might be able to speak to this definitively.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.