How to get CLI command output from php or other language?


#1

i want get the output of cli command . i use asterisk -r -x …
but there is a problem ,for example :use asterisk -r -x meetme list 1000
the output is :
conf num parties marked Activity creation
1000 0001 n/a 00:00:44 static
Total number of asterisk meeme users :1 …

but when i first use asterisk -r, then type meetme list 1000
the output is :
user #: 01 24000000 welles channel: IAX2/24000000@192.168.0.1:4569-2 (unmonitored)
1 user in that conference

what i want is the later ,how to get them?


#2

i get it
use asterisk -r -x ‘meetme list 1000’