Bladeren bron

Add ${dsn} variable to the freeswitch/conf files.

Mark Crane 12 jaren geleden
bovenliggende
commit
08679a7be0

+ 1 - 1
includes/templates/conf/autoload_configs/callcenter.conf.xml

@@ -1,6 +1,6 @@
 <configuration name="callcenter.conf" description="CallCenter">
 <configuration name="callcenter.conf" description="CallCenter">
 	<settings>
 	<settings>
-		<!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
+		<!--<param name="odbc-dsn" value="${dsn}"/>-->
 		<!--<param name="dbname" value="/usr/local/freeswitch/db/call_center.db"/>-->
 		<!--<param name="dbname" value="/usr/local/freeswitch/db/call_center.db"/>-->
 	</settings>
 	</settings>
 
 

+ 1 - 1
includes/templates/conf/autoload_configs/cidlookup.conf.xml

@@ -12,7 +12,7 @@
     <!-- expire is in seconds -->
     <!-- expire is in seconds -->
     <param name="cache-expire" value="86400"/>
     <param name="cache-expire" value="86400"/>
 
 
-    <param name="odbc-dsn" value="fusionpbx:username:password"/>
+    <param name="odbc-dsn" value="{v_dsn}"/>
 
 
     <!-- comment out sql to not setup a database (directory) lookup -->
     <!-- comment out sql to not setup a database (directory) lookup -->
     <param name="sql" value="
     <param name="sql" value="

+ 1 - 1
includes/templates/conf/autoload_configs/db.conf.xml

@@ -1,5 +1,5 @@
 <configuration name="db.conf" description="LIMIT DB Configuration">
 <configuration name="db.conf" description="LIMIT DB Configuration">
   <settings>
   <settings>
-    <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
+    <!--<param name="odbc-dsn" value="${dsn}"/>-->
   </settings>
   </settings>
 </configuration>
 </configuration>

+ 1 - 1
includes/templates/conf/autoload_configs/directory.conf.xml

@@ -1,6 +1,6 @@
 <configuration name="directory.conf" description="Directory">
 <configuration name="directory.conf" description="Directory">
   <settings>
   <settings>
-      <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
+      <!--<param name="odbc-dsn" value="${dsn}"/>-->
       <!--<param name="dbname" value="directory"/>-->
       <!--<param name="dbname" value="directory"/>-->
   </settings>
   </settings>
   <profiles>
   <profiles>

+ 1 - 1
includes/templates/conf/autoload_configs/switch.conf.xml

@@ -143,7 +143,7 @@
 
 
 		<param name="rtp-enable-zrtp" value="true"/>
 		<param name="rtp-enable-zrtp" value="true"/>
 
 
-		<!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
+		<!-- <param name="core-db-dsn" value="${dsn}" /> -->
 		<!-- 
 		<!-- 
 		 Allow to specify the sqlite db at a different location (In this example, move it to ramdrive for
 		 Allow to specify the sqlite db at a different location (In this example, move it to ramdrive for
 		 better performance on most linux distro (note, you loose the data if you reboot))
 		 better performance on most linux distro (note, you loose the data if you reboot))

+ 1 - 1
includes/templates/conf/autoload_configs/voicemail.conf.xml

@@ -61,7 +61,7 @@
         <param name="email-from" value="${voicemail_account}@${voicemail_domain}"/>
         <param name="email-from" value="${voicemail_account}@${voicemail_domain}"/>
       </email>
       </email>
       <!--<param name="storage-dir" value="/tmp"/>-->
       <!--<param name="storage-dir" value="/tmp"/>-->
-      <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
+      <!--<param name="odbc-dsn" value="${dsn}"/>-->
       <!--<param name="record-comment" value="Your Comment"/>-->
       <!--<param name="record-comment" value="Your Comment"/>-->
       <!--<param name="record-title" value="Your Title"/>-->
       <!--<param name="record-title" value="Your Title"/>-->
       <!--<param name="record-copyright" value="Your Copyright"/>-->
       <!--<param name="record-copyright" value="Your Copyright"/>-->

+ 1 - 1
includes/templates/conf/sip_profiles/internal.xml

@@ -200,7 +200,7 @@
 		<!--<param name="rtp-rewrite-timestamps" value="true"/>-->
 		<!--<param name="rtp-rewrite-timestamps" value="true"/>-->
 		<!--<param name="pass-rfc2833" value="true"/>-->
 		<!--<param name="pass-rfc2833" value="true"/>-->
 		<!--If you have ODBC support and a working dsn you can use it instead of SQLite-->
 		<!--If you have ODBC support and a working dsn you can use it instead of SQLite-->
-		<!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
+		<!--<param name="odbc-dsn" value="${dsn}"/>-->
 
 
 		<!--Uncomment to set all inbound calls to no media mode-->
 		<!--Uncomment to set all inbound calls to no media mode-->
 		<!--<param name="inbound-bypass-media" value="true"/>-->
 		<!--<param name="inbound-bypass-media" value="true"/>-->