Deric Page
2010-Apr-06 13:07 UTC
[asterisk-users] Limit Number Of Simultaneous Outbound SIP Calls
Is there a way to limit the number of simultaneous outbound SIP calls made by Asterisk? We've tried using the 'Asterisk sip call-limit' parameter but that doesn't seem to be working and one of our engineers says that parameter has been depreciated. Thanks, Deric.Page at nisc.coop -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100406/d269a9c5/attachment.htm
Danny Nicholas
2010-Apr-06 13:19 UTC
[asterisk-users] Limit Number Of Simultaneous Outbound SIP Calls
Here's one way - put your dial command into a macro that polls via a "core show channels" and only dials when the count is below X. Even using a "slow language" like PHP or PERL, an AGI call/return would not add as much time to the dial process as PSTN delay does. Example: - exten => 100,1,noop(check before dialing) - exten => 100,n,AGI(howmanycalls.agi) - exten => 100,n,Gotoif(${ACTIVECALLS} < 10?dial:congest) - exten => 100,n(congest),play(congest) - exten => 100,n,hangup - exten => 100,n(dial),Dial(SIP/${EXTEN} - exten => 100,n,hangup _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Deric Page Sent: Tuesday, April 06, 2010 8:07 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Limit Number Of Simultaneous Outbound SIP Calls Is there a way to limit the number of simultaneous outbound SIP calls made by Asterisk? We've tried using the 'Asterisk sip call-limit' parameter but that doesn't seem to be working and one of our engineers says that parameter has been depreciated. Thanks, Deric.Page at nisc.coop -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100406/3fa7d098/attachment.htm
Steve Edwards
2010-Apr-06 14:25 UTC
[asterisk-users] Limit Number Of Simultaneous Outbound SIP Calls
On Tue, 6 Apr 2010, Deric Page wrote:> Is there a way to limit the number of simultaneous outbound SIP calls > made by Asterisk? We've tried using the 'Asterisk sip call-limit' > parameter but that doesn't seem to be working and one of our engineers > says that parameter has been depreciated.How about using GROUP() and GROUP_COUNT()? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000