Is there a way to limit simultaneous calls. I like to limit simultaneous outgoing calls as more than few simulataneous calls are charged by my voip providers. However, I do not want to have any such restriction for internal calls. Thanks Jim
You mean in sip.conf? Look at adding to your voip providers peer/user config incominglimit, outgoinglimit or call-limit: http://www.voip-info.org/wiki/index.php?page=Asterisk+config+sip.conf --- Forrest Beck www.shift8.biz On Sep 18, 2007, at 4:26 PM, Jim Boykin wrote:> Is there a way to limit simultaneous calls. I like to limit > simultaneous outgoing calls as more than few simulataneous calls are > charged by my voip providers. However, I do not want to have any such > restriction for internal calls. > > Thanks > Jim > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http:// > www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On Wed, 2007-09-19 at 01:56 +0530, Jim Boykin wrote:> Is there a way to limit simultaneous calls. I like to limit > simultaneous outgoing calls as more than few simulataneous calls are > charged by my voip providers. However, I do not want to have any such > restriction for internal calls.There are lots of ways to skin that particular cat, but my favorite is to use the GROUP() and GROUP_COUNT() functions to artificially limit the number of calls. -- Jared Smith Community Relations Manager Digium, Inc.
On Wed, Sep 19, 2007 at 01:56:42AM +0530, Jim Boykin wrote:> Is there a way to limit simultaneous calls. I like to limit > simultaneous outgoing calls as more than few simulataneous calls are > charged by my voip providers. However, I do not want to have any such > restriction for internal calls.I think you can do this sort of thing with the Set(GROUP) and GROUPCOUNT to monitor number of calls placed in a call 'group' which in this context does not mean a pickup group or a caller group, it means 'a group of calls set up in group $foo' (where $foo is some variable) Take a look at:- http://www.voip-info.org/wiki/view/Asterisk+cmd+SetGroup and:- http://www.voip-info.org/wiki/index.php?page=Superdial%20macro To see how it is used to limit the number of outgoing calls to a PSTN carrier. 'group' could be a global setting you give it, or the extension number of the user (to limit globally or per extension) Specifically:- ${ARG6} - Max. group number (maximum number of concurrent calls you want to allow for that group) exten => s,1,Set(GROUP()=${ARG5}) exten => s,2,Set(GROUPCOUNT=${GROUP_COUNT(${ARG5})}) exten => s,3,GotoIf($[${GROUPCOUNT} > ${ARG6}]?104) exten => s,104,Goto(s-CHANUNAVAIL,1) etc. Rob -- Robert Lister - London Internet Exchange - http://www.linx.net/ sip:robl at linx.net - inoc-dba:5459*710 - tel: +44 (0)20 7645 3510
Try: http://www.voip-info.org/wiki/view/Asterisk+sip+incominglimit On Wed, 19 Sep 2007, Jim Boykin wrote:> Is there a way to limit simultaneous calls. I like to limit > simultaneous outgoing calls as more than few simulataneous calls are > charged by my voip providers. However, I do not want to have any such > restriction for internal calls. > > Thanks > Jim > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
Thanks All. However, I was to use it with call files. Will GROUP work there? ~Jim On 9/19/07, Alex Balashov <abalashov at evaristesys.com> wrote:> > Try: > > http://www.voip-info.org/wiki/view/Asterisk+sip+incominglimit > > On Wed, 19 Sep 2007, Jim Boykin wrote: > > > Is there a way to limit simultaneous calls. I like to limit > > simultaneous outgoing calls as more than few simulataneous calls are > > charged by my voip providers. However, I do not want to have any such > > restriction for internal calls. > > > > Thanks > > Jim > > > > _______________________________________________ > > > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > -- > Alex Balashov > Evariste Systems > Web : http://www.evaristesys.com/ > Tel : +1-678-954-0670 > Direct : +1-678-954-0671 > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
In article <4fbba87b0709190335p3a4eba0dvda4492fc1fd0a3b2 at mail.gmail.com>, Jim Boykin <boykinjim at gmail.com> wrote:> Thanks All. However, I was to use it with call files. Will GROUP work there?You will have to call out using a Local channel, rather than directly to a Zap, SIP or IAX channel. You can then perform the GROUP check in the dialplan for the outgong call before invoking Dial() to place the call. Cheers Tony> ~Jim > > On 9/19/07, Alex Balashov <abalashov at evaristesys.com> wrote: > > > > Try: > > > > http://www.voip-info.org/wiki/view/Asterisk+sip+incominglimit > > > > On Wed, 19 Sep 2007, Jim Boykin wrote: > > > > > Is there a way to limit simultaneous calls. I like to limit > > > simultaneous outgoing calls as more than few simulataneous calls are > > > charged by my voip providers. However, I do not want to have any such > > > restriction for internal calls. > > > > > > Thanks > > > Jim > > > > > > _______________________________________________ > > > > > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > > > > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > > > > > asterisk-users mailing list > > > To UNSUBSCRIBE or update options visit: > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > -- > > Alex Balashov > > Evariste Systems > > Web : http://www.evaristesys.com/ > > Tel : +1-678-954-0670 > > Direct : +1-678-954-0671 > > > > _______________________________________________ > > > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org