[asterisk-dev] Dialplan code to simulate calls
Diego Iastrubni
diego.iastrubni at xorcom.com
Wed Nov 1 08:41:36 MST 2006
On Wednesday 01 November 2006 01:56, Greg Boehnlein wrote:
> Answer()
> Wait(1)
> Playback(tt-monkeys)
> Hangup()
>
> You can add some additional stuff in there if you want...
I usually do more stress testing:
I rip off my favorite song from a CD (I can highly recommend Sting and the
Police, for example take "Message in a bottle"), and then recode it to 16bit
8khz mono, and then loop it so the track takes exactly 10 minutes (audacity
does the job pretty good).
Then I make an extension to call it, and dial from a normal FXS to it just to
see if it works.
Now, for tests, you can abuse the callfiles system, to generate calls at
pseudo random times from the SIPp server (found on extension 19 on my
setups...) to the "sting" extension. You know each call takes 10 minutes, so
you can use it to time out the test.
Since I know how crap SIPp documentation is, here is the command I used to run
the server:
sipp \
-sn uas \
-p 5061 \
-d 100 \
-i $HOST_SERVER \
-mi $HOST_SERVER \
-mp 11000 \
-l 100 \
More information about the asterisk-dev
mailing list