Ticket #1441 (closed Patches: duplicate)

Opened 5 years ago

Last modified 2 years ago

system recordings are saved in /tmp

Reported by: diego_iastrubni Assigned to:
Priority: minor Milestone: 2.6
Component: Core Version: 2.1.3
Keywords: Cc:
Confirmation: Unreviewed 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 10:24:51.
fix for the core module (extensions.conf)
fix-recordirs.dpatch (3.5 kB) - added by diego_iastrubni on 11/26/06 10:25:58.
recordings module patch

Change History

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

  • attachment fix-recordings.dpatch added.

fix for the core module (extensions.conf)

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

  • attachment fix-recordirs.dpatch added.

recordings module patch

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

  • type changed from Bugs to Patches.

02/26/09 12:43:06 changed by dgorski

See #3529.

- Darrin

08/31/09 21:10:44 changed by p_lindheimer

  • status changed from new to closed.
  • confirmation set to Unreviewed.
  • engine_version changed.
  • svn_rev changed.
  • milestone set to 2.6.
  • resolution set to duplicate.

marking as dupe of #3529 which attacks similar problem but more up-to-date. (This ticket had no milestone marked and thus has gone un-noticed for a long time).