[asterisk-users] Zap Load/Stress scripts?
Tim Panton
tim at mexuar.com
Fri Feb 2 14:08:52 MST 2007
On 1 Feb 2007, at 16:34, Porier, Jeremy M. wrote:
> Are there any scripts out there that would help me stress test two
> boxes
> that are setup back to back with 4 PRI connections? We're having
> problems with Sangoma cards w/ PCI-e on HP DL385 G2 hardware and I'm
> tired of "testing" them in a production environment. As Sangoma
> provides firmware updates (and various other shots in the dark) I'd
> like
> to be able see if the problem is fixed in an isolated environment. I
> just need a way to simulate call volume on 4 t1s.
Olle had a script for testing SIP which involved bouncing a call
between the
dialplans of 2 systems 'one' and 'two', incrementing the extension
number.
You could use a similar thing for ZAP, something like:
;extensions.conf on one
[bounce]
exten => _[0-5][0-9],1,dial(zap/g1/{$EXTEN})
;extensions.conf on two
[increment]
exten => _[0-5][0-9],1,dial(zap/G1/{$EXTEN}+1)
exten => 60,dial(sip/SecondPhone)
So you place a call to one, extension 00 from a sip phone,
it calls two on extension 00, which calls 01 on one etc untill you have
all 120 channels tied up, finally placing the call to your second SIP
phone.
The great thing about this is :
1) you get to hear the audio quality of 120 calls at the same time.
2) the call setup/teardown all happens at once, stress testing the
link pretty
effectively.
(Warning - beer has passed my lips during the creation of this email
- trust at your peril....)
Tim.
More information about the asterisk-users
mailing list