--- smeserver-freepbx-0.1/createlinks.templatize_cdr_mysql 2009-03-27 12:26:28.000000000 +0100 +++ smeserver-freepbx-0.1/createlinks 2009-04-11 00:13:58.000000000 +0200 @@ -31,6 +31,7 @@ my $event = 'freepbx-update'; templates2events("/etc/amportal.conf", qw(freepbx-update bootstrap-console-save)); +templates2events("/etc/asterisk/cdr_mysql.conf", qw(freepbx-update bootstrap-console-save)); templates2events("/etc/httpd/conf/httpd.conf", $event); templates2events("/etc/httpd/fpbx-conf/httpd.conf", qw(freepbx-update bootstrap-console-save conf-userpanel)); templates2events("/etc/e-smith/sql/init/freepbx.sql", qw(freepbx-update bootstrap-console-save)); --- smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/asterisk/cdr_mysql.conf/all.templatize_cdr_mysql 2009-04-11 00:00:59.000000000 +0200 +++ smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/asterisk/cdr_mysql.conf/all 2009-04-11 00:12:12.000000000 +0200 @@ -0,0 +1,20 @@ +; +; Note - if the database server is hosted on the same machine as the +; asterisk server, you can achieve a local Unix socket connection by +; setting hostname = localhost +; +; port and sock are both optional parameters. If hostname is specified +; and is not "localhost", then cdr_mysql will attempt to connect to the +; port specified or use the default port. If hostname is not specified +; or if hostname is "localhost", then cdr_mysql will attempt to connect +; to the socket file specified by sock or otherwise use the default socket +; file. +; +[global] +hostname = localhost +dbname = {${'freepbx'}{'CdrDbName'};} +password = {${'freepbx'}{'CdrDbPassword'};} +user = {${'freepbx'}{'DbUser'};} +userfield=1 +sock = /var/lib/mysql/mysql.sock +