Media Server Uninstallation

This procedure is to remove a media server permanently.

On XIVO

  1. Disassociate all Users/Groups/SIP Trunk from the Media server you want to remove (remove these objects or associate them to another MDS),

  2. Then remove the media server from XDS by removing it from webi (if needed refer to related sections in XiVO Configuration):

    • remove the media server in Configuration -> Management -> Media Servers
    • remove the corresponding template line in Configuration -> Provisioning -> Template Line
  3. Clean connection permissions from all places and apply new configuration (see related sections in XiVO Configuration):

    • in AMI configuration
    • in Postgres conf (pg_hba.conf)
    • and in SMTP conf if applicable
  4. And remove replication slot on XiVO Main server. Connect to postgres database find the correct replication slot and drop it:

    select * from pg_replication_slots;
    select pg_drop_replication_slot('slot_name');
    

On Media Server

Only reinstallation is supported.

Media Server Reinstallation

On XIVO

All settings can remain if they are still valid - if the new media server has the same name and IP as a previous (for example crashed) media server.

On Media Server

If the mds install script failed with error, you can re-run it.

To fully reinstall media server, you need to reinstall xivo-mds-installer and recreate database on the media server. This procedure will also remove database replication slot on XiVO:

xivo-service stop all
apt-get purge xivo-mds-installer

But the database subscription will remain with old configuration on the media server. Sql commands to create for the replication are inside the db container and they run only when the database is initialized. Therefore the database must be reinitialized.

Warning

Call and chat history will be lost from the media server

rm -rf /var/lib/postgresql/11

Then finish the reinstallation. The custom.env will be recreated with new values:

apt-get install xivo-mds-installer
xivo-service start all
xivo-dcomp up -d