Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voxserv/freeswitch-perf-dialer
FreeSWITCH dialer program for VoIP performance tests
https://github.com/voxserv/freeswitch-perf-dialer
Last synced: 15 days ago
JSON representation
FreeSWITCH dialer program for VoIP performance tests
- Host: GitHub
- URL: https://github.com/voxserv/freeswitch-perf-dialer
- Owner: voxserv
- Created: 2015-02-04T15:01:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T23:06:43.000Z (about 7 years ago)
- Last Synced: 2024-07-03T06:33:59.017Z (4 months ago)
- Language: Perl
- Size: 12.7 KB
- Stars: 43
- Watchers: 9
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FreeSWITCH call generator for performance tests
===============================================This is a simple dialer that connects to FreeSWITCH via event socket and
originates calls at a given interval.The script subsututes the question mark signs (?) with random digits in
caller ID and the destination number.There are two ways to specify the call destination:
1. Loopback endpoint
--------------------If used with `--content` and `--dest` options, the dialer originates the
calls into the specified context via loopback endpoint. For example, the
following contexts will forward all calls to some remote servers:```
```
Keep in mind that the default limit of sessions per second in FreeSWITCH
is 30 (`sessions-per-second` parameter in
`autoload_configs/switch.conf.xml`). Because of the loopback endpoint,
each call occupies 3 channels, and this results in 10 calls per second
maximum.For example, the following command would start 100 calls, and each call
would last 10 minutes:```
perl /opt/freeswitch-perf-dialer/dialer.pl \
--ncalls=100 --cps=9 --duration=600 --context=dialer01 \
--dest='01234?????'
```2. Endpoint string
------------------You can specify explicitly the endpoint string. In case of SIP
endpoints, that will instruct FreeSWITCH to use a specified SIP profile
and gateway for example:```
perl /opt/freeswitch-perf-dialer/dialer.pl --cid='+3333???????' \
--endpoint='sofia/external/[email protected]' --cps=5 --forever
perl /opt/freeswitch-perf-dialer/dialer.pl --cid='+3333???????' \
--endpoint='sofia/gateway/voxbeam/+777???????' --cps=5 --forever
```Transferring instead of playback
--------------------------------The `--exec` option allows you to send the call to a dialplan context
instead of playing back the media. The following example sends the call
after originating to default dialplan context, with destination number
12345678 and caller ID 87654321:```
perl /opt/freeswitch-perf-dialer/dialer.pl --cid='12345678' \
--endpoint='sofia/gateway/voxbeam/87654321' --cps=5 --forever \
--exec='12345678 XML default 87654321 87654321'
```The general syntax of the exec string is as follows:
```
XML
```Installing on Debian 8
----------------------```
apt-get install -y curl gitcat >/etc/apt/sources.list.d/freeswitch.list <
This software is distributed under the MIT license.