Methods to list active call sessions.
Even more efficient is to subscribe to the HEARTBEAT, as it has the session count in there. This fires every few seconds.
>From: Marcel Haldemann
Sent: Tuesday, 26 January, 2016 09:38
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] DETECT ACTIVE CHANNELS
For LUA it's (FS 1.6):
to get the number of active channels.
In the XML Dialplan it could be done like this:
Note: If you only want outbound calls you could try:
show channels like external
as the command, you then however must have a SIP profile that is only for outbound (in this case named 'external').