Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-08 Thread Dmitry Bely
On Tue, Oct 6, 2009 at 12:52 AM, SP  wrote:
> did you use the application limit on the inbound call?
> You'll need to in order to account for it.

Can you provide more detail? I have DID and gateway

  

  

  

  

(...)
  

  

(...)
  

  

that correspond to the same provider account. Then an incoming call is
active, outgoing one is not possible (provider will reject the it).
How to generate "limit_exceeded" then?

- Dmitry Bely

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread SP
did you use the application limit on the inbound call?  You'll need to
in order to account for it.

On Mon, Oct 5, 2009 at 15:39, Dmitry Bely  wrote:
> On Tue, Oct 6, 2009 at 12:19 AM, SP  wrote:
>> Direction doesn't matter, it uses realm's and a few other vars.  Use
>> the same vars for both directions.
>
> Unfortunately it does.
>
>      
>
> generates limit_exceeded for the second outbound call, but if an
> incoming call is active FreeSWITCH still tries to use this gateway.
>
>> On Mon, Oct 5, 2009 at 14:57, Dmitry Bely  wrote:
>>> On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
 http://wiki.freeswitch.org/wiki/Mod_limit
>>>
>>> Of course I've read that. But it only affects the number of outgoing
>>> calls (at least for gateways - chapter "Using mod_limit with an
>>> outbound gateway"). But I would like to limit the number of all calls
>>> (incoming+outgoing) via specific gateway. Any idea?
>>>
>>> - Dmitry Bely
>>>
>>> ___
>>> FreeSWITCH-users mailing list
>>> [email protected]
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>> Shannon
>>
>> ___
>> FreeSWITCH-users mailing list
>> [email protected]
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>  Dmitry Bely
>
> ___
> FreeSWITCH-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Shannon

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread Dmitry Bely
On Tue, Oct 6, 2009 at 12:32 AM, M.Emran  wrote:
> Incoming Call-Limit http://www.howtonix.com/?p=89
>
> Outbound Call-Limit http://www.howtonix.com/?p=86

But what if I need to limit the total number of calls (in my case == 1)?

> On Tue, Oct 6, 2009 at 2:19 AM, SP  wrote:
>>
>> Direction doesn't matter, it uses realm's and a few other vars.  Use
>> the same vars for both directions.
>>
>> On Mon, Oct 5, 2009 at 14:57, Dmitry Bely  wrote:
>> > On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
>> >> http://wiki.freeswitch.org/wiki/Mod_limit
>> >
>> > Of course I've read that. But it only affects the number of outgoing
>> > calls (at least for gateways - chapter "Using mod_limit with an
>> > outbound gateway"). But I would like to limit the number of all calls
>> > (incoming+outgoing) via specific gateway. Any idea?

- Dmitry Bely

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread Dmitry Bely
On Tue, Oct 6, 2009 at 12:19 AM, SP  wrote:
> Direction doesn't matter, it uses realm's and a few other vars.  Use
> the same vars for both directions.

Unfortunately it does.

  

generates limit_exceeded for the second outbound call, but if an
incoming call is active FreeSWITCH still tries to use this gateway.

> On Mon, Oct 5, 2009 at 14:57, Dmitry Bely  wrote:
>> On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
>>> http://wiki.freeswitch.org/wiki/Mod_limit
>>
>> Of course I've read that. But it only affects the number of outgoing
>> calls (at least for gateways - chapter "Using mod_limit with an
>> outbound gateway"). But I would like to limit the number of all calls
>> (incoming+outgoing) via specific gateway. Any idea?
>>
>> - Dmitry Bely
>>
>> ___
>> FreeSWITCH-users mailing list
>> [email protected]
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Shannon
>
> ___
> FreeSWITCH-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

 Dmitry Bely

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread M.Emran
Incoming Call-Limit http://www.howtonix.com/?p=89

Outbound Call-Limit http://www.howtonix.com/?p=86



On Tue, Oct 6, 2009 at 2:19 AM, SP  wrote:

> Direction doesn't matter, it uses realm's and a few other vars.  Use
> the same vars for both directions.
>
> On Mon, Oct 5, 2009 at 14:57, Dmitry Bely  wrote:
> > On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
> >> http://wiki.freeswitch.org/wiki/Mod_limit
> >
> > Of course I've read that. But it only affects the number of outgoing
> > calls (at least for gateways - chapter "Using mod_limit with an
> > outbound gateway"). But I would like to limit the number of all calls
> > (incoming+outgoing) via specific gateway. Any idea?
> >
> > - Dmitry Bely
> >
> > ___
> > FreeSWITCH-users mailing list
> > [email protected]
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
>
>
> --
> Shannon
>
> ___
> FreeSWITCH-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Regards
--
M Emran
Managing Director
E-SOFT BILLING PTE. LTD.
Web: www.e-softbilling.com
___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread SP
Direction doesn't matter, it uses realm's and a few other vars.  Use
the same vars for both directions.

On Mon, Oct 5, 2009 at 14:57, Dmitry Bely  wrote:
> On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
>> http://wiki.freeswitch.org/wiki/Mod_limit
>
> Of course I've read that. But it only affects the number of outgoing
> calls (at least for gateways - chapter "Using mod_limit with an
> outbound gateway"). But I would like to limit the number of all calls
> (incoming+outgoing) via specific gateway. Any idea?
>
> - Dmitry Bely
>
> ___
> FreeSWITCH-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Shannon

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-05 Thread Dmitry Bely
On Mon, Oct 5, 2009 at 2:30 AM, Michael Jerris  wrote:
> http://wiki.freeswitch.org/wiki/Mod_limit

Of course I've read that. But it only affects the number of outgoing
calls (at least for gateways - chapter "Using mod_limit with an
outbound gateway"). But I would like to limit the number of all calls
(incoming+outgoing) via specific gateway. Any idea?

- Dmitry Bely

___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-04 Thread Michael Jerris

http://wiki.freeswitch.org/wiki/Mod_limit


On Oct 2, 2009, at 8:32 AM, Tihomir Culjaga wrote:


what if you are running some huge traffic e.g. 2000 calls with media?

a typical application for that is an IVR system handling several  
different services. I'd like to "dedicate" some capacity for inbound  
on per service basis.



e.g.

DID 10001 limit to 500 calls
DID 10002 limit to 400 calls
DID 10003 limit to 100 calls
DID 10005 limit to 1000 calls


This will be a total of 2000 calls.


don't you think js is simply too weak for that? It should cont calls/ 
channels, brake counts per service/DID and update the counters on  
every call hit.





in the DP you would have something like this for every DID:



  




  

  

  





  

expression="^SERVICE_LIMIT$">


   
  
  

   
   <=  
put your response here!



  






but the question is ... how powerful a JavaScript can be? Will it be  
enough to handle that load?




Tihomir.





On Fri, Oct 2, 2009 at 1:11 PM, Alberto Escudero   
wrote:


You can use the api and check that the channel is occupied with "show
channels"?
You can write a small javascript that checks if the channel is  
occupied by

means of session.execute api.

/aep
--
Stopping junk mailers is good for the environment

> My SIP provider allows only one call (incoming or outgoing) via one
> SIP account. For FreeSWITCH I have configured it as public DID
> extension and outgoing gateway. Now I would like to transfer to
> another gw (or generate "limit exceded") when one tries to place an
> outgoing call while incoming call is in progress. How tho do that?
> Limiting the number of outgoing calls is easy (mod_limit), but how  
to

> take into account incoming one?
>
> - Dmitry Bely
>
___
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-02 Thread Tihomir Culjaga
what if you are running some huge traffic e.g. 2000 calls with media?

a typical application for that is an IVR system handling several different
services. I'd like to "dedicate" some capacity for inbound on per service
basis.


e.g.

DID 10001 limit to 500 calls
DID 10002 limit to 400 calls
DID 10003 limit to 100 calls
DID 10005 limit to 1000 calls


This will be a total of 2000 calls.


don't you think js is simply too weak for that? It should cont
calls/channels, brake counts per service/DID and update the counters on
every call hit.




in the DP you would have something like this for every DID:



  



  

  

  





  



   
  
  

   
   <= put your
response here!


  






but the question is ... how powerful a JavaScript can be? Will it be enough
to handle that load?



Tihomir.





On Fri, Oct 2, 2009 at 1:11 PM, Alberto Escudero  wrote:

>
> You can use the api and check that the channel is occupied with "show
> channels"?
> You can write a small javascript that checks if the channel is occupied by
> means of session.execute api.
>
> /aep
> --
> Stopping junk mailers is good for the environment
>
> > My SIP provider allows only one call (incoming or outgoing) via one
> > SIP account. For FreeSWITCH I have configured it as public DID
> > extension and outgoing gateway. Now I would like to transfer to
> > another gw (or generate "limit exceded") when one tries to place an
> > outgoing call while incoming call is in progress. How tho do that?
> > Limiting the number of outgoing calls is easy (mod_limit), but how to
> > take into account incoming one?
> >
> > - Dmitry Bely
> >
> > ___
> > FreeSWITCH-users mailing list
> > [email protected]
> > 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
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to limit the number of incoming+outgoing calls via specific gateway?

2009-10-02 Thread Alberto Escudero

You can use the api and check that the channel is occupied with "show
channels"?
You can write a small javascript that checks if the channel is occupied by
means of session.execute api.

/aep
-- 
Stopping junk mailers is good for the environment

> My SIP provider allows only one call (incoming or outgoing) via one
> SIP account. For FreeSWITCH I have configured it as public DID
> extension and outgoing gateway. Now I would like to transfer to
> another gw (or generate "limit exceded") when one tries to place an
> outgoing call while incoming call is in progress. How tho do that?
> Limiting the number of outgoing calls is easy (mod_limit), but how to
> take into account incoming one?
>
> - Dmitry Bely
>
> ___
> FreeSWITCH-users mailing list
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org