Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 git

cat >/etc/apt/sources.list.d/freeswitch.list <

This software is distributed under the MIT license.