Agents/Queue

Hey,

I hope you guys are able to help me solving my problem using a queue with agents (I’m a noob who just started using asterisk).
At the moment my code is the following:

extensions.conf:

exten => 999,1,Queue(support)

exten => 107,1,AgentLogin(007)
exten => 108,1,AgentLogin(008)
exten => 109,1,AgentLogin(009)

exten => 1007,1,system(asterisk -rx "agent logoff agent/007")
exten => 1008,1,system(asterisk -rx "agent logoff agent/008")
exten => 1009,1,system(asterisk -rx "agent logoff agent/009")

exten => 140,1,setLanguage(en)
exten => 140,n,Ringing
exten => 140,n,Wait(2)
exten => 140,n,Queue(Support)
exten => 140,n,Hangup

agents.conf

[agents](!)
autologoff=30
ackcall=no
musiconhold => agent

[007](agents)
fullname=Tim

[008](agents)
fullname=Tom

[009](agents)
fullname=Jack

and queues.conf

music=supportqueue
context=customerservice
strategy=ringall
joinempty=yes
leavewhenempty=yes

member => Agent/007
member => Agent/008
member => Agent/009

The problems about it are the following:
–> calling 999 does not send me into the queue. Nothing happens even though there are agents who are logged in(exten => 999,1,Queue(support) ; this is a stupid attempt I made).
–> 1007 does not log the agent off (exten => 1007,1,system(asterisk -rx “agent logoff agent/007”))

My OS: CentOS 6.6 - 32 Bit
Asterisk version: 13.2

Thank you for your help!! :smile:

There is no [support] in your queues.conf.

Why not just hangup the phone to log the agent off. My guess is that you don’t have /usr/sbin in the path when system is run.

Thank you for your reply david.

Now I added “[support]” to my queues.conf.
But I still cannot talk/connect to a logged in agent.
When I try calling 999, while an agent is logged in, the following code appears:

agent logging in:

== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [107@from-internal:1] AgentLogin("SIP/332-0000000b", "007") in new stack [Feb 25 08:53:39] NOTICE[23688]: res_hep.c:418 hep_queue_cb: Unable to send packet: Address Family mismatch between source/destination > 0xa73fcb8 -- Probation passed - setting RTP source address to 192.1.202.228:9016 -- <SIP/332-0000000b> Playing 'agent-loginok.ulaw' (language 'en') == Agent '007' logged in (format ulaw/ulaw) -- Channel SIP/332-0000000b joined 'holding_bridge' agent_hold-bridge <05173321-12b6-4e92-afd8-6dbaff64e601> -- Started music on hold, class 'default', on channel 'SIP/332-0000000b' [Feb 25 08:53:44] NOTICE[23688]: res_hep.c:418 hep_queue_cb: Unable to send packet: Address Family mismatch between source/destination [Feb 25 08:53:44] NOTICE[23688]: res_hep.c:418 hep_queue_cb: Unable to send packet: Address Family mismatch between source/destination

trying to call 999:

== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [999@from-internal:1] Queue("SIP/333-0000000c", "support") in new stack -- Started music on hold, class 'default', on channel 'SIP/333-0000000c' [Feb 25 08:54:28] WARNING[23798][C-0000000c]: channel.c:5950 ast_request: No channel type registered for 'Agent' [Feb 25 08:54:28] WARNING[23798][C-0000000c]: channel.c:5950 ast_request: No channel type registered for 'Agent' [Feb 25 08:54:28] WARNING[23798][C-0000000c]: channel.c:5950 ast_request: No channel type registered for 'Agent' -- Stopped music on hold on SIP/333-0000000c -- Auto fallthrough, channel 'SIP/333-0000000c' status is 'UNKNOWN'

Furthermore, I checked the path /usr/sbin and I have a lot of files inside of it. :smile:

Oh, I did not know that this is enough for logging off (I thought calling 1007 is necessary)! :smiley:

Thank you for any further help!!!
I appreciate it!

res_hep.c is too recent for me to help… I don’t understand how you are getting AgentLogin registered but Agent rejected as a channel technology. I’m fairly sure it is case insensitive match.

Thank you for your help!

My problem was that instead of using the numbers 331-333, which are my telephone numbers, I used 007-009.
Maybe this will help someone else in the future!