Cli command to return the number of channel in use

Hello !

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 ?

asterisk -rx "pjsip list endpoints" | grep SunrisePJSIP | grep -o [0-9]

1 Like

Your the boss !! Thank you !!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.