Recordings form
-
-
It is not that hard to do it yourself, the code is there to tweak. I will write directly here, this is untested, it might contain typos or little errors.
You must add a new column into the mysql table, something like:
mysql -u root -p asterisk -e "ALTER TABLE fop2recordings ADD note text"After the table has the new field, edit the file /var/www/html/fop2/recordings.php . Find the line:
$grid->set_fields('id,uniqueid,datetime,ownerextension,targetextension,duration,context,filename');And add your new field there:
$grid->set_fields('id,uniqueid,datetime,ownerextension,targetextension,duration,context,note,filename');And to include the field in the search query, find the line:
$grid->set_search_fields(array('ownerextension','targetextension','datetime','duration'));And add your field there too:
$grid->set_search_fields(array('ownerextension','targetextension','datetime','duration','note'));Best regards,
-
-
-
-
ooops, yes... you have to edit recording_fop2.pl as the INSERT query there does not have the new field, and thus fails.
You will see a line like this:
$query = "INSERT INTO $MYSQLTABLE VALUES ('','$uniqueid',now(),'$whorecorded','$whomrecorded','$finalrecording','$duration','$context');";
Just add the empty value for note, if its the last field on the table it should look like:
$query = "INSERT INTO $MYSQLTABLE VALUES ('','$uniqueid',now(),'$whorecorded','$whomrecorded','$finalrecording','$duration','$context','');";
Best regards,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login