QueueMetrics forum

QueueMetrics => Running QueueMetrics => Topic started by: gopal2k on September 09, 2013, 10:51:31

Title: Agent List mapped to Queue
Post by: gopal2k on September 09, 2013, 10:51:31
Hi,

Can I export the data of agents mapped to certain queues directly from Queuemetrics database?

If not where I can find those data?

Regards,
Gopal
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 10, 2013, 12:16:49
Do you want to get a list of queue mappings for some agent as they are now, or the set of queues an agent was working on at a specific point in time?
Both things can be done though the XML-RPC API.
Title: Re: Agent List mapped to Queue
Post by: gopal2k on September 10, 2013, 13:29:19
I would like to get a list of queue mappings for some agent as they are now created in the QM.

Regards,
Gopal
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 11, 2013, 13:42:32
There is a method that does just that: http://queuemetrics.com/manuals/QM_XML-RPC_manual-chunked/ar01s03.html#_the_method_qm_getqueuesforagent

Title: Re: Agent List mapped to Queue
Post by: gopal2k on September 12, 2013, 16:10:06
So I have write some XML script?

Regards,
Gopal
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 17, 2013, 20:01:23
Yes you have to, I fear.
Title: Re: Agent List mapped to Queue
Post by: gopal2k on September 19, 2013, 07:37:49
Any examples are there? Just as a startup..!
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 20, 2013, 15:40:11
The XML-RPC manuals has a few examples of how to use the interface from different environments. Which language would you like?

Title: Re: Agent List mapped to Queue
Post by: gopal2k on September 23, 2013, 09:49:20
Sorry for my delayed reply... basically I think I can start up with PHP, also where to enable XML-RPC?

Thanks
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 24, 2013, 10:16:54
Maybe this can help you - we have the XmlRpc browser that is written in PHP. Have a look at how data is processed.
See https://github.com/Loway/QueueMetricsXmlRpcBrowser
Title: Re: Agent List mapped to Queue
Post by: gopal2k on September 24, 2013, 12:47:30
I configured and able to see some stats report, I tried to use Method: QM.findaudio, but in the Audiofiles tab I get
Response block: AudioFiles
--Block not found--

I tried specifying Asterisk IP address in server field, proivided Unique ID, Queue and date & time.

Regards
Title: Re: Agent List mapped to Queue
Post by: QueueMetrics on September 26, 2013, 09:55:03
The most common scenario is taht the date and time and the queue-id were typed wrong. if QM can find the audio from the GUI, it's exactly the same code that is run.