1 |
vip-ire |
1.1 |
--- smeserver-freepbx-0.1/createlinks.templatize_cdr_mysql 2009-03-27 12:26:28.000000000 +0100 |
2 |
|
|
+++ smeserver-freepbx-0.1/createlinks 2009-04-11 00:13:58.000000000 +0200 |
3 |
|
|
@@ -31,6 +31,7 @@ |
4 |
|
|
|
5 |
|
|
my $event = 'freepbx-update'; |
6 |
|
|
templates2events("/etc/amportal.conf", qw(freepbx-update bootstrap-console-save)); |
7 |
|
|
+templates2events("/etc/asterisk/cdr_mysql.conf", qw(freepbx-update bootstrap-console-save)); |
8 |
|
|
templates2events("/etc/httpd/conf/httpd.conf", $event); |
9 |
|
|
templates2events("/etc/httpd/fpbx-conf/httpd.conf", qw(freepbx-update bootstrap-console-save conf-userpanel)); |
10 |
|
|
templates2events("/etc/e-smith/sql/init/freepbx.sql", qw(freepbx-update bootstrap-console-save)); |
11 |
|
|
--- 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 |
12 |
|
|
+++ smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/asterisk/cdr_mysql.conf/all 2009-04-11 00:12:12.000000000 +0200 |
13 |
|
|
@@ -0,0 +1,20 @@ |
14 |
|
|
+; |
15 |
|
|
+; Note - if the database server is hosted on the same machine as the |
16 |
|
|
+; asterisk server, you can achieve a local Unix socket connection by |
17 |
|
|
+; setting hostname = localhost |
18 |
|
|
+; |
19 |
|
|
+; port and sock are both optional parameters. If hostname is specified |
20 |
|
|
+; and is not "localhost", then cdr_mysql will attempt to connect to the |
21 |
|
|
+; port specified or use the default port. If hostname is not specified |
22 |
|
|
+; or if hostname is "localhost", then cdr_mysql will attempt to connect |
23 |
|
|
+; to the socket file specified by sock or otherwise use the default socket |
24 |
|
|
+; file. |
25 |
|
|
+; |
26 |
|
|
+[global] |
27 |
|
|
+hostname = localhost |
28 |
|
|
+dbname = {${'freepbx'}{'CdrDbName'};} |
29 |
|
|
+password = {${'freepbx'}{'CdrDbPassword'};} |
30 |
|
|
+user = {${'freepbx'}{'DbUser'};} |
31 |
|
|
+userfield=1 |
32 |
|
|
+sock = /var/lib/mysql/mysql.sock |
33 |
|
|
+ |