does anyone know a simple php web page that would display and browseable for recorded conversation? and i like the user to listen those recorded conversation in this page.
also i would like to use this page to pop-up the name of the caller (we have records of the callers in our database server they have account and PIN so they’ll be recognized everytime they make a call) while her call is being received at adjacent hardphone
Well i did a page in php for where i work if you want i can give you the source. It don’t do the pop-up thing but it could be very easy because i already put the callerid in a variable. Here what my page do :
Parse the /var/spool/asterisk/monitor directory and read filename.
You have to use my way to name your record files. (something-unixtimestamp-from-to.wav)
Display info in a html table. With 3 link on listen (Open a media player in the page) one delete(delete the file !) and one download.
Tell me if your want it. I wont give you a lot of support because i already have alot to do at work but if you have some question i may be able to help you.
thanks for immediate reply, it sound great please give me those source
so i could apply to my * system actually i already did the mixmonitor
with ${DIALEDPEERNUMBER} concanated with the ${TIMESTAMP} for the filename in wav format.
Ok there you go : pastebin.ca/325084
First you have to make link of your monitor folder into your web server root directory and you also have to fix permission so apache can delete files.
You may also have to change a few things in my code because its right now is a program made for my server and it still in beta. I did change my server ip adresse for 127.0.0.1 in the code but i think it would be best if you put your server ip adresse.
No problem ,
By the way this is a developement version i know there is some feature missing. Like pages gestion … And if you find there is some other features missing tell me.
i have copy and pasted the script for parse testing when i make a link to the url i receive this error
/* Show asterisk monitor files part of phpaster made by Alexis Gingras copyright 2007 Torrent Corporation */
Fatal error: Call to a member function on a non-object in /var/www/converse.php on line 14
i guess the script call for a certain function which i dont have
likewise i dont have mysql installed in the system but postgreSQL so
how its gonna be?
[quote]/* Show asterisk monitor files part of phpaster made by Alexis Gingras copyright 2007 Torrent Corporation */
Fatal error: Call to a member function on a non-object in /var/www/converse.php on line 14
[/quote]
i figured it out i commented the line that connect to MySQL .
and i can play and donwload the wav file
my last problem now is the “Delete” option when i click that button
i got this error
i already set the permission with chmod 777 *.php in that folder
where i got wrong or what is lucking?
i already fix the permission issue and i believe ${EPOCH} FROMT-TO.wav
doesnt affect the problem as i recall i can play and download only i can not delete it seems it point out the wrong file to be deleted
Strange work very well for me. Can you post the result of
ls -l /var/www/asteriskweb/monitor
and
ls -l /var/www/asteriskweb/monitor/
And also try this
chmod 777 /var/spool/asterisk/monitor/*
And after try to delete one of the file you already have in this folder. If it work that mean you will have to had a line like this in extensions.conf :
in anyway, i have noticed that recording the conversation will consume big hard drive space as 9 minutes eat 8MB. is there a way to reduce this
recorded files? what would be the requirements?
ok,
im not the best with permission problems. My advice would be to go on phpfreaks.com/ and explain on the forum your problem. I remember that one day i had the same problem and what i did is :
by the way do you have any idea how to reduce those recorded files
as iv said conversation for 9 minutes will consume 8MB. can i use wav49
or what just to minimize? hope to hear you about this.