dOpensource / dsiprouter

UI Interface for implementing Kamailio to provide PBX Hosting and SIP Trunking Services
https://dsiprouter.org
Apache License 2.0
192 stars 102 forks source link

Installation under ubuntu 20 #370

Open ehrenmann1977 opened 3 years ago

ehrenmann1977 commented 3 years ago

Guys i would like to install it under ubuntu 20, as far as i know, ubuntu is debian based and it should have worked. But it does not install ..

devopsec commented 3 years ago

ubuntu support has been lagging behind as we don't have enough contributors to maintain it.
the portion of the script that checks the OS version is here: https://github.com/dOpensource/dsiprouter/blob/master/dsiprouter.sh#L281

support for ubuntu 16.04 was added in a while back and could be a good example if you wanted to contribute

demonspork commented 3 years ago

Using 20.04 with the 16.04 scripts, the first failure is in DNS. The script disables systemd-resolved which breaks DNS so the script that can't continue with installing dnsmasq because it can't resolve the repository. The fix is to delete/rename rm /etc/resolv.conf and echo "nameserver 8.8.8.8" /etc/resolv.conf and then the dnsmasq install can complete.

The 16.04 script for mysql seems to work as is. Didn't get to fully test because Kamailio didn't finish installing.

Kamailio script manually installs the deb information /etc/apt/sources.list and the key for 16.04, but kamailio 5.3 is available in the focal repository so the kamailio install script for 20.04 can leave out the sources modification steps. The script fails to start kamailio because of something wrong in the configuration file but I didn't troubleshoot it any further.

I will come back to it at a later date, I am setting up a lab of my environment trying to get the entire infrastructure on Ubuntu 20.04 for testing to migrate from a mixed debian 9/10 environment so this is going to stay on my radar for a while.