From: <dha...@us...> - 2008-01-08 23:34:01
|
Revision: 1494 http://astlinux.svn.sourceforge.net/astlinux/?rev=1494&view=rev Author: dhartman Date: 2008-01-08 15:34:04 -0800 (Tue, 08 Jan 2008) Log Message: ----------- merge asterisk-gui from asterisk-beta branch Modified Paths: -------------- trunk/package/Config.in Added Paths: ----------- trunk/package/asterisk-gui/ trunk/package/asterisk-gui/Config.in trunk/package/asterisk-gui/asterisk-gui.mk trunk/package/asterisk-gui/configs/ trunk/package/asterisk-gui/configs/http.conf trunk/package/asterisk-gui/configs/manager.conf Modified: trunk/package/Config.in =================================================================== --- trunk/package/Config.in 2008-01-08 20:37:20 UTC (rev 1493) +++ trunk/package/Config.in 2008-01-08 23:34:04 UTC (rev 1494) @@ -29,6 +29,7 @@ source "package/alsa-utils/Config.in" source "package/arno-fw/Config.in" source "package/asterisk/Config.in" +source "package/asterisk-gui/Config.in" source "package/app_bundle/Config.in" source "package/mqueue-isdn/Config.in" source "package/digiumg729/Config.in" Added: trunk/package/asterisk-gui/Config.in =================================================================== --- trunk/package/asterisk-gui/Config.in (rev 0) +++ trunk/package/asterisk-gui/Config.in 2008-01-08 23:34:04 UTC (rev 1494) @@ -0,0 +1,7 @@ +config BR2_PACKAGE_ASTERISK-GUI + bool "asterisk-gui" + default n + help + The GUI for Asterisk 1.4. + + http://www.asterisk.org/ Added: trunk/package/asterisk-gui/asterisk-gui.mk =================================================================== --- trunk/package/asterisk-gui/asterisk-gui.mk (rev 0) +++ trunk/package/asterisk-gui/asterisk-gui.mk 2008-01-08 23:34:04 UTC (rev 1494) @@ -0,0 +1,70 @@ +############################################################# +# +# asterisk-gui +# +############################################################## +ASTERISK-GUI_VERSION := 1.4-r2051 +ASTERISK-GUI_SOURCE := asterisk-gui-$(ASTERISK-GUI_VERSION).tar.gz +ASTERISK-GUI_SITE := http://svn.digium.com/svn/asterisk-gui/trunk +ASTERISK-GUI_DIR := $(BUILD_DIR)/asterisk-gui-$(ASTERISK-GUI_VERSION) +ASTERISK-GUI_BINARY := tools/ztscan +ASTERISK-GUI_TARGET_BINARY := sbin/ztscan + +$(DL_DIR)/$(ASTERISK-GUI_SOURCE): + svn co -r 2051 $(ASTERISK-GUI_SITE) $(DL_DIR)/asterisk-gui-$(ASTERISK-GUI_VERSION) + (cd $(DL_DIR); tar czf $(ASTERISK-GUI_SOURCE) asterisk-gui-$(ASTERISK-GUI_VERSION)) + +$(ASTERISK-GUI_DIR)/.source: $(DL_DIR)/$(ASTERISK-GUI_SOURCE) + zcat $(DL_DIR)/$(ASTERISK-GUI_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(ASTERISK-GUI_DIR) package/asterisk-gui/ asterisk-gui\*.patch + touch $(ASTERISK-GUI_DIR)/.source + +$(ASTERISK-GUI_DIR)/.configured: $(ASTERISK-GUI_DIR)/.source + (cd $(ASTERISK-GUI_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/ \ + --exec-prefix=/usr \ + --libdir=/usr/lib \ + --includedir=/usr/include \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + ); + touch $(ASTERISK-GUI_DIR)/.configured; + +$(ASTERISK-GUI_DIR)/$(ASTERISK-GUI_BINARY): $(ASTERISK-GUI_DIR)/.configured + $(MAKE1) -C $(ASTERISK-GUI_DIR) HOSTCC=gcc $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" ASTETCDIR=$(TARGET_DIR)/stat/etc/asterisk \ + ASTVARLIBDIR=$(TARGET_DIR)/stat/var/lib/asterisk PBX_ZAPTEL=1 + +$(TARGET_DIR)/$(ASTERISK-GUI_TARGET_BINARY): $(ASTERISK-GUI_DIR)/$(ASTERISK-GUI_BINARY) + $(MAKE1) -C $(ASTERISK-GUI_DIR) HOSTCC=gcc $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" ASTETCDIR=$(TARGET_DIR)/stat/etc/asterisk \ + ASTVARLIBDIR=$(TARGET_DIR)/stat/var/lib/asterisk install + cp -a package/asterisk-gui/configs/* $(TARGET_DIR)/stat/etc/asterisk/ + +asterisk-gui: uclibc zaptel asterisk $(TARGET_DIR)/$(ASTERISK-GUI_TARGET_BINARY) + +asterisk-gui-source: $(DL_DIR)/$(ASTERISK-GUI_SOURCE) + +asterisk-gui-unpack: $(ASTERISK-GUI_DIR)/.configured + +asterisk-gui-clean: + rm -Rf $(TARGET_DIR)/stat/var/lib/asterisk/http-static + # leave the configs for now + +asterisk-gui-dirclean: + rm -rf $(ASTERISK-GUI_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_ASTERISK-GUI)),y) +TARGETS+=asterisk-gui +endif Added: trunk/package/asterisk-gui/configs/http.conf =================================================================== --- trunk/package/asterisk-gui/configs/http.conf (rev 0) +++ trunk/package/asterisk-gui/configs/http.conf 2008-01-08 23:34:04 UTC (rev 1494) @@ -0,0 +1,22 @@ +; +; Asterisk Builtin mini-HTTP server +; Modified for use with asterisk-gui in AstLinux +; +[general] +; +; Whether HTTP interface is enabled or not. Default is no. +; +enabled=yes +; +; Whether Asterisk should serve static content from http-static +; Default is no. +; +enablestatic=yes +; +; Address to bind to. Default is 0.0.0.0 +; +bindaddr=0.0.0.0 +; +; Port to bind to (default is 8088) +; +bindport=8088 Property changes on: trunk/package/asterisk-gui/configs/http.conf ___________________________________________________________________ Name: svn:executable + * Added: trunk/package/asterisk-gui/configs/manager.conf =================================================================== --- trunk/package/asterisk-gui/configs/manager.conf (rev 0) +++ trunk/package/asterisk-gui/configs/manager.conf 2008-01-08 23:34:04 UTC (rev 1494) @@ -0,0 +1,68 @@ +; +; AMI - The Asterisk Manager Interface +; Modified for use with asterisk-gui on AstLinux +; +; THIS IS INSECURE! CHANGE THE PASSWORD!!! +; +; Third party application call management support and PBX event supervision +; +; This configuration file is read every time someone logs in +; +; Use the "manager list commands" at the CLI to list available manager commands +; and their authorization levels. +; +; "manager show command <command>" will show a help text. +; +; ---------------------------- SECURITY NOTE ------------------------------- +; Note that you should not enable the AMI on a public IP address. If needed, +; block this TCP port with iptables (or another FW software) and reach it +; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager +; interface available over http if Asterisk's http server is enabled in +; http.conf and if both "enabled" and "webenabled" are set to yes in +; this file. Both default to no. httptimeout provides the maximum +; timeout in seconds before a web based session is discarded. The +; default is 60 seconds. +; +[general] +displaysystemname = yes +enabled = yes +webenabled = yes +port = 5038 + +httptimeout = 60 +; a) httptimeout sets the Max-Age of the http cookie +; b) httptimeout is the amount of time the webserver waits +; on a action=waitevent request (actually its httptimeout-10) +; c) httptimeout is also the amount of time the webserver keeps +; a http session alive after completing a successful action + +; THIS IS INSECURE! CHANGE THE BINDADDR!!! +bindaddr = 0.0.0.0 +;displayconnects = yes +; +; Add a Unix epoch timestamp to events (not action responses) +; +;timestampevents = yes + +; Web interface user for AstLinux + +; THIS IS INSECURE! CHANGE THE PASSWORD!!! +[admin] +secret = astlinux +read = system,call,log,verbose,command,agent,user,config +write = system,call,log,verbose,command,agent,user,config + +;[mark] +;secret = mysecret +;deny=0.0.0.0/0.0.0.0 +;permit=209.16.236.73/255.255.255.0 +; +; If the device connected via this user accepts input slowly, +; the timeout for writes to it can be increased to keep it +; from being disconnected (value is in milliseconds) +; +; writetimeout = 100 +; +; Authorization for various classes +;read = system,call,log,verbose,command,agent,user,config +;write = system,call,log,verbose,command,agent,user,config Property changes on: trunk/package/asterisk-gui/configs/manager.conf ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |