[asterisk-gui] "Checking write permission for gui folder"

David Kerr David at kerr.net
Tue Dec 30 16:31:35 CST 2008


On Tue, Dec 30, 2008 at 5:03 PM, Noah Miller <noahisaacmiller at gmail.com>wrote:

>
>
> The calls to ASTGUI.systemCmdWithOutput() do not seem to work.  I
> don't yet know why.
>

Are you sure? The GUI uses this for a lot of things.  Be aware that this
function is not as straight forward as it might seam. It is asynchronous in
nature, so the "output" may not be present immediately on return from the
function. The "output" is returned to the call-back function and should be
acted upon in there.  Also, debugging with firebug can be confusing, again
because of the asynchronous nature of the call.  General rule-of-thumb, you
shouldn't be doing anything immediately after a call to systemCmdWithOutput
that depends upon completion of the command... all that should take place
within the call-back function.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-gui/attachments/20081230/de55f8b0/attachment.htm 


More information about the asterisk-gui mailing list