AgentLogin() On The Multiple Servers?
Hello,
Let say all the SIP devices will be registered on the proxy like kamailio.
Agent is a member of Support and Billings Queues on the asterisk servers. Support queue on “Server A” and Billings Queue on “Server B” for example. This will be done via RealTime Queue.
I want Agent to dial 1234 on a sip device and it will prompt to enter a pin number to Login via AgentLogin(). Agent will stay on the line after logged in and wait for the calls.. I understand how this work from single asterisk server.
But how is it possible for Agent to stay on the line from multiple asterisk servers or how it should be done? If agent dial 1245 for logging in – does kamailio randomly need to pink any server and then prompt for Pin via AgentLogin()?
Thanks
2 thoughts on - AgentLogin() On The Multiple Servers?
You can achieve this by choosing one of asterisk server for pins collection on extension 1234. When any member/extension dial that extension you need to call a script that will make AMI connection on all servers and do AgentLogin/QueueAdd Request. You need to do ami login and call the AMI request QueueAdd on all server where you have define different queues. It will make the agent login on all Queue servers. Below is snippet for making QueueAdd request from AMI.
—————————————
You say AgentLogin() must apply to all servers? but agent will be already on the line from a single server.
When agent stays on the line after logging in, that channel will be only on one Asterisk server? If there is an incoming call getting routed on another Asterisk server, that agent and the incoming call will need to be bridged together?