[Freeswitch-users] Group / channel limit

Steven Ayre steveayre at gmail.com
Fri Dec 31 17:07:31 MSK 2010


There's two possibly ways.

First, you can connect via ESL from PHP and do 'show channels as xml',
the output will show you all incoming and outgoing channels. You might
be able to work out from that how many calls are going to a particular
number.

The other (better) way would be to use the Limit functionality to
record the number of calls to the number, then check the number of
calls currently recorded. That could be done either via api commands
via ESL or if you use an ODBC backend querying the database directly.

See http://wiki.freeswitch.org/wiki/Limit

Depending on what you're doing, you could also entirely handle the
Limit checks in the dialplan XML you return, which would avoid having
to do anything with ESL/database from PHP. Remember you can return
more than one extension, so transfers will still work within the
dialplan you return.

Regards,
-Steve



On 30 December 2010 22:31, Sameer <sameer2k3t at gmail.com> wrote:
> Hi guys,
> Is there a way to check limit status or number of active calls on a number  from XML curl PHP
> And then return the dial plan commands?
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



More information about the FreeSWITCH-users mailing list