Sorry, I am tired.

Of course, there is a way. You have to use mod_limit, setting variables in your all inbound dialplans where required.

For instance, you will put this in all the required extensions in the context handling calls from the gateway:
<action application="limit" data="hash gatewayX all" />
<action application="limit" data="hash gatewayX from" />

and you will put this in all the required extensions in the contexts handling calls to the gateway:
<action application="limit" data="hash gatewayX all" />
<action application="limit" data="hash gatewayX to" />

This way, you will have a counter for all calls, one for calls coming from the gateway and one for calls going to the gateway.

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 23/07/2010 à 15:17, Ahmed Ajmal a écrit :

Show calls is too verbose plus it will show me calls on all the gateways, I
am looking for something more specific.

-ahmed

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Evgeniy
Zolotov
Sent: Friday, July 23, 2010 5:59 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Active Calls on a gateway

Please try this command :

show calls

Ahmed Ajmal ?????:

Hi

Is there any way I can find the total number of active calls on a
gateway. I have tried the following command on the CLI:

sofia xmlstatus gateway gwname

and it always returns 0 for Call In (assuming Call In represents the
active calls). I am on freeswitch 1.0.6.

Thanks

Ahmed

------------------------------------------------------------------------

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org