Call Us Today! 877.742.2583




Page tree
Skip to end of metadata
Go to start of metadata

About

Methods to list active call sessions.

Heartbeat

>From: bkw__

Even more efficient is to subscribe to the HEARTBEAT, as it has the session count in there. This fires every few seconds.

Lua Script

>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):

Lua active channel display

to get the number of active channels.

XML Dialplan

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').

 

  • No labels