Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jit

Pages: [1]
1
Scripting QueueMetrics / Re: Retrieving audio files
« on: April 12, 2010, 17:48:55 »
No there is no easy way - the only thing it to get the path yourself.
 

So not even a way to reformat that URL into one that I can push to a browser window for authentication before playback (in the browser window?). Ugh, that's really really frustrating. I can't be the only person who's ever looked at your API and thought "QM.findAudio" meant that after I found the audio that I could actually do something with it.

I guess it is what it is. I hope that you consider adding some kind of access to the audio files - either remote retrieval of the file through the API or at least a way to open a specific call in a browser window - in a future version.

2
Scripting QueueMetrics / Re: Retrieving audio files
« on: April 08, 2010, 23:31:56 »
I am sorry - can you give me an example of an URL that is returned to you?


here's one:

Code: [Select]
qm_popup_streamAudio.do?/var/spool/asterisk/monitor/q400-20100408-055427-1270731259.187308.WAV

3
Scripting QueueMetrics / Re: Retrieving audio files
« on: March 30, 2010, 05:15:40 »
The problem lies in the statelessness of your requests - it would be a huge security problem for QM if users could retrieve any file just by asking for it.

Of course- I wouldn't expect you to be able to retrieve audio files with no security consideration. I'm just surprised there is no secure way to retrieve the audio file either 1) with some kind of token from the API, or 2)user name & password passed in the URL, 3) via an XML-RPC call, returning the binary file, or 4) a URL that could be pushed to a browser that would authenticate the user first before presenting the audio. I'd construct a URL based on the existing system when you click-through from the list of calls, but it seems to rely on the number of the item in the list rather than the actual call ID. The solution of mounting the remote storage, if I can even get my vendor to assist me with that, seems far less secure and creates a whole raft of additional problems. Is that how others are using this function of the API?

4
Scripting QueueMetrics / Re: Retrieving audio files
« on: March 23, 2010, 17:24:45 »
I'm trying to retrieve the files to a machine that is remote from the Asterisk/QM machine - I don't have access to the filesystem.

There's no way to retrieve the audio files using the URL? Then what's the point of being able to retrieve the URL through the API? I'd even settle for popping open a browser window to play the file, but don't see any method to do that either.

5
Scripting QueueMetrics / Retrieving audio files
« on: March 22, 2010, 22:42:33 »
I'm using the XML-RPC interface (via python) to retrieve the URL of an audio file for a given call ID. That works fine. The problem is that when I try to retrieve the audio file (using cURL) for local playback I simply get a message "Illegal file access: user is missing the correct grant".

How can I pull these audio files for playback? Do I need to pass my username/password somehow in the URL requesting the audio file? Thanks.

6
Scripting QueueMetrics / Server load for realtime stats?
« on: January 08, 2010, 18:22:43 »
I'm pulling the queue status with the QM.realtime calls, but I'm wondering how much of a load I might be putting on my server.

Is there practical difference between having, say, five browsers watching the QM realtime monitoring page and five clients hitting the QM.realtime API every few seconds?

I'm assuming that there's a difference in performance hit between the realtime calls and some of the other more computational reporting.

7
Scripting QueueMetrics / Re: Constructing a raw HTML request
« on: January 08, 2010, 18:14:27 »
What is 4D? it is strange that there is no XML-RPC library for it.....
www.4d.com

I've got plenty of tools to handle the communication, but you were right that the Python samples were the easiest path. I'm just one of those people who likes to do things the hard way sometimes.

8
Scripting QueueMetrics / Re: Constructing a raw HTML request
« on: January 07, 2010, 19:58:11 »
Using 4D. I got it working with the Python code, so I can see what you mean. The parsing is a little complicated.

Thanks for the support.  :)

9
Scripting QueueMetrics / Re: Scripting from another machine?
« on: January 07, 2010, 06:07:58 »
OK. Is the name of the robot user significant? Does it need to be "robot"? Do I need to do anything other than to assign them to the class "ROBOT" (and verify that the ROBOT class includes the "ROBOT" key).

10
Scripting QueueMetrics / Scripting from another machine?
« on: January 06, 2010, 19:30:39 »
Do I need to do anything special to run a script on a remote machine (not on the box running QM)? Aside from, of course, using a complete URL to point to the QM server?

I have been trying to use one of the scripts posted here on the forum (qmon.php). I have a user setup ("myremote") in the class ROBOTS and I'm using the correct password, but keep getting a message that the connection was refused.

Thanks.

11
Scripting QueueMetrics / Constructing a raw HTML request
« on: December 30, 2009, 03:56:24 »
I'm looking to communicate with the XML-RPC from an environment other than the ones with demo code, a non-web one. I'm more familiar with making SOAP calls, but my understanding of what's happening here is that we're simply building an XML request, sending it to QM, and then parsing the XML response.

Is there any documentation anywhere as to what a raw HTML request to the XML-RPC service would look like?

Pages: [1]