1
Running QueueMetrics / Re: Access permissions for files through qm_popup_streamAudio.do
« on: June 13, 2016, 13:21:38 »
Hi all,
I'm accesing audio files from rest interface.
I have a user with needed keys (CALLMONITOR etc) and the MasterKey.
I have used "queuemetrics/QmFindAudio/jsonStatsApi.do?id=XXXXXXXXXX" to find audio files and put their names and paths into string array to show them to the user, and when the user clicks on a file shown on a listview, then I use "queuemetrics/QmFindAudio/qm_popup_streamAudio.do?/var/spool/asterisk/monitor/XXXXXXXXX" to retrieve audio stream.
I'm receiving the error:
Illegal file access: the file is not in the list of allowed files.
I've used "/queuemetrics/qm_show_files.do" and the system shows me the following:
User has the CALLMONITOR key? true
Search path: /var/spool/asterisk/monitor/
.gsm files
.wav files
/var/spool/asterisk/monitor/q1000-20160609-012039-1465428039.244.wav
/var/spool/asterisk/monitor/q1000-20160609-050926-1465441766.284.wav
/var/spool/asterisk/monitor/q1000-20160609-050943-1465441783.286.wav
/var/spool/asterisk/monitor/q1000-20160609-050953-1465441793.288.wav
/var/spool/asterisk/monitor/q1000-20160609-013331-1465428811.254.wav
/var/spool/asterisk/monitor/qmfile.wav
.WAV files
What I'm doing wrong?
I'm accesing audio files from rest interface.
I have a user with needed keys (CALLMONITOR etc) and the MasterKey.
I have used "queuemetrics/QmFindAudio/jsonStatsApi.do?id=XXXXXXXXXX" to find audio files and put their names and paths into string array to show them to the user, and when the user clicks on a file shown on a listview, then I use "queuemetrics/QmFindAudio/qm_popup_streamAudio.do?/var/spool/asterisk/monitor/XXXXXXXXX" to retrieve audio stream.
I'm receiving the error:
Illegal file access: the file is not in the list of allowed files.
I've used "/queuemetrics/qm_show_files.do" and the system shows me the following:
User has the CALLMONITOR key? true
Search path: /var/spool/asterisk/monitor/
.gsm files
.wav files
/var/spool/asterisk/monitor/q1000-20160609-012039-1465428039.244.wav
/var/spool/asterisk/monitor/q1000-20160609-050926-1465441766.284.wav
/var/spool/asterisk/monitor/q1000-20160609-050943-1465441783.286.wav
/var/spool/asterisk/monitor/q1000-20160609-050953-1465441793.288.wav
/var/spool/asterisk/monitor/q1000-20160609-013331-1465428811.254.wav
/var/spool/asterisk/monitor/qmfile.wav
.WAV files
What I'm doing wrong?