Re: [asterisk-users] Using SetVar with System() is it possible?

2010-06-24 Thread Leif Madsen
Steve Edwards wrote: On Sat, 19 Jun 2010, bruce bruce wrote: 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)) ??? any problem with the syntax? ) Your parentheses don't match. ) You

[asterisk-users] Using SetVar with System() is it possible?

2010-06-19 Thread bruce bruce
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))* * * *??? any problem with the syntax? * * * * * *Thanks,* * * --

Re: [asterisk-users] Using SetVar with System() is it possible?

2010-06-19 Thread Steve Edwards
On Sat, 19 Jun 2010, bruce bruce wrote: 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)) ??? any problem with the syntax? Really? Is posting questions showing you've made zero effort

Re: [asterisk-users] Using SetVar with System() is it possible?

2010-06-19 Thread Tzafrir Cohen
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

Re: [asterisk-users] Using SetVar with System() is it possible?

2010-06-19 Thread bruce bruce
I am using Asterisk v1.4.x I have got php along with phpagi to report back using a system call within php to asterisk -rx but it's buggy. For one thing php is hanging sometimes and not returning anything. Wondering if I can run search to see if a g.729 channel is up or not using only the