system recordings problem

Discussion in 'General' started by icenews, Sep 15, 2010.

  1. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    Hi

    This is a new box new install v1.6 elastix 32bit

    I tried to simply copy all of my recorded greetings from a previous freepbx box
    over to the new elastix box in following directory: /var/lib/asterisk/sounds/custom

    I reboot the system, and elastix/freepbx does not see the greetings, ok...
    therefore I go to plan B.

    I tried to Browse and upload each and every recording.
    I get the following error:

    --------------------------------------------------------------------------------

    [ERROR] SAVING RECORDING:
    cp: cannot create regular file `/var/lib/asterisk/sounds/custom/BVP-Greeting.wav': Permission denied
    Make sure you have entered a proper name

    I looked at the security settings - they seem fine.

    Any solutions ?

    Thanks
    Walt
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    It depends on who "simply" cp'd them, if root did it then asterisk probably doesn't have write permission.

    It's all about permissions and ownership in linux.

    httpd is run by the user asterisk,

    man chown
    man chmod

    then

    chown -R asterisk:asterisk /var/lib/asterisk/sounds
    chmod -R +rw /var/lib/asterisk/sounds
     
  3. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    hi

    this is a fresh install of v1.6 32 bit

    I am using the elastix interface, I rebooted, and still - it is not allowing me upload recordings.

    How could this be after a fresh install ?

    Thanks
    Walt
     
  4. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    You miss the point, it was a little more than a fresh install, you said

    ".
    .
    I tried to simply copy all of my recorded greetings from a previous freepbx box
    over to the new elastix box in following directory: /var/lib/asterisk/sounds/custom
    .
    .
    "

    So I answered just now:-

    "
    .
    .
    It depends on who "simply" cp'd them, if root did it then asterisk probably doesn't have write permission.

    It's all about permissions and ownership in linux.

    httpd is run by the user asterisk,

    man chown
    man chmod

    then

    chown -R asterisk:asterisk /var/lib/asterisk/sounds
    chmod -R +rw /var/lib/asterisk/sounds
    .
    .
    "


    did you in fact follow any of that?


    Oh well, maybe one day . . .
     
  5. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    hi

    It works now - and thank you for the information...

    Although I do not agree with the concept
    it should not matter whether root, admin, or asterisk places recordings into the sounds directory. I even deleted all of the previously uploaded greetings, and when I used the Elastix GUI, it still did not upload the files. Something not right there !

    Anyway thank you for your help
    Walt
     

Share This Page