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:[email protected]
+972-50-7952406 mailto:[email protected]
http://www.xorcom.com iax:[email protected]/tzafrir
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-gui mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-gui