AMQP Broker Installation

There is no need to use the full DjangoPBX installer for this task, use the amqp-broker-standalone-install.sh instead.

mkdir -p /usr/src/djangopbx-install
cd /usr/src/djangopbx-install
wget https://codeberg.org/djangopbx/djangopbx-install.sh/raw/branch/main/amqp-broker-standalone-install.sh
chmod +x amqp-broker-standalone-install.sh

No changes to the configuration section should be necessary.

Run the installer:

./amqp-broker-standalone-install.sh

When the installer completes, make a note of the generated RabbitMQ password.

If required, a crontab entry for root can be set up to backup the RabbitMQ config on a weekly basis, details below:

# min hour dayofmonth month dayofweek cmd
10 4 * * 1 cd /root; /usr/bin/rabbitmqadmin --username=guest --password=xxxxxxxxxxxxxxxx export rabbit-backup.config > /dev/null 2>&1

Ensure that some ssl certificates are available, even if only the ssl-cert-snakeoil pair.

Now reboot and you should have a working AMQP Message Broker.

Please Note: The TAP exchanges are created by FreeSWITCH based on what is configured in amqp.conf.xml. The file has two sections where both your RabbitMQ hostname and RabbitMQ password for djangopbx need to be entered. These sections are called “producers” and “commands”. For more information, please see the FreeSWITCH installation section.