QueueMetrics forum
QueueMetrics => Running QueueMetrics => Topic started 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
-
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.
-
I would like to get a list of queue mappings for some agent as they are now created in the QM.
Regards,
Gopal
-
There is a method that does just that: http://queuemetrics.com/manuals/QM_XML-RPC_manual-chunked/ar01s03.html#_the_method_qm_getqueuesforagent
-
So I have write some XML script?
Regards,
Gopal
-
Yes you have to, I fear.
-
Any examples are there? Just as a startup..!
-
The XML-RPC manuals has a few examples of how to use the interface from different environments. Which language would you like?
-
Sorry for my delayed reply... basically I think I can start up with PHP, also where to enable XML-RPC?
Thanks
-
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
-
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
-
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.