[Asterisk-Users] System command..

Steven Critchfield critch at basesys.com
Mon Jul 7 11:08:29 MST 2003


On Mon, 2003-07-07 at 12:43, WipeOut . wrote:
> Can the system command be used to retrieve a variable from a mysql database using the mysql command line client??
> or would it be simpler to write some sort of AGI type application??

  -= Info about application 'System' =- 

[Synopsis]:
  Execute a system command

[Description]:
  System(command): Executes a command  by  using  system(). Returns -1 on
failure to execute the specified command. If  the command itself executes
but is in error, and if there exists a priority n + 101, where 'n' is the
priority of the current instance, then  the  channel  will  be  setup  to
continue at that priority level.  Otherwise, System returns 0.


>From this it looks like there is no direct route to a asterisk variable.
Your only option would be a numeric return and then coding for each
n+101 priority. Better and easier to go AGI or postgres.
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list