Add lcr default config (route over asterisk) and backup include
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 13 Apr 2009 19:03:27 +0000 (21:03 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 13 Apr 2009 19:03:27 +0000 (21:03 +0200)
config/backup/includes/lcr [new file with mode: 0644]
config/lcr/routing.conf [new file with mode: 0644]
config/rootfiles/packages/lcr
lfs/lcr

diff --git a/config/backup/includes/lcr b/config/backup/includes/lcr
new file mode 100644 (file)
index 0000000..7c1346e
--- /dev/null
@@ -0,0 +1,7 @@
+/var/ipfire/lcr/extensions
+/var/ipfire/lcr/directory.list
+/var/ipfire/lcr/interface.conf
+/var/ipfire/lcr/options.conf
+/var/ipfire/lcr/routing.conf
+
+
diff --git a/config/lcr/routing.conf b/config/lcr/routing.conf
new file mode 100644 (file)
index 0000000..b540e7f
--- /dev/null
@@ -0,0 +1,4 @@
+# Linux-Call-Router routing configuration route all over asterisk
+
+[main]
+       : remote application=asterisk
index 0f0fdc0453972d380053b095736c555282acab72..1b47ae74510e27d31984e2d2c69c49006c362eb0 100644 (file)
@@ -3,12 +3,14 @@ usr/bin/gentones
 usr/bin/genwave
 usr/bin/lcradmin
 usr/lib/asterisk/modules/chan_lcr.so
+var/ipfire/backup/addons/includes/lcr
 #var/ipfire/lcr
 var/ipfire/lcr/directory.list
 var/ipfire/lcr/extensions
 var/ipfire/lcr/interface.conf
 var/ipfire/lcr/options.conf
 var/ipfire/lcr/routing.conf
+var/ipfire/lcr/routing.conf.org
 #var/ipfire/lcr/tones_american
 var/ipfire/lcr/tones_american/activated_loop.isdn
 var/ipfire/lcr/tones_american/busy_loop.isdn
diff --git a/lfs/lcr b/lfs/lcr
index 287d9014a836c9918a6c5dc424d2883f3df97638..b85344f2b3464446b6d3545e9834cffdd74e1c63 100644 (file)
--- a/lfs/lcr
+++ b/lfs/lcr
@@ -82,5 +82,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_SRC)/lcr.git && ./configure --prefix=/usr
        cd $(DIR_SRC)/lcr.git && make $(MAKETUNING)
        cd $(DIR_SRC)/lcr.git && make install
+       mv /var/ipfire/lcr/routing.conf /var/ipfire/lcr/routing.conf.org
+       install -v -m 644 $(DIR_SRC)/config/lcr/routing.conf \
+                               /var/ipfire/lcr/routing.conf
+       install -v -m 644 $(DIR_SRC)/config/backup/includes/lcr \
+                        /var/ipfire/backup/addons/includes/lcr                  
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)