[Freeswitch-users] Active Calls on a gateway
Rupa Schomaker
rupa at rupa.com
Fri Jul 23 07:06:12 PDT 2010
That wasn't part of my design, but I can explain it by pointing to an
example on the wiki:
http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_an_outbound_gateway
<http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_an_outbound_gateway>Basically,
the limit is set, a call is tried, when the call fails we transfer to the
next extension to process the next gateway. We don't want the limits
already set to be attached to the next gateway so transferring removes 'em
all and we set new ones in each outbound gateway extension.
Personally, I just use mod_lcr with the lcr/ endpoint which has support (if
setup right) for setting limits. But FS is about having a toolbox with many
ways to accomplish the same thing with different tradeoffs in complexity.
Use what works in your situation.
On Fri, Jul 23, 2010 at 8:51 AM, David Ponzone <david.ponzone at gmail.com>wrote:
> Rupa,
>
> I read about that.
>
> Could you quickly explain why you decided that this behaviour was required
> ?
> I can't figure it out.
>
> Thanks
>
> David Ponzone Direction Technique
> email: david.ponzone at ipeva.fr
> tel: 01 74 03 18 97
> gsm: 06 66 98 76 34
>
> Service Client IPeva
> tel: 0811 46 26 26
> www.ipeva.fr - www.ipeva-studio.com
>
> *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:42, Rupa Schomaker a écrit :
>
> 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.
>
> On Fri, Jul 23, 2010 at 8:29 AM, David Ponzone <david.ponzone at gmail.com>wrote:
>
>> 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
>> email: david.ponzone at ipeva.fr
>> tel: 01 74 03 18 97
>> gsm: 06 66 98 76 34
>>
>> Service Client IPeva
>> tel: 0811 46 26 26
>> www.ipeva.fr - www.ipeva-studio.com
>>
>> *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 at lists.freeswitch.org
>> [mailto:freeswitch-users-bounces at lists.freeswitch.org<freeswitch-users-bounces at 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 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
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> -Rupa
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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
>
>
--
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100723/79a75b2f/attachment.html
More information about the FreeSWITCH-users
mailing list