I need to monitor the number of channels in use on a trunk.
Found this command to get the informations :
asterisk -rx “pjsip list endpoints” | grep SunrisePJSIP | grep “[0-9]”
The return :
I just want the number of channels to be return by the command, What am I doing wrong ?