[asterisk-users] read variable from shell script

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Sep 16 11:49:22 MST 2006


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