AgentLogin() Asterisk Version 18.10.0~dfsg+~cs6.10

Dear.

I’m using an Asterisk 18, and I need to configure agents to log into the service queues.

Here’s the configuration I’m using:

agents.conf:
agents
autologoff=15
ackcall=yes
acceptdtmf=##
;
8802
fullname=Arthur

queues.conf
[test]
; Basic queue settings
musicclass=default
strategy=rrmemory
joinempty=yes
leavewhenempty=no
ringinuse=no
timeout=15
setinterfacevar=yes
setqueuevar=yes

extensions.conf
exten => **11,1,Answer()
same => n,Set(soundpath=/etc/asterisk/sounds)
same => n(digite_id),Background(${soundpath}/digite-id)
same => n,Read(AGENTID)
same => n,AgentLogin(${AGENTID})
same => n,Hangup()

It turns out that I can log in normally, according to the log:

[Oct 15 12:03:20] – <SIP/8802-0008a353> Playing ‘agent-loginok.gsm’ (language ‘en’)
[Oct 15 12:03:20] NOTICE[1861955][C-00024290]: translate.c:603 ast_translate: 32004 lost frame(s) 32005/0 (gsm@8000)->(slin@8000)->( alaw@8000)
[Oct 15 12:03:20] > 0x7fec9c1dcf30 – Strict RTP learning complete - Locking on source address 10.204.0.9:4028
[Oct 15 12:03:22] == Agent ‘8802’ logged in (format alaw/alaw)
[Oct 15 12:03:22] – Channel SIP/8802-0008a353 joined ‘holding_bridge’ agent_hold-bridge <64a16bee-69f7-4ee3-94ef-ef30b42544e4>
[Oct 15 12:03:22] – Started music on hold, class ‘default’, on channel ‘SIP/8802-0008a353’

However, I am not logged into any queue, where do I configure it so that the logged-in agent stays in the queue?

I hear that agentLogin() has been deprecated, and we can just use AddQueueMember(), RemoveQueueMember().

When I log in with AgentLogin, I hear the MOH, but when I dial the queue, no calls drop.

I thank!

You might try adding in your queues.conf file [test] section:

member => Agent/8802

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