Hi Guys,<div><br></div><div>Is it possible to harvest the output of system into a SetVar(variable)?</div><div><br></div><div>exten => s,n,SetVar(var=system(<span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b>asterisk -rx "sip show channels" | grep -c "(ulaw)")</b></span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b><br></b></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b>??? any problem with the syntax? </b></span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b><br></b></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b><br>
</b></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b>Thanks,</b></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(70, 70, 70); white-space: pre; "><b><br>
</b></span></div>