Number of occupied channels in the sip trunk

How to check number of occupied channels in the trunk on freepbx.

You can run the following command in the asterisk CLI:

pjsip show channels

or

sip show channels

Depending on what SIP driver you are using for your trunks.