Asterisk 1.6 AddQueueMember not working

Hi,

First time posting.
I’m running asterisk 1.6, recently migrated from 1.4. For a long time I have used AgentCallbackLogin to Login some “virtual agents”, now I’m trying to use AddQueueMember but isn’t working. I was able to LogIn all Agents just calling a number but really don’t care if now have to done one by one or something else.

Is there something wrong with the syntax?
Queue=5000
Agent=101

[agentlogin]
exten => 2000,1,Answer
exten => 2000,n,AddQueueMember(5000,Local/101@from-internal)
exten => 2000,n,Playback(agent-loginok)
exten => 2000,n,Hangup

ip-10-0-0-58*CLI> show agents
101 (101) not logged in (musiconhold is ‘default’)
102 (102) not logged in (musiconhold is ‘default’)
103 (103) not logged in (musiconhold is ‘default’)
3 agents configured [0 online , 3 offline]

Working AgentCallbackLogin on Asterisk 1.4
[agentlogin]
exten => 2000,1,NoOp(Logging Agents)
exten => 2000,n,AgentCallbackLogin(150,s,150@from-internal)
exten => 2000,n,NoOp(All Logged)
exten => 2000,n,Hangup()

Thanks in advance
Regards

Both versions are about half a decade beyond end of life.

AgentCallbackLogin was deprecated in either 1.4 or 1.6.

I know that but unfortunately can’t upgrade it.
Could you please give me any suggestion?

I tried running AgentLogin, agent is logged for a few second, after that it logout automatically.

AgentLogin works on 1.6.1.0. I presume it works on the rest of 1.6.x.x.

AgentCallbackLogin appears to have been removed by 1.6.1.0.

What messages are you getting.

Thanks David for your response.

I’m able lo Login running AgentLogin(101) but if call is ended agent is log out. I want to be able to close the call as I did running AgentCallbackLogin and keep all agents Logined always because they are “virtual agents”.

Here the output:

Executing [2000@from-internal:1] AgentLogin(“SIP/150-0000001d”, “101”) in new stack
– <SIP/150-0000001d> Playing ‘agent-loginok’ (language ‘en’)
– Started music on hold, class ‘default’, on SIP/150-0000001d
== Agent ‘101’ logged in (format ulaw/ulaw)
– Stopped music on hold on SIP/150-0000001d
== Agent ‘101’ logged out
== Spawn extension (from-internal, 2000, 1) exited non-zero on ‘SIP/150-0000001d’

I believe you can configure it so that a key press is used to hang up the caller.

We used it with AMI, so the agent never touched the phone keypad after logging in.

I think you’re not getting my point, just want to force Agent to be Logined running AddQueueMember. Is there a way? Really don’t care about how will agent receive the calls.