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: [email protected]
[mailto:[email protected]] On Behalf Of Deric Page
Sent: Tuesday, April 06, 2010 8:07 AM
To: [email protected]
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,
[email protected]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users