Open Source Training Seminar FreePBX Paid Support

Ticket #1441 (new Patches)

Opened 2 years ago

Last modified 2 years ago

system recordings are saved in /tmp

Reported by: diego_iastrubni Assigned to:
Priority: minor Milestone:
Component: Core Version: 2.1.3
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

The system recordings macro (macro-systemrecording in /etc/asterisk/extensions.conf) does the saving of files in /tmp and not ASTVARLIB/sounds/custom. This means that the system recording module needs to copy the file from /tmp to ASTVARLIB/sounds/custom, and by this loosing the original permissions of the file.

While most of the users run apache as the user "asterisk", some of us, not only do not use apache, but they run the new httpd server as "www-data". What happens is that the new files are generated without read/write permissions to asterisk (only to www-data) and those funky IVR are useless.

The series of patches proposed here will so the temporary savings of files in ASTVARLIB/sounds/custom, with a "tmp-ivr" prefix, and the only thing needed to do on the wizards is to rename the files (an atomic command, which is always good).

I am still checking the effect of this patch on the system, but it seems to beahve quite good. I am happy.

The patches are for the 2.1.3 release, but can be ported to the trunk quite easly.

Attachments

fix-recordings.dpatch (1.1 kB) - added by diego_iastrubni on 11/26/06 08:24:51.
fix for the core module (extensions.conf)
fix-recordirs.dpatch (3.5 kB) - added by diego_iastrubni on 11/26/06 08:25:58.
recordings module patch

Change History

11/26/06 08:24:51 changed by diego_iastrubni

  • attachment fix-recordings.dpatch added.

fix for the core module (extensions.conf)

11/26/06 08:25:58 changed by diego_iastrubni

  • attachment fix-recordirs.dpatch added.

recordings module patch

11/26/06 09:02:32 changed by p_lindheimer

  • type changed from Bugs to Patches.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads