[asterisk-users] Using SetVar with System() is it possible?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Jun 19 12:56:31 CDT 2010
On Sat, Jun 19, 2010 at 10:58:17AM -0400, bruce bruce wrote:
> Hi Guys,
>
> Is it possible to harvest the output of system into a SetVar(variable)?
>
> exten => s,n,SetVar(var=system(*asterisk -rx "sip show channels" | grep -c
> "(ulaw)")*
There's the function SHELL. Though I suspect you use 1.2 and I'm not
sure if it was there already.
Anyway, I'm the output of that command is so simple to parse.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list