From: Jiri Slachta Date: Sat, 22 Feb 2014 20:53:52 +0000 (+0100) Subject: asterisk-11.x,asterisk-1.8.x: create logging cdr-csv folder during init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a1d3e921fcf2a268c272465a21b69c6bddf89f5d;p=feed%2Ftelephony.git asterisk-11.x,asterisk-1.8.x: create logging cdr-csv folder during init Signed-off-by: Jiri Slachta --- diff --git a/net/asterisk-1.8.x/Makefile b/net/asterisk-1.8.x/Makefile index e1c4476..2146bb5 100644 --- a/net/asterisk-1.8.x/Makefile +++ b/net/asterisk-1.8.x/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk18 PKG_VERSION:=1.8.25.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ diff --git a/net/asterisk-1.8.x/files/asterisk.init b/net/asterisk-1.8.x/files/asterisk.init index 0ca84ec..ec3b60b 100644 --- a/net/asterisk-1.8.x/files/asterisk.init +++ b/net/asterisk-1.8.x/files/asterisk.init @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2014 OpenWrt.org START=99 APP=asterisk @@ -17,6 +17,7 @@ start() { [ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib [ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys + [ -d $DEST/var/log/asterisk/cdr-csv/ ] || mkdir -p $DEST/var/log/asterisk/cdr-csv SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \ service_start $BIN_FILE $OPTIONS diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index 11f9317..e2bdce2 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk11 PKG_VERSION:=11.7.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ diff --git a/net/asterisk-11.x/files/asterisk.init b/net/asterisk-11.x/files/asterisk.init index 0ca84ec..78e8913 100644 --- a/net/asterisk-11.x/files/asterisk.init +++ b/net/asterisk-11.x/files/asterisk.init @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2014 OpenWrt.org START=99 APP=asterisk @@ -17,6 +17,7 @@ start() { [ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib [ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys + [ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \ service_start $BIN_FILE $OPTIONS