Just remember that transferring will remove the limit(s) unless you set the channel var limit_ignore_transfer to true. So if you handle the incoming call to your gateway in the public context and then transfer to user/foo for instance, you'll want to set that channel var to ensure the count survives.
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 Techniqueemail: david.ponzone@ipeva.frtel: 01 74 03 18 97gsm: 06 66 98 76 34Service Client IPevatel: 0811 46 26 26Ce 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 gatewayPlease try this command :
show calls
Ahmed Ajmal ?????:HiIs there any way I can find the total number of active calls on agateway. I have tried the following command on the CLI:
sofia xmlstatus gateway gwnameand it always returns 0 for Call In (assuming Call In represents the
active calls). I am on freeswitch 1.0.6.ThanksAhmed------------------------------------------------------------------------_______________________________________________FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
_______________________________________________
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