Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Feedback
  3. Recordings form

Recordings form

Scheduled Pinned Locked Moved Feedback
6 Posts 2 Posters 91 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    busster8
    wrote on last edited by
    #1

    It would be great to add a field to the recordings form, allowing the end user to add a note regarding the recording. This would allow the end user to more easily find the recording later.

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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,

      1 Reply Last reply
      0
      • B
        B
        busster8
        wrote on last edited by
        #3

        This works so see the note field, but I am unable to edit or add to the note field.

        1 Reply Last reply
        0
        • B
          B
          busster8
          wrote on last edited by
          #4

          changed a false to true in php. now working.

          1 Reply Last reply
          0
          • B
            B
            busster8
            wrote on last edited by
            #5

            Since making these changes, it does not appear that I can add new recordings.

            Pressing the record button acts normal, but when you go to the recordings menu, no new recordings are there.

            1 Reply Last reply
            0
            • N
              N
              nicolas
              wrote on last edited by
              #6

              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,

              1 Reply Last reply
              0

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups