[asterisk-gui] using a tmp directory for "sysinfo_output"
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Wed Dec 31 23:24:54 CST 2008
On Wed, Dec 31, 2008 at 07:30:10PM -0500, David Kerr wrote:
> I'd like to propose a change to where the GUI saves output from system
> commands. Presently it attempts to write to the source (./static/config/)
> directory and verifies write access to this with a echo command on startup.
> As this is a source directory I think it mildly bad practice to be writing
> here. Better would be to write to a system defined temporary directory. One
> could look for a system environment variable and/or we could define one in
> asterisk.conf like...
>
> [directories]
> asttmpdir => /tmp
This is an abuse of asterisk configuration for the GUI. Please create a
separate config file for the GUI if it only affects it.
>
> which would be picked up in index.js and assigned to sessionData on GUI
> initialization. Then systemCmdWithOutput would be modified in astman.js to
> use that directory.
>
> Thoughts or comments?
Asterisk already has /var/spool/asterisk/tmp .
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-gui
mailing list