I am using asterisk real time with mysql and need to retrieve the status of users/peers via a query. Basically fetch the equivalent of ‘CLI>sip show peers’ and filter the list with the peers which have a registered ip address. How can I get this info programmatically - ideally via a query. Otherwise via an api without having to use CLI.