diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-11 18:10:20 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-11 18:10:20 +0200 |
commit | 49a20487e74aaa2fa17784c6c9d5a6179393e07c (patch) | |
tree | 3ace8aa439becc53f7187367a425ab3be1099169 /install | |
parent | 946c230e6f8e04c7dd8f92ca3190a51ac220f0ca (diff) |
move default-config to install dir
Diffstat (limited to 'install')
-rw-r--r-- | install/default-conf/asterisk/extensions.conf | 160 | ||||
-rw-r--r-- | install/default-conf/etc/apache/default | 47 | ||||
-rw-r--r-- | install/default-conf/etc/apache/https | 19 | ||||
-rw-r--r-- | install/default-conf/etc/crontab | 1 | ||||
-rw-r--r-- | install/default-conf/etc/festival.scm | 17 | ||||
-rw-r--r-- | install/default-conf/var_www_includes/config.php | 58 | ||||
-rw-r--r-- | install/default-conf/var_www_includes/config_IAX.php | 16 | ||||
-rw-r--r-- | install/default-conf/var_www_includes/config_db.php | 9 | ||||
-rw-r--r-- | install/default-conf/var_www_includes/config_jabber.php | 17 | ||||
-rw-r--r-- | install/default-conf/var_www_includes/config_modem.php | 10 |
10 files changed, 354 insertions, 0 deletions
diff --git a/install/default-conf/asterisk/extensions.conf b/install/default-conf/asterisk/extensions.conf new file mode 100644 index 00000000..54058e9d --- /dev/null +++ b/install/default-conf/asterisk/extensions.conf @@ -0,0 +1,160 @@ +; +; Static extension configuration file, used by +; the pbx_config module. This is where you configure all your +; inbound and outbound calls in Asterisk. +; +; This configuration file is reloaded +; - With the "extensions reload" command in the CLI +; - With the "reload" command (that reloads everything) in the CLI + +; +; The "General" category is for certain variables. +; +[general] +; +; If static is set to no, or omitted, then the pbx_config will rewrite +; this file when extensions are modified. Remember that all comments +; made in the file will be lost when that happens. +; +; XXX Not yet implemented XXX +; +static=yes +; +; if static=yes and writeprotect=no, you can save dialplan by +; CLI command 'save dialplan' too +; +writeprotect=no +; +; If autofallthrough is set, then if an extension runs out of +; things to do, it will terminate the call with BUSY, CONGESTION +; or HANGUP depending on Asterisk's best guess (strongly recommended). +; +; If autofallthrough is not set, then if an extension runs out of +; things to do, asterisk will wait for a new extension to be dialed +; (this is the original behavior of Asterisk 1.0 and earlier). +; +autofallthrough=yes +; +; If clearglobalvars is set, global variables will be cleared +; and reparsed on an extensions reload, or Asterisk reload. +; +; If clearglobalvars is not set, then global variables will persist +; through reloads, and even if deleted from the extensions.conf or +; one of its included files, will remain set to the previous value. +; +clearglobalvars=no +; +; If priorityjumping is set to 'yes', then applications that support +; 'jumping' to a different priority based on the result of their operations +; will do so (this is backwards compatible behavior with pre-1.2 releases +; of Asterisk). Individual applications can also be requested to do this +; by passing a 'j' option in their arguments. +; +priorityjumping=no +; +; You can include other config files, use the #include command +; (without the ';'). Note that this is different from the "include" command +; that includes contexts within other contexts. The #include command works +; in all asterisk configuration files. +;#include "filename.conf" + +; The "Globals" category contains global variables that can be referenced +; in the dialplan with ${VARIABLE} or ${ENV(VARIABLE)} for Environmental +; variables, +; ${${VARIABLE}} or ${text${VARIABLE}} or any hybrid +; +[globals] +CONSOLE=Console/dsp ; Console interface for demo +;CONSOLE=Zap/1 +;CONSOLE=Phone/phone0 +IAXINFO=guest ; IAXtel username/password +;IAXINFO=myuser:mypass +TRUNK=Zap/g2 ; Trunk interface +; +; Note the 'g2' in the TRUNK variable above. It specifies which group (defined +; in zapata.conf) to dial, i.e. group 2, and how to choose a channel to use in +; the specified group. The four possible options are: +; +; g: select the lowest-numbered non-busy Zap channel +; (aka. ascending sequential hunt group). +; G: select the highest-numbered non-busy Zap channel +; (aka. descending sequential hunt group). +; r: use a round-robin search, starting at the next highest channel than last +; time (aka. ascending rotary hunt group). +; R: use a round-robin search, starting at the next lowest channel than last +; time (aka. descending rotary hunt group). +; +TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0) +;TRUNK=IAX2/user:pass@provider + +; +; Any category other than "General" and "Globals" represent +; extension contexts, which are collections of extensions. +; +; Extension names may be numbers, letters, or combinations +; thereof. If an extension name is prefixed by a '_' +; character, it is interpreted as a pattern rather than a +; literal. In patterns, some characters have special meanings: +; +; X - any digit from 0-9 +; Z - any digit from 1-9 +; N - any digit from 2-9 +; [1235-9] - any digit in the brackets (in this example, 1,2,3,5,6,7,8,9) +; . - wildcard, matches anything remaining (e.g. _9011. matches +; anything starting with 9011 excluding 9011 itself) +; ! - wildcard, causes the matching process to complete as soon as +; it can unambiguously determine that no other matches are possible +; +; For example the extension _NXXXXXX would match normal 7 digit dialings, +; while _1NXXNXXXXXX would represent an area code plus phone number +; preceded by a one. +; +; Each step of an extension is ordered by priority, which must +; always start with 1 to be considered a valid extension. The priority +; "next" or "n" means the previous priority plus one, regardless of whether +; the previous priority was associated with the current extension or not. +; The priority "same" or "s" means the same as the previously specified +; priority, again regardless of whether the previous entry was for the +; same extension. Priorities may be immediately followed by a plus sign +; and another integer to add that amount (most useful with 's' or 'n'). +; Priorities may then also have an alias, or label, in +; parenthesis after their name which can be used in goto situations +; +; Contexts contain several lines, one for each step of each +; extension, which can take one of two forms as listed below, +; with the first form being preferred. One may include another +; context in the current one as well, optionally with a +; date and time. Included contexts are included in the order +; they are listed. +; +;[context] +;exten => someexten,priority[+offset][(alias)],application(arg1,arg2,...) +;exten => someexten,priority[+offset][(alias)],application,arg1|arg2... +; +; Timing list for includes is +; +; <time range>|<days of week>|<days of month>|<months> +; +;include => daytime|9:00-17:00|mon-fri|*|* +; +; ignorepat can be used to instruct drivers to not cancel dialtone upon +; receipt of a particular pattern. The most commonly used example is +; of course '9' like this: +; +;ignorepat => 9 +; +; so that dialtone remains even after dialing a 9. +; + +[Engelsystem] + +[default] +;exten => s,1,Playback(demo-abouttotry); +;exten => s,1,Dial(SIP/1023@camp.eventphone.de); +exten => s,1,Answer; +exten => s,2,Playback(beep); +exten => s,3,Festival(${msg}); +exten => s,4,Playback(beep); +exten => s,5,Festival(${msg}); +exten => s,6,Hangup; + diff --git a/install/default-conf/etc/apache/default b/install/default-conf/etc/apache/default new file mode 100644 index 00000000..49e60ba1 --- /dev/null +++ b/install/default-conf/etc/apache/default @@ -0,0 +1,47 @@ +NameVirtualHost *:80 +<VirtualHost *:80> + ServerAdmin webmaster@localhost + + DocumentRoot /var/www/http/ + php_admin_value open_basedir "/var/www/" + <Directory /> + Options FollowSymLinks + AllowOverride None + </Directory> + <Directory /var/www/http/> + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + # This directive allows us to have apache2's default start page + # in /apache2-default/, but still have / go to the right place + #RedirectMatch ^/$ /apache2-default/ + </Directory> + + ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ + <Directory "/usr/lib/cgi-bin"> + AllowOverride None + Options ExecCGI -MultiViews +SymLinksIfOwnerMatch + Order allow,deny + Allow from all + </Directory> + + ErrorLog /var/log/apache2/error.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel warn + + CustomLog /var/log/apache2/access.log combined + ServerSignature On + + Alias /doc/ "/usr/share/doc/" + <Directory "/usr/share/doc/"> + Options Indexes MultiViews FollowSymLinks + AllowOverride None + Order deny,allow + Deny from all + Allow from 127.0.0.0/255.0.0.0 ::1/128 + </Directory> + +</VirtualHost> diff --git a/install/default-conf/etc/apache/https b/install/default-conf/etc/apache/https new file mode 100644 index 00000000..aaa0bf3f --- /dev/null +++ b/install/default-conf/etc/apache/https @@ -0,0 +1,19 @@ + +<VirtualHost *:443> + # SSL (START) + SSLEngine on + SSLCertificateFile /etc/apache2/ssl/apache.pem + SSLCertificateKeyFile /etc/apache2/apache.pem + # SSL (ENDE) + ServerAdmin webmaster@localhost + #kann auch einfach eine IP sein + ServerName localhost + php_admin_value open_basedir "/var/www/" + DocumentRoot /var/www/https + <Directory /var/www/https> + Order Deny,Allow + Allow from all + # Zeige keine Verzeichnisse an + Options -Indexes + </Directory> +</VirtualHost> diff --git a/install/default-conf/etc/crontab b/install/default-conf/etc/crontab new file mode 100644 index 00000000..d58671bc --- /dev/null +++ b/install/default-conf/etc/crontab @@ -0,0 +1 @@ +*/15 * * * * www-data (cd /var/www/services/ ; php5 cron_dect.php) diff --git a/install/default-conf/etc/festival.scm b/install/default-conf/etc/festival.scm new file mode 100644 index 00000000..d39be33e --- /dev/null +++ b/install/default-conf/etc/festival.scm @@ -0,0 +1,17 @@ +;; Any site-wide Festival initialization can be added to this file. +;; It is marked as a configuration file, so your changes will be saved +;; across upgrades of the Festival package. +;; + + +; Server access list (hosts) +(set! server_access_list '("[^.]+" "127.0.0.1" "localhost.*")) + +;; Command for Asterisk begin +(define (tts_textasterisk string mode) + "(tts_textasterisk STRING MODE) + Apply tts to STRING. This function is specifically designed for + use in server mode so a single function call may synthesize the string. + This function name may be added to the server safe functions." + (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth (eval (list 'Utterance 'Text string))) 5) 8000))) + diff --git a/install/default-conf/var_www_includes/config.php b/install/default-conf/var_www_includes/config.php new file mode 100644 index 00000000..574c44ae --- /dev/null +++ b/install/default-conf/var_www_includes/config.php @@ -0,0 +1,58 @@ +<?php +// Adresse des Webservers +$url = "https://SEDENGELURL"; + +// Startverzeichnis des Engelhome +$ENGEL_ROOT = "/"; + +// Default-Theme auf der Startseite, 1=style1.css usw. +$default_theme = 10; + +// System disable message, ist ist set is: bages schow only this text +//$SystemDisableMessage="<H1>This system ist moved to a server in the BCC, you can in the moment only youse it in the in Engel Room</H1>"; + +// Anzahl der News, die auf einer Seite ausgeben werden koennen... +$DISPLAY_NEWS = 6; + +// Anzahl Stunden bis zum Austragen eigener Schichten +$LETZTES_AUSTRAGEN=3; + +//Setzt den zu verwendenden Crypto algorismis +// mp5 oder crypt +// achtung crypt schaltet password �ndern ab +$crypt_system="md5"; +//$crypt_system="crypt"; + +// timezonen offsett +$gmdateOffset=3600; + +// f�r Developen 1, sonst = 0 +$debug = 0; + +// SSL Cert-KEY +$show_SSLCERT = "MD5:<br>MD5SED<br>\n". + "SHA1:<br>SHA1SED"; + +//globale const. fuer schischtplan +$GlobalZeileProStunde = 4; + +//Tempdir +$Tempdir="./tmp"; + +// local timezone +date_default_timezone_set("Europe/Berlin"); + +//Pentabarf ConferenzDI f�r UpdateDB +$PentabarfXMLhost = "cccv.pentabarf.org"; +$PentabarfXMLpath = "Xcal/conference/"; +$PentabarfXMLEventID = "31"; +$PentabarfGetWith = "fsockopen"; // "fsockopen"/"fopen"/"wget"/"lynx" + + +//Mailing List: is is not defined, the option is not shown +//$SubscribeMailinglist = "*-subscribe@lists.*"; + +/// Passord for external Authorization, function only active if the var is defined +//$CurrentExternAuthPass = 23; + +?> diff --git a/install/default-conf/var_www_includes/config_IAX.php b/install/default-conf/var_www_includes/config_IAX.php new file mode 100644 index 00000000..87c3d8ea --- /dev/null +++ b/install/default-conf/var_www_includes/config_IAX.php @@ -0,0 +1,16 @@ +<?php + +$IAXenable = TRUE; + +//Setting Asterisk +$IAXcontent="Engelsystem"; +$IAXserver="voip.eventphone.de"; + +//Asterisk output dir +$AsteriskOutputDir="/var/spool/asterisk/outgoing"; + +// enable DEBUG messages +//$DebugDECT = 1; +dd + +?> diff --git a/install/default-conf/var_www_includes/config_db.php b/install/default-conf/var_www_includes/config_db.php new file mode 100644 index 00000000..d07529c0 --- /dev/null +++ b/install/default-conf/var_www_includes/config_db.php @@ -0,0 +1,9 @@ +<?php + + +// MySQL-Connection Settings +$config['host'] = "localhost"; +$config['user'] = "root"; +$config['pw'] = ""; +$config['db'] = "engelsystem"; +?> diff --git a/install/default-conf/var_www_includes/config_jabber.php b/install/default-conf/var_www_includes/config_jabber.php new file mode 100644 index 00000000..13cd3538 --- /dev/null +++ b/install/default-conf/var_www_includes/config_jabber.php @@ -0,0 +1,17 @@ +<?php + + $server = "jabber.berlin.ccc.de"; + $port = "5222"; + + $username = ""; + $password = ""; + $resource = ""; + + $jabber_recipient = array( "xyz@jabber.berlin.ccc.de", + "xyz2@jabber.berlin.ccc.de", + ); + + $mail_subject = "Pentabarf Error"; + $mail_recipient = array("xyz@abc.de", "xyz@abc.de"); + +?> diff --git a/install/default-conf/var_www_includes/config_modem.php b/install/default-conf/var_www_includes/config_modem.php new file mode 100644 index 00000000..e6542fc4 --- /dev/null +++ b/install/default-conf/var_www_includes/config_modem.php @@ -0,0 +1,10 @@ +<?php + // ist ein modem angeschlossen + $ModemEnable = false; + + // COM port + $ModemDev ="/dev/ttyS0"; + + // vorwahl, bei tnovis telefonanlage fuer das programmieren von weckrufen + $WakeupNumber="**3"; +?> |