This module is intended to be used for load testing. It can generate large number of calls originated from Yate on an arbitrary protocol or to some number.
The call generator can be controlled from the rmanager as it processes "engine.command" messages or from Yate's command line.
How to use callgen from command line
Callgen messages can be generated from Yate's command line like this:
yate 'callgen set called=1234' 'callgen start'
or something like this:
yate 'callgen set callto=sip/sip:1234@gw' 'callgen start'
callgen set paramname=value
Sets the value of parameter paramname to value.
callgen set paramname
Display the current value of the parameter paramname.
Display statistics about the current call session:
- total calls made
- how many got ringing
- how many got answered
- number of running calls
- number of calls left to make in the current session
Start the calls generator.
Stops the call generator and drops all current calls.
Pause the call generator - do not generate new calls. Current calls continue to completion.
Resume generating new calls.
Drop all current calls but continue to generate new ones.
Make a single call.
Load the parameters.
Save the parameters.
The following parameters are relevant:
- Location to call, should be something like sip/sip:user@ip. It takes precedence over called
- Called number to use in routing. It is ignored if callto is set.
- Caller number to use in calls.
- Data source to attach to the outgoing call. You can use something like tone/ring
- Maximum lifetime of the call in milliseconds. If not set it defaults to 60000 (one minute).
- Minimum lifetime of the call in milliseconds. If set calls will have a random lifetime between minlife and maxlife.
- Number of calls to generate in this session, default 100.
- Maximum number of simultaneous calls, defaults to 5. The actual number depends on how fast the calls are generated and destroyed.
- Average delay between new calls in milliseconds. Defaults to 1000. If the current number of calls falls below maxcalls a new call will be generated after a time randomly distributed between 0 and 2*avgdelay.