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.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users