[Home]

Summary:ASTERISK-02348: [patch] -t flag to asterisk args by anthm
Reporter:Brian West (bkw918)Labels:
Date Opened:2004-09-05 12:05:29Date Closed:2008-01-15 15:06:53.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) minus-t.diff
Description:Needed if you want to store files in a temp location them move them to the proper place after they are recorded.

All this thanks to anthm and asterlink.com

bkw
Comments:By: Tilghman Lesher (tilghman) 2004-09-05 12:13:13

The file placement needs to be configurable.  However, since most files are stored in /var, the logical original placement for these files should be /var/tmp, as a 'mv' would take place on the same filesystem, which is a much simpler (and faster) operation than moving files between filesystems.

By: Anthony Minessale (anthm) 2004-09-05 12:21:08

Already there ...
[options]
record_cache_dir=/cache

also avaiable in [options]:
verbose [level]
nofork [yes/no]
quiet [yes/no]
console [yes/no]
highpriority [yes/no]
initcrypto [yes/no]
nocolor [yes/no]
dumpcore [yes/no]
cache_record_files [yes/no]
record_cache_dir [dir/path]

edited on: 09-05-04 12:21

By: Mark Spencer (markster) 2004-09-05 14:30:41

/var/tmp definitely is a logical default since it's only writable by root and thus doesn't introduce potential conflicts for people making sym links that could get overwritten etc.

By: cloos (cloos) 2004-09-05 19:15:20

> /var/tmp ... is ... only writable by root

err, not in most installs.  it is usu 1777 just like /tmp....

sometimes one is even a symlink to the other

best bet is probably /var/spool/asterisk/tmp, which should be owned by whatever uid * is running as (or +g and owned by whatever gid * is running as, depending on admin's prefs).

By: Mark Spencer (markster) 2004-09-06 02:18:41

I especially like the reading of options from the [options] section of asterisk.conf.  I wish we had a way to provide example documentation for asterisk.conf as we do for the other files...

By: Mark Spencer (markster) 2004-09-06 21:47:31

Added to CVS with with the /var/spool/asterisk/tmp path.

By: Digium Subversion (svnbot) 2008-01-15 15:06:53.000-0600

Repository: asterisk
Revision: 3735

U   trunk/Makefile
U   trunk/asterisk.c
U   trunk/file.c
U   trunk/include/asterisk/options.h

------------------------------------------------------------------------
r3735 | markster | 2008-01-15 15:06:53 -0600 (Tue, 15 Jan 2008) | 2 lines

Merge anthm's "-t" flag (with minor mods) (bug ASTERISK-2348)

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

http://svn.digium.com/view/asterisk?view=rev&revision=3735