From 96409482367821032fd8d23f891c47d67c6862ac Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 20 Jul 2018 00:55:03 -0600 Subject: [PATCH] Update dsn.sh --- freebsd/resources/switch/dsn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/resources/switch/dsn.sh b/freebsd/resources/switch/dsn.sh index 9061c61..04e4d7a 100644 --- a/freebsd/resources/switch/dsn.sh +++ b/freebsd/resources/switch/dsn.sh @@ -31,13 +31,13 @@ sudo -u postgres psql -h $database_host -p $database_port -U freeswitch -d fusio #add the dsn variables sudo -u postgres psql -h $database_host -p $database_port -U freeswitch -d fusionpbx -c "insert into v_vars (var_uuid, var_name, var_value, var_category, var_enabled, var_order, var_description, var_hostname) values ('785d7013-1152-4a44-aa15-28336d9b36f9', 'dsn_system', 'pgsql://hostaddr=$database_host port=$database_port dbname=fusionpbx user=fusionpbx password=$database_password options=', 'DSN', 'true', '0', null, null);"; -sudo -u postgres psql -h $database_host -p $database_port -U freeswitch -d fusionpbx -c "insert into v_vars (var_uuid, var_name, var_value, var_category, var_enabled, var_order, var_description, var_hostname) values ('0170e737-b453-40ea-99f2-f1375474e5ce', 'dsn', 'sqlie://tmp/core.db', 'DSN', 'true', '0', null, null);"; +sudo -u postgres psql -h $database_host -p $database_port -U freeswitch -d fusionpbx -c "insert into v_vars (var_uuid, var_name, var_value, var_category, var_enabled, var_order, var_description, var_hostname) values ('0170e737-b453-40ea-99f2-f1375474e5ce', 'dsn', 'sqlite:///tmp/core.db', 'DSN', 'true', '0', null, null);"; sudo -u postgres psql -h $database_host -p $database_port -U freeswitch -d fusionpbx -c "insert into v_vars (var_uuid, var_name, var_value, var_category, var_enabled, var_order, var_description, var_hostname) values ('32e3e364-a8ef-4fe0-9d02-c652d5122bbf', 'dsn_callcenter', 'sqlite:///tmp/callcenter.db', 'DSN', 'true', '0', null, null);"; #update the vars.xml file echo "" >> /usr/local/freeswitch/conf/vars.xml echo "" >> /usr/local/freeswitch/conf/vars.xml -echo "" >> /usr/local/freeswitch/conf/vars.xml +echo "" >> /usr/local/freeswitch/conf/vars.xml echo "" >> /usr/local/freeswitch/conf/vars.xml #remove the sqlite database files