[asterisk-users] system cmd

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Sep 17 00:42:41 MST 2006


On Sun, Sep 17, 2006 at 01:13:07PM +0800, unplug wrote:
> How can I use a system cmd to get back the return value in dial plan?
> Say, I want to run a script using system cmd to get the hostname.
> System(hostname)

Reading previous posts helps.

On Sat, Sep 16, 2006 at 01:15:01PM +0200, Christophorus Laube wrote: 
> Hi list, 
> 
> is it possible to call a shell script from * which returns a number or
> a string which can be read to an asterisk variable? Something like
> 'Set(VAR(System(/opt/scripts/something.script)))?
> Does anyone have an idea?

http://pbxfreeware.org/app_backticks.c

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com


More information about the asterisk-users mailing list