Hi,
Yes, of course you can use the AMI, I just wanted to show you that there is a simpler and faster way to get data from the pbx. When you are working with the AMI, you have to filter a lot just to get the response for your request. As for the command that you have failed to execute (a typo in your command), I think that you should run it like that:
asterisk -rx'core show channels concise' | cut -d '!' -f1,7
if you still fail to execute it you can connect directly to the Asterisk console (asterisk -r) and type:
core show help core show channels
to see all of the options of the command and its usage.
Thank you,
Daniel Friedman
Trixton LTD.
Mobile: +41.79.868.7050
Mobile: +972.50.6655579
Email: dani@3xton.com