Additional fixes to the FusionPBX Module

This commit is contained in:
kat witch 2021-08-15 19:35:28 +01:00
parent 1aea979f18
commit 96ec670b6d
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -58,6 +58,7 @@ user_group_uuid=$(${php} ${cfg.package}/resources/uuid.php);
xml_cdr_password=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64 | sed 's/[=\+//]//g')
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_http_protocol}:http:"
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_project_path}::"
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"127.0.0.1:${cfg.domain}"
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_user}:$xml_cdr_username:"
sed -i /etc/freeswitch/autoload_configs/xml_cdr.conf.xml -e s:"{v_pass}:$xml_cdr_password:"
@ -399,7 +400,7 @@ in {
network.firewall = mkIf cfg.openFirewall {
public = {
tcp = {
ports = [ 5060 5061 ];
ports = [ 5060 5061 5080 5081 ];
ranges = [
{
from = 10000;
@ -408,7 +409,7 @@ in {
];
};
udp = {
ports = [ 5060 5061 ];
ports = [ 5060 5061 5080 5081 ];
ranges = [
{
from = 10000;