From b2e905a6ca6b85153e58917f0920aec8e0444168 Mon Sep 17 00:00:00 2001 From: Thomas Noel Date: Tue, 4 Mar 2008 11:37:50 +0000 Subject: [PATCH] premier commit (version 1.4-24) --- Makefile | 13 + contrib/ast-conf/asterisk/Makefile | 20 + contrib/ast-conf/asterisk/ast-conf | 181 +++++++ contrib/ast-conf/asterisk/utilisateurs | 1 + contrib/ast-conf/cgi/autoconfig-username.cgi | 201 +++++++ contrib/ast-conf/cgi/base.cfg | 144 +++++ contrib/ast-conf/cgi/httpd.conf | 7 + contrib/ast-conf/cgi/utilisateurs | 20 + contrib/ast-conf/ls-firmware-ip5 | 44 ++ debian/README.Debian | 23 + debian/changelog | 701 ++++++++++++++++++++++++ debian/compat | 1 + debian/config | 122 +++++ debian/control | 33 ++ debian/copyright | 10 + debian/docs | 1 + debian/postinst | 282 ++++++++++ debian/rules | 98 ++++ debian/templates | 43 ++ etc-asterisk/adsi.conf | 8 + etc-asterisk/adtranvofr.conf | 39 ++ etc-asterisk/agents.conf | 105 ++++ etc-asterisk/alarmreceiver.conf | 80 +++ etc-asterisk/amd.conf | 18 + etc-asterisk/cdr.conf | 148 ++++++ etc-asterisk/cdr_custom.conf | 10 + etc-asterisk/cdr_manager.conf | 6 + etc-asterisk/codecs.conf | 65 +++ etc-asterisk/dnsmgr.conf | 5 + etc-asterisk/dundi.conf | 242 +++++++++ etc-asterisk/enum.conf | 25 + etc-asterisk/extconfig.conf | 65 +++ etc-asterisk/extensions.conf | 369 +++++++++++++ etc-asterisk/features.conf | 100 ++++ etc-asterisk/festival.conf | 35 ++ etc-asterisk/followme.conf | 86 +++ etc-asterisk/gtalk.conf | 19 + etc-asterisk/http.conf | 40 ++ etc-asterisk/iax.conf | 289 ++++++++++ etc-asterisk/iaxprov.conf | 81 +++ etc-asterisk/indications.conf | 733 ++++++++++++++++++++++++++ etc-asterisk/jabber.conf | 18 + etc-asterisk/logger.conf | 69 +++ etc-asterisk/manager.conf | 58 ++ etc-asterisk/meetme.conf | 30 ++ etc-asterisk/misdn.conf | 433 +++++++++++++++ etc-asterisk/modules.conf | 266 ++++++++++ etc-asterisk/musiconhold.conf | 80 +++ etc-asterisk/osp.conf | 72 +++ etc-asterisk/privacy.conf | 3 + etc-asterisk/queues.conf | 311 +++++++++++ etc-asterisk/res_snmp.conf | 10 + etc-asterisk/rtp.conf | 23 + etc-asterisk/say.conf | 171 ++++++ etc-asterisk/sip.conf | 574 ++++++++++++++++++++ etc-asterisk/sip_notify.conf | 22 + etc-asterisk/users.conf | 82 +++ etc-asterisk/voicemail.conf | 239 +++++++++ etc-asterisk/zapata.conf | 670 +++++++++++++++++++++++ 59 files changed, 7644 insertions(+) create mode 100644 Makefile create mode 100644 contrib/ast-conf/asterisk/Makefile create mode 100755 contrib/ast-conf/asterisk/ast-conf create mode 100644 contrib/ast-conf/asterisk/utilisateurs create mode 100755 contrib/ast-conf/cgi/autoconfig-username.cgi create mode 100644 contrib/ast-conf/cgi/base.cfg create mode 100644 contrib/ast-conf/cgi/httpd.conf create mode 100644 contrib/ast-conf/cgi/utilisateurs create mode 100755 contrib/ast-conf/ls-firmware-ip5 create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100755 debian/config create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/postinst create mode 100755 debian/rules create mode 100644 debian/templates create mode 100644 etc-asterisk/adsi.conf create mode 100644 etc-asterisk/adtranvofr.conf create mode 100644 etc-asterisk/agents.conf create mode 100644 etc-asterisk/alarmreceiver.conf create mode 100644 etc-asterisk/amd.conf create mode 100644 etc-asterisk/cdr.conf create mode 100644 etc-asterisk/cdr_custom.conf create mode 100644 etc-asterisk/cdr_manager.conf create mode 100644 etc-asterisk/codecs.conf create mode 100644 etc-asterisk/dnsmgr.conf create mode 100644 etc-asterisk/dundi.conf create mode 100644 etc-asterisk/enum.conf create mode 100644 etc-asterisk/extconfig.conf create mode 100644 etc-asterisk/extensions.conf create mode 100644 etc-asterisk/features.conf create mode 100644 etc-asterisk/festival.conf create mode 100644 etc-asterisk/followme.conf create mode 100644 etc-asterisk/gtalk.conf create mode 100644 etc-asterisk/http.conf create mode 100644 etc-asterisk/iax.conf create mode 100644 etc-asterisk/iaxprov.conf create mode 100644 etc-asterisk/indications.conf create mode 100644 etc-asterisk/jabber.conf create mode 100644 etc-asterisk/logger.conf create mode 100644 etc-asterisk/manager.conf create mode 100644 etc-asterisk/meetme.conf create mode 100644 etc-asterisk/misdn.conf create mode 100644 etc-asterisk/modules.conf create mode 100644 etc-asterisk/musiconhold.conf create mode 100644 etc-asterisk/osp.conf create mode 100644 etc-asterisk/privacy.conf create mode 100644 etc-asterisk/queues.conf create mode 100644 etc-asterisk/res_snmp.conf create mode 100644 etc-asterisk/rtp.conf create mode 100644 etc-asterisk/say.conf create mode 100644 etc-asterisk/sip.conf create mode 100644 etc-asterisk/sip_notify.conf create mode 100644 etc-asterisk/users.conf create mode 100644 etc-asterisk/voicemail.conf create mode 100644 etc-asterisk/zapata.conf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..085d772 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: + +deb: + dpkg-buildpackage -rfakeroot -tc + +clean: + +install: install-conf + +install-conf: + mkdir -p $(DESTDIR)/etc/asterisk/auf + cp etc-asterisk/* $(DESTDIR)/etc/asterisk/ + diff --git a/contrib/ast-conf/asterisk/Makefile b/contrib/ast-conf/asterisk/Makefile new file mode 100644 index 0000000..9b89acf --- /dev/null +++ b/contrib/ast-conf/asterisk/Makefile @@ -0,0 +1,20 @@ +reload: iax.local.auto extensions.local.auto sip.local.auto voicemail.local.auto /srv/www/ipphones/utilisateurs + # /etc/init.d/asterisk reload + touch reload + +iax.local.auto : utilisateurs ast-conf + perl -w ./ast-conf iax $@ + + +voicemail.local.auto : utilisateurs ast-conf + perl -w ./ast-conf voicemail $@ + +sip.local.auto : utilisateurs ast-conf + perl -w ./ast-conf sip $@ + +extensions.local.auto : utilisateurs ast-conf + perl -w ./ast-conf ext $@ + +/srv/www/ipphones/utilisateurs : utilisateurs ast-conf + perl -w ./ast-conf autoconf utilisateurs-autoconf + mv utilisateurs-autoconf $@ diff --git a/contrib/ast-conf/asterisk/ast-conf b/contrib/ast-conf/asterisk/ast-conf new file mode 100755 index 0000000..c732a1a --- /dev/null +++ b/contrib/ast-conf/asterisk/ast-conf @@ -0,0 +1,181 @@ +#!/usr/bin/perl -w +# -*-cperl-*- +# $Id$ +################################################################################ + +# fichier pour recuperer le prefixe local (pour peupler le champ +# callerid) +my $conf_asterisk="/etc/asterisk/auf/extensions-globals.local"; + +# fichier ou on stocke les infos pour le cgi d'autoconf +my $autoconf_old="/srv/www/ipphones/utilisateurs"; + +################################################################################ + +use strict; +use Switch; + +sub table_iax($$$$$); +sub table_sip($$$$$); +sub table_ext($$); +sub table_voicemail($$$$); +sub table_autoconf($$); +sub usage(); + +my %anciennes_extensions=(); + +# type de table a generer +my $table=(@ARGV ? $ARGV[0] : "undef"); +my $tables_connues="(iax|sip|ext|autoconf|voicemail)"; + +usage() unless ($table =~ /^$tables_connues$/); + +my $PREFIXE=0; + +# lire la conf' +open CONF,"$conf_asterisk" or die "$conf_asterisk : $!"; +while() + { + $PREFIXE = $1 if(/^AUFPREFIXLOCAL\s*=\s*(\d+)/); + } +close CONF; + +die "il manque la variable AUFPREFIXLOCAL dans $conf_asterisk" unless ($PREFIXE); + +print ";\n;\n; ATTENTION. LA CREATION DE CE FICHIER EST AUTOMATIQUE. MODIFIER LE FICHIER 'utilisateurs'\n; PUIS LANCER UN 'make'\n;\n;\n" + unless ($table eq "autoconf"); + +while() +{ + chomp; + + # passer les lignes vides + next if(/^\s*$/); + + my ($ext,$ip,$username,$fullname,$pass,$passmail)=split(/,/); + + die "pas de mot de passe ?" unless(defined($pass)); + + $ip = "dynamic" unless($ip); + + switch ($table) { + case "iax" { table_iax($ext,$username,$fullname,$pass,$ip);} + case "sip" { table_sip($ext,$username,$fullname,$pass,$ip);} + case "ext" { table_ext($ext,$username);} + case "autoconf" { table_autoconf($ext,$username);} + case "voicemail" { table_voicemail($ext,$username,$fullname,$passmail);} + else + { + } + } +} + +# a changer pour la table "iax" : fixer l'ip quand elle est connue +sub table_iax($$$$$) +{ + my ($ext,$username,$fullname,$pass,$ip) = @_; + + my $HOST= ($ip ne "dynamic" ? "defaultip=$ip":""); + + print < +mailbox=$ext\@AUF +user=$username +secret=$pass +context=AUF +host=dynamic +disallow=all +allow=ulaw +$HOST + +EOT + +} + + +# a changer pour la table "iax" : fixer l'ip quand elle est connue +sub table_sip($$$$$) +{ + my ($ext,$username,$fullname,$pass,$ip) = @_; + + print < +mailbox=$ext\@default +username=$username +secret=$pass +context=AUF +host=dynamic +disallow=all +allow=ulaw + +EOT + +} + +sub table_ext($$) +{ + my ($ext,$username) = @_; + print < $ext,1,Macro(AUFDial,$username) +EOT + +} + +sub table_voicemail($$$$) +{ + my ($ext,$username,$fullname,$passmail) = @_; + print <-$passmail,$fullname,$username\@auf.org +EOT + +} + +sub table_autoconf($$) +{ + my ($ext,$username) = @_; + my ($old_ext,$version) = ancienne_extension($username); + + # on utlisate l'extension "globale" pour configurer les telephones + $ext = "$PREFIXE$ext"; + + $version ++ if($ext != $old_ext); + print "$username $ext $version\n"; +} + +sub usage() + { + print STDERR "usage : $0 $tables_connues ) + { + my ($user,$ext,$version)=("undef","0","0"); + my @ligne = split(/\s+/); + + $user = $ligne[0] if (@ligne > 0); + $ext = $ligne[1] if (@ligne > 1); + $version = $ligne[2] if (@ligne > 2); + $anciennes_extensions{$user}="$ext,$version"; + } + close FILE; + } + $anciennes_extensions{"init"}="fait"; + } + ($ext,$version) = split(/,/,$anciennes_extensions{$utilisateur}) if (defined($anciennes_extensions{$utilisateur})); + return ($ext,$version); +} diff --git a/contrib/ast-conf/asterisk/utilisateurs b/contrib/ast-conf/asterisk/utilisateurs new file mode 100644 index 0000000..070a9e9 --- /dev/null +++ b/contrib/ast-conf/asterisk/utilisateurs @@ -0,0 +1 @@ +107,10.196.1.98,jerome.santini,Jerome Santini,motdepasse,CODEVOICEMAL diff --git a/contrib/ast-conf/cgi/autoconfig-username.cgi b/contrib/ast-conf/cgi/autoconfig-username.cgi new file mode 100755 index 0000000..71911d3 --- /dev/null +++ b/contrib/ast-conf/cgi/autoconfig-username.cgi @@ -0,0 +1,201 @@ +#!/usr/bin/perl -w + +################################################################################ +# CONFIGURATION +################################################################################ + +# a deplacer dans un fichier de conf "ipphones.conf" dans le repertoire courant + +my $dir = "/srv/www/ipphones"; +my $firmware_re = '^ipphone5-(\d{3})-auf(\d{1,2}).bin'; +my $base_conf = "base.cfg"; +my $utilisateurs = "utilisateurs"; + +my $debug=0; + +################################################################################ +use strict; +sub current_firmware(); +sub configuration_version($); +sub version_file($); +sub version_extension($); +sub extension_utilisateur($); +sub texte_a_envoyer($); +sub fichier_a_envoyer($); +sub envoyer_texte(); + +my $req = $ENV{QUERY_STRING}; + +my $texte_retour = ""; + +my ($type,$file) = split(/=/,$req); + +die "type : $type" unless($type =~ m/^(set|cfg)$/); +die "file : $file" unless($file =~ m/^[a-z][.-a-z]*/); + +print "$type/$file\n" if($debug); + +chdir($dir); + +if($type eq "set") +{ +my $firmware = current_firmware(); +my $configuration = configuration_version($file); + +texte_a_envoyer(<); + close LS; + if(@firmware && $firmware[$#firmware] =~ /$firmware_re/) + { + my $nom_firmware = $firmware[$#firmware]; + chomp $nom_firmware; + $retour = "$nom_firmware:".version_firmware($nom_firmware); + } + return $retour; +} + +# retourne le numero de serie d'un fichier de conf +# zero si le fichier n'existe pas +sub version_file($) +{ + my ($file) = @_; + my $retour=0; + + print "FILE:$file\n" if($debug); + + if(open FILE,$file) + { + while() + { + $retour = $1 if(/#\s*SERIE\s*:\s*(\d+)/); + } + close FILE; + } + return $retour; +} + +# retourne le numero de serie associe a une extension +# 0 si pas de numero de version +sub version_extension($) +{ + my ($utilisateur) = @_; + + my $version = 0; + if(open(FILE,"$utilisateurs")) + { + while() + { + $version = $1 if(/^$utilisateur\s+\d+\s+(\d+)/); + } + close FILE; + } + return $version; +} + +# Calculer la version associee a un utilisateur +sub configuration_version($) +{ + my $retour = 0; + my ($user) = @_; + + $retour = version_file($base_conf) + version_file("$user.cfg"); + $retour += version_extension($user); +} + + +# retourne l'extension associee a un utilisateurs, si le fichier $utilisateurs existe bien +# et zero si pas d'info disponible +sub extension_utilisateur($) +{ + my ($utilisateur) = @_; + my $extension = 0; + if(open(FILE,"$utilisateurs")) + { + while() + { + $extension = $1 if(/^$utilisateur\s+(\d+)/); + } + close FILE; + } + return $extension; +} + +################################################################################ +# CGI !! + +# a ajouter au texte de reponse a la requete +sub texte_a_envoyer($) +{ + $texte_retour .= $_[0]; +} + +sub fichier_a_envoyer($) +{ + my ($fichier) = @_; + open FILE,$fichier or die "$fichier : $!"; + map {texte_a_envoyer($_)} (grep {! /^(#.*|\s*)$/} ); + close FILE; +} + +# reponse effective a la requete : balancer tout ce qui a ete accumule via a_envoyer() +sub envoyer_texte() +{ + my $longueur = length($texte_retour); + print "Content-Length: $longueur\nContent-Type: text/plain\n\n"; + print $texte_retour; +} diff --git a/contrib/ast-conf/cgi/base.cfg b/contrib/ast-conf/cgi/base.cfg new file mode 100644 index 0000000..dc70829 --- /dev/null +++ b/contrib/ast-conf/cgi/base.cfg @@ -0,0 +1,144 @@ +# +# Configuration de base pour tous les postes +# +# NUMERO DE SERIE DE LA CONFIGURATION : doit être incrémenté à chaque +# modification +# +# Attention ! Laisser cette ligne en commentaire !! +# SERIE:4 + +# Paramètres protocoles IAX2 +############################# + +protocol = iax2 +service = 1 + +# serviceaddr : adresse du serveur IAX2 (asterisk) +serviceaddr = voip.sn.auf +registerttl = 120 +# phonenumber: numéro de téléphone de l'appareil (format 00paysnuméro) +# phonenumber = 002211221 +# account : nom du compte IAX +# account = thomas.noel +# pin : mot de passe du compte IAX +# pin = zutdezut +# localport = 4569 +# dmtf : 0=inband audio, 1=outband signal +dtmf = 1 +remotedialplan = 0 +# phonenumber = 00999 + +# Paramètres système +##################### + +deviceattr = 1 + +## Mise à jour automatique au démarrage +# upgradetype : 0=disable, 1=all, 2=mac, 3=pppid, 4=account, 5=phonenumber +upgradetype = 4 +upgradeaddr = http://ipphones.sn.auf + +## Heure + +# sntpip : adresse IP du serveur NTP +sntpip = 213.154.65.66 +# timezone : fuseau horaire, voir l'interface web pour la liste complete +timezone = 26 +# daylight : suivre l'heure d'été (0/1) +daylight = 0 + +## Debug +# Laisser à "no check" sauf si vous savez ce que vous faites +# debug : 0=disable, 1=output, 2=output all, 3=remote debug, 4=no check +debug = 4 + + +vlan = 0 +vlanid = 0 + +## IPv4 + +# iptype : type de configuration IP : 0=static, 1=dhcp, 2=pppoe, 3=modem + +# iptype=0 +# ip = 192.168.1.100 +# subnetmask = 255.255.255.0 +# router = 192.168.1.1 +# dns = 192.168.1.1 +# dns2 = 192.168.1.2 + +iptype=1 + +# iptype=2 +# pppid = +# ppppin = +# dns = 192.168.1.1 +# dns2 = 192.168.1.2 + +# iptype=3 +# pppid = +# ppppin = + + +# Paramètres audio +################### + +# codecs : 0=g729, 1=g7231, 2=g711u, 3=g711a, 4=gsm, 5=iLBDC, 6=null +codec1 = 2 +codec2 = 6 +codec3 = 6 +codec4 = 6 +codec5 = 6 +codec6 = 6 + +# Voice Activity Detection +vad = 1 +# Automatic Gain Control +agc = 0 +# Audio Echo Canceller +aec = 1 + +audioframes = 2 +jittersize = 0 + +# ilbcpayload : spécifique au codec ILBC +ilbcpayload = 97 +# 6.3k : haute résolution pour le codec g.723.1 (0/1) +6.3k = 1 + +## Volumes +# Combiné +handsetin = 7 +handsetout = 20 +# Mode mains libres +speakerin = 12 +speakerout = 20 + +## Sonnerie +# ringtype : 0=dtmf, 1=not disturb, 2=user define, 3=advanced +ringtype = 0 + +# Paramètres de numérotation +############################# + +# dialplan : 0=disable, 1=enable, 2=dialnum, 3=prefix, 4=hotline +dialplan = 0 +dialnumber = +dddcode = 10 +iddcode = +iddprefix = +dddprefix = +# innerline : 0=disable, 1=enable, 2=omit prefix +innerline = 0 +innerlineprefix = + +# très important : permet de recevoir un appel alors qu'on est déjà en communication +callwaiting = 1 +fwdnumber = +fwdpoweroff = 0 +fwdnoanswer = 0 +fwdalways = 0 +fwdbusy = 0 +answer = 30 +digitmap = 0 + diff --git a/contrib/ast-conf/cgi/httpd.conf b/contrib/ast-conf/cgi/httpd.conf new file mode 100644 index 0000000..bd28640 --- /dev/null +++ b/contrib/ast-conf/cgi/httpd.conf @@ -0,0 +1,7 @@ + + ServerName ipphones.sn.auf + RewriteEngine on + RewriteRule ^/(.*)\.(set|cfg)$ /autoconfig?$2=$1 [passthrough] + ScriptAlias /autoconfig /srv/www/ipphones/autoconfig-username.cgi + DocumentRoot /srv/www/ipphones + diff --git a/contrib/ast-conf/cgi/utilisateurs b/contrib/ast-conf/cgi/utilisateurs new file mode 100644 index 0000000..362c332 --- /dev/null +++ b/contrib/ast-conf/cgi/utilisateurs @@ -0,0 +1,20 @@ +oulimata.dieye 002211101 0 +michel.guerrero 002211102 0 +janine.magnier 002211103 0 +diaw.diagne 002211104 0 +abdelkader.galy 002211105 0 +fanta.badji 002211106 0 +jerome.santini 002221107 7 +francois.sambou 002211109 0 +aminata.sakho 002211110 0 +josette.shaje-tshiluila 002211116 0 +matel.kane 002211118 0 +fabar.sane 002211123 0 +thioro.sow 002211124 0 +balla.fall 002211202 0 +zoser.biziki 002211203 0 +thomas.noel 002211206 0 +cheikh.fall 002211217 0 +bienvenu.gbedeko 002211219 0 +jean-pierre.salleras 002211222 0 +faustina.mekui-biyoo 002211223 0 diff --git a/contrib/ast-conf/ls-firmware-ip5 b/contrib/ast-conf/ls-firmware-ip5 new file mode 100755 index 0000000..5f24d8a --- /dev/null +++ b/contrib/ast-conf/ls-firmware-ip5 @@ -0,0 +1,44 @@ +#!/bin/bash +# $Id$ + +# pour faire le bilan des version de firmware et de configuration pour les telephones connus + +WWW=/srv/www/ipphones +BASE=$WWW/base.cfg +UTILISATEURS=/etc/asterisk/auf/utilisateurs +VERSIONS=$WWW/utilisateurs + +# retourne le username associe a une ip +username_ip () { + grep ",$1," $UTILISATEURS|cut -d, -f 3 +} + + +version_fichier () { + if [ -f $1 ] ; then + sed 's/^.*SERIE *: *\([0-9]*\).*$/\1/p;d' $1 + else + echo 0 + fi +} + +# retourne la version de conf' associe a un utilisateur particulier +version_username () { + version_ext=$(grep "^$1 " $VERSIONS |cut -d ' ' -f 3) + version_cfg=$(version_fichier "$WWW/$user.cfg") + echo $(($version_ext + $version_cfg)) +} + +VERSION_BASE=$(version_fichier $BASE) + + echo " IP Version telephone Serveur" + +# pour verifier la version du firmware sur les telephones connus : +cut -d, -f 2 /etc/asterisk/auf/utilisateurs|egrep -v '^\s*$'|sort -n| +while read ip + do + user=$(username_ip $ip) + version=$(( $(version_username $user) + $VERSION_BASE)) + VERSION=$(wget -qO - http://$ip|grep AUF|sed 's|.*||;s|.*||') + printf "%-12s | %24s | CFG%02d |\n" "$ip" "$VERSION" "$version" +done diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..e0cede6 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,23 @@ +asterisk-config-auf +------------------- + +Configuration spécifique à l'AUF pour Asterisk. + +Ce paquet installe des versions de base des fichiers /etc/asterisk/*.conf +qui font des #inclure. + +Il créée aussi des fichiers dans /etc/asterisk/auf/ par défaut pour la gestion +des clients : + /etc/asterisk/auf/iax.local : comptes IAX2 + /etc/asterisk/auf/sip.local : comptes IAX2 + /etc/asterisk/auf/extensions.local : numérotation associée. + +Ce sont ces fichiers (et aucun autre) qu'il faut configurer pour ajouter des +postes téléphoniques locaux à l'implantatin. + + +Le reste de la configuration (gestion des connexions inter-implantation) est +contenu dans le paquet asterisk-config-auf-connexions. C'est ce paquet, plus +petit, qui changera à chaque nouveau noeud ajouté. + + -- Thomas NOEL , Tue, 13 Dec 2005 15:45:34 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d042d8f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,701 @@ +asterisk-config-auf (1.4-24) unstable; urgency=low + + * rtp.conf: SIP n'utilisera rtp qu'entre 61001/udp et 62000/udp, pour ceux + qui veulent laisser passer SIP sur leur pare-feu sans passer par + sip_conntrack (qui ne marche sans doute pas toujours vu les "n" façons de + faire du SIP et des annonces rtp avec) + * iax.conf : on retire ilbc et speex des codecs autorisés, ils posent encore + des soucis (notamment pas de liaison ilbc<->ulaw et autres joyeusetés) + + -- Thomas Noel Wed, 27 Feb 2008 16:21:05 +0000 + +asterisk-config-auf (1.4-23) unstable; urgency=low + + * sip.conf : ajout peer SIP vers le pont in2p3 + * extensions.conf : *341 appelle le pont in2p3 + * sip.conf : par defaut "dtmfmode=auto" et autorisation des codecs video + h263p et h264 + + -- Thomas Noel Wed, 27 Feb 2008 15:28:41 +0000 + +asterisk-config-auf (1.4-22) unstable; urgency=low + + * debian/config: un petit 2>/dev/null pour éviter un message pas joli lors + d'une installation fraiche (sans conséquence) + * debian/control: Architecture: all voyons Thomas mais mais mais + + -- Thomas Noel Tue, 26 Feb 2008 18:47:12 +0000 + +asterisk-config-auf (1.4-21) unstable; urgency=low + + * debian/templates: dans la vie, l'essentiel, c'est d'insister. Et aussi de + ne pas utiliser debconf quand ça sert à rien, si j'avais su j'aurais pas + venu et tout ça + + -- Thomas Noel Tue, 26 Feb 2008 16:43:56 +0000 + +asterisk-config-auf (1.4-20) unstable; urgency=low + + * debian/templates: dans le genre detail qui tue, un "." oublié au début + d'une ligne d'un templates debconf... et boum... + + -- Thomas Noel Tue, 26 Feb 2008 16:35:08 +0000 + +asterisk-config-auf (1.4-19) unstable; urgency=low + + * debian/config: cette fois ça devrait marcher, avec un message plus clair + notamment en cas de première installation d'Asterisk (message moins + alarmant) + + -- Thomas Noel Tue, 26 Feb 2008 15:59:47 +0000 + +asterisk-config-auf (1.4-18) unstable; urgency=low + + * debian/config: aucune question a poser si aucune cle privee... + + -- Thomas Noel Tue, 26 Feb 2008 15:47:32 +0000 + +asterisk-config-auf (1.4-17) unstable; urgency=low + + * etc-asterisk/manager.conf : activation de l'AMI par defaut sur + 127.0.0.1:5038/tcp, pour de futures operations... Sur 127.0.0.1 le + risque de sécurité est minimal. + + -- Thomas Noel Tue, 26 Feb 2008 09:52:17 +0000 + +asterisk-config-auf (1.4-16) unstable; urgency=low + + * etc-asterisk/iaxprov.conf: j'ajoute ce fichier, car il suit un nouveau format + au moins pour la variable "tos". Ca evite les warnings qui se produisent + si on laisse trainer le fichier de 1.2. NOTE : ce fichier ne sert a RIEN, + c'est pour du matos iax du 18eme siecle. + + -- Thomas Noel Wed, 20 Feb 2008 18:49:10 +0000 + +asterisk-config-auf (1.4-15) unstable; urgency=low + + * debian/config: mkdir -p /usr/share/asterisk/keys avant toute autre, pour + etre sur qu'il existe... + + -- Thomas Noel Wed, 20 Feb 2008 18:22:45 +0000 + +asterisk-config-auf (1.4-14) unstable; urgency=low + + * debian/control: dependance sur asterisk-app-conference 2.0 car + extensions.conf utilise une syntaxe pour cette version (plus de /S). + Effet de bord interessant : devrait aider un "aptitude install asterisk" + a faire l'upgrade depuis 1.2 directement. + * debian/control: mise a jour description (c'est quoi ast-moh-auf) + + -- Thomas Noel Wed, 20 Feb 2008 15:03:37 +0000 + +asterisk-config-auf (1.4-13) unstable; urgency=low + + * debian/config: copie des clés vers /usr/share, ça se passe maintenant ici... + C'est beurk ? JE SAIS ! Espérons que ça marche en tout cas, parce que + je fatigue un peu à étudier le processus d'upgrade dpkg dans les détails + + -- Thomas Noel Tue, 19 Feb 2008 16:39:15 +0000 + +asterisk-config-auf (1.4-12) unstable; urgency=low + + * debian/preinst: retiré, c'est pas le bon endroit pour migrer les clefs + vers /usr/share + * extensions.conf: nouvelle syntaxe pour passer en français : Set(CHANNEL(language)=fr) + * extensions.conf: retrait du flag /S pour Conference(), il n'a plus le même + sens avec app-conference 2.0 + + -- Thomas Noel Tue, 19 Feb 2008 15:59:38 +0000 + +asterisk-config-auf (1.4-11) unstable; urgency=low + + * etc-asterisk/zapata.conf : ajouté, avec seulement un include + * debian/postinst : creation d'un auf/zapata.local s'il n'existe pas (pour + ne pas faire planter l'include de zapata.conf) + + -- Thomas Noel Tue, 19 Feb 2008 12:11:57 +0000 + +asterisk-config-auf (1.4-10) unstable; urgency=low + + * debian/preinst: en cas d'upgrade, copie des clefs vers /usr/share + + -- Thomas Noel Tue, 19 Feb 2008 12:02:09 +0000 + +asterisk-config-auf (1.4-9) unstable; urgency=low + + * debian/templates, debian/config : clefs dans /usr/share/asterisk/keys (et + non plus dans /var/lib/asterisk/keys) + + -- Thomas Noel Tue, 19 Feb 2008 10:42:12 +0000 + +asterisk-config-auf (1.4-8) unstable; urgency=low + + * debian/config: tente d'etre le plus ruse possible pour deviner le nom + d'implantation voip et le nom de la cle + * debian/templates: quelqeus precisions lors des messages affiches à + l'écran... + * debian/postinst: par defaut, AUFAUTH="auf-ville:[auf-ville]" + + -- Thomas Noel Mon, 18 Feb 2008 18:23:24 +0000 + +asterisk-config-auf (1.4-7) unstable; urgency=low + + * debian/postinst: adduser synchro avec celui d'asterisk 1.4 + + -- Thomas Noel Mon, 18 Feb 2008 15:46:35 +0000 + +asterisk-config-auf (1.4-6) unstable; urgency=low + + * extensions.conf : on utilise DPickup a la place de Pickup. Pickup etait + dans asterisk 1.2-auf la version "bristuff". Dans asterisk 1.4 Pickup + reste le Pickup original d'asterisk (avec la notion de groupe, à + re-tester) et la version de bristuff s'appelle DPickup. + * extensions.conf : "writeprotect=yes" au debut. Le fichier appartient à + root donc asterisk ne pourra de toute façon pas le modifier, mais avec + writeprotect=yes on a encore une petite protection en plus. + * res_snmp.conf : on n'active pas snmp par défaut avant d'avoir bien + compris comment ça marche (il faut un snmpd avec agentx activé et tout + le toutim, ce n'est pas super super clair) + + -- Thomas Noel Fri, 8 Feb 2008 09:32:23 +0000 + +asterisk-config-auf (1.4-5) unstable; urgency=low + + * etc-asterisk/manager.conf : inclure de "auf/manager.local" et non pas .conf... + * etc-asterisk/modules.conf : noload res_smdi.so (vraiment inutile pour nous) + + -- Thomas Noel Wed, 30 Jan 2008 16:09:39 +0000 + +asterisk-config-auf (1.4-4) unstable; urgency=low + + * debian/postinst: erreur dans les fichiers .local par défaut, les + commentaires dans un fichiers asterisk commencent avec un ; et + non pas un # ... je fatigue... + + -- Thomas Noel Wed, 30 Jan 2008 15:38:39 +0000 + +asterisk-config-auf (1.4-3) unstable; urgency=low + + * debian/postinst: creation de fichier auf/*.local vides car asterisk 1.4 + annonce (dans les logs) que leur absence fera peut-être un jour planter + asterisk... on croit rever mais non, on est vraiment devant un troupeau de + gros gros gros nazes + * debian/config: quand l'implantation s'appelle "auf-ville" (valeur par défaut) + alors on pose forcément la question (db_input high ...) + + -- Thomas Noel Wed, 30 Jan 2008 15:17:40 +0000 + +asterisk-config-auf (1.4-2) unstable; urgency=low + + * debian/templates : URL correcte pour le wiki + * modules.conf : mise a jour pour ast 1.4 (liste de tous les modules + "noload-ables") + + -- Thomas Noel Wed, 30 Jan 2008 10:43:10 +0000 + +asterisk-config-auf (1.4-1) unstable; urgency=low + + * adaptation des fichiers pour asterisk 1.4 (ouf....) + + -- Thomas Noel Tue, 29 Jan 2008 12:48:00 +0000 + +asterisk-config-auf (1.0-71) unstable; urgency=low + + * extensions.conf : ajout du *15 pour choisir sa sonnerie sur + les IP Phones 5 + + -- Thomas NOEL Fri, 9 Feb 2007 13:10:45 +0000 + +asterisk-config-auf (1.0-70) unstable; urgency=low + + * iax.conf : forcejitterbuffer=yes car les ipphones ne gèrent + pas les jitter (on fait plus confiance à Asterisk sur ça) + Jitter un peu plus poussés (1500ms de buffer, en espérant + que ça casse pas tout) + + -- Thomas NOEL Tue, 6 Feb 2007 18:14:51 +0000 + +asterisk-config-auf (1.0-69) unstable; urgency=low + + * voicemail.conf : assistance-informatique (at) auf.org comme adresse de + courriel d'expédition des messages voicemail + + -- Thomas NOEL Tue, 6 Feb 2007 17:28:22 +0000 + +asterisk-config-auf (1.0-68) unstable; urgency=low + + * ajout dependance sur asterisk-moh-auf + + -- Thomas NOEL Mon, 29 Jan 2007 12:29:20 +0000 + +asterisk-config-auf (1.0-67) unstable; urgency=low + + * extensions.conf : #include "auf/extensions-macros.local" + * voicemail.conf : le courriel rappelle qu'il faut composer *66 + + -- Thomas NOEL Fri, 19 Jan 2007 18:26:33 +0000 + +asterisk-config-auf (1.0-66) unstable; urgency=low + + * extensions.conf : include "auf/extensions-final.local" à la + fin, pour permettre des surcharges finales... peut-être utile... + + -- Thomas NOEL Fri, 19 Jan 2007 14:37:05 +0000 + +asterisk-config-auf (1.0-65) unstable; urgency=low + + * features.conf : transferdigittimeout repassé à 3 secondes (est-ce assez + long ou finalement trop court ?...) + + -- Thomas NOEL Fri, 19 Jan 2007 14:34:04 +0000 + +asterisk-config-auf (1.0-64) unstable; urgency=low + + * ajout dependance sur asterisk-app-conference + + -- Thomas NOEL Fri, 19 Jan 2007 10:21:37 +0000 + +asterisk-config-auf (1.0-63) unstable; urgency=low + + * extensions.conf: amélioration AUFAutoConference ; options hH + dans le Dial de "AUFDial" (permet de couper un appel en cours avec *10) + + -- Thomas NOEL Fri, 19 Jan 2007 10:15:05 +0000 + +asterisk-config-auf (1.0-62) unstable; urgency=low + + * nouveau plan d'adressage : on casse tout. Cohérence avec le + firmware 1.56-14 de l'ipphone5 + + -- Thomas NOEL Thu, 18 Jan 2007 20:08:34 +0000 + +asterisk-config-auf (1.0-61) unstable; urgency=low + + * suppression zapata.conf qui sera toujours spécifique + * mise à jour contrib (auf-conf) + + -- Thomas NOEL Thu, 18 Jan 2007 08:48:59 +0000 + +asterisk-config-auf (1.0-60) unstable; urgency=low + + * premiere version pour un mode conference un peu plus automatique... + mais pas génialement ergonomique ;) + + -- Thomas NOEL Fri, 12 Jan 2007 17:47:26 +0000 + +asterisk-config-auf (1.0-59) unstable; urgency=low + + * contrib/ast-conf : gestion du sip.local séparée + + -- Thomas NOEL Fri, 12 Jan 2007 09:27:36 +0000 + +asterisk-config-auf (1.0-58) unstable; urgency=low + + * integration de "contrib" dans /usr/share/doc/asterisk-config-auf + (merci Jérôme !) + + -- Thomas NOEL Thu, 11 Jan 2007 17:45:49 +0000 + +asterisk-config-auf (1.0-57) unstable; urgency=low + + * postinst : ne plus faire de chmod trop bourrins sur /etc/asterisk/auf/* + * modules.conf : noload pour func_odbc (oui oui, on se prépare pour le + futur backport de 1.2.14...) + + -- Thomas NOEL Thu, 11 Jan 2007 11:08:14 +0000 + +asterisk-config-auf (1.0-56) unstable; urgency=low + + * extensions.conf : activation pickup = 89nnn prend un appel qui sonne sur + le poste nnn + * extensions.conf : force le passage en langue française un peu partout + (sinon des fois le père Asterisk il finit par passer en english... et j'ai + pas trouvé la variable globale pour ça) + + -- Thomas NOEL Wed, 10 Jan 2007 21:07:39 +0000 + +asterisk-config-auf (1.0-55) unstable; urgency=low + + * extensions.conf : activation parking + * features.conf : ## pour le transfert aveugle (au lieu de # par défaut) + + -- Thomas NOEL Wed, 10 Jan 2007 19:44:51 +0000 + +asterisk-config-auf (1.0-54) unstable; urgency=low + + * features.conf : laisser 5 secondes à la personne pour composer le numéro + du correspondant lors d'un transfert. Les bips lors d'un transferts + deviennent des mots ("transfert" ou "abandon") (et petite reorganisation + du fichier pour couronner le tout) + + -- Thomas NOEL Wed, 10 Jan 2007 19:17:10 +0000 + +asterisk-config-auf (1.0-53) unstable; urgency=low + + * iax.conf : incominglimit=2 : un téléphone IP peut recevoir deux appels en + même temps + + -- Thomas NOEL Wed, 10 Jan 2007 16:10:46 +0000 + +asterisk-config-auf (1.0-52) unstable; urgency=low + + * musiconhold.conf : uniquement en mode "natif" (il faudra un autre + paquet asterisk-musiconhold-auf un prochain jour, avec de jolies + musiques libres en gsm et uLaw.... si qqun sait ou attraper des + mp3 libres pour de la zique d'ascenceur, je prends) + + -- Thomas NOEL Wed, 10 Jan 2007 12:53:48 +0000 + +asterisk-config-auf (1.0-51) unstable; urgency=low + + * retrait de la dependance sur asterisk-app-conference pour l'instant + * extconfig.conf : retrait du #include qui provoque un warning bizarre + + -- Thomas NOEL Wed, 10 Jan 2007 12:43:15 +0000 + +asterisk-config-auf (1.0-50) unstable; urgency=low + + * debian/control: nouvelle dépendance sur asterisk-app-conference et mise à + jour de la description + * extensions.local: 87nnn pour les conférences (au lieu de 77nnn) : je vais + mettre les services avec des numéros qui commencent par "8" + + -- Thomas NOEL Wed, 10 Jan 2007 10:30:42 +0000 + +asterisk-config-auf (1.0-49) unstable; urgency=low + + * extensions.conf : 77nnn pour accéder à la conférence nnn + + -- Thomas NOEL Tue, 9 Jan 2007 18:27:55 +0000 + +asterisk-config-auf (1.0-48) unstable; urgency=low + + * grosse erreur dans postinst... désolé... :( + + -- Thomas NOEL Tue, 9 Jan 2007 18:10:53 +0000 + +asterisk-config-auf (1.0-47) unstable; urgency=low + + * postinst : creation d'un sip.local avec un plus bel exemple. + Création d'un iax.local indépendant (n'est plus un lien symbolique) + avec le "user=...." (qui n'est pas dans sip.local, enfin je sais + plus, je suis un peu trop fatigué pour faire bien, faut que j'arrete + pour aujourd'hui) + + -- Thomas NOEL Tue, 9 Jan 2007 18:04:28 +0000 + +asterisk-config-auf (1.0-46) unstable; urgency=low + + * postinst : creation d'un extension.local avec des exemples + utilisant AUFDial + + -- Thomas NOEL Tue, 9 Jan 2007 17:49:45 +0000 + +asterisk-config-auf (1.0-45) unstable; urgency=low + + * Gros nettoyage de la configuration par défaut + * Nettoyage extensions.conf + * postinst: mise en place boites vocales (/etc/asterisk/auf/voicemail.local) + et ne touche pas à iax.local s'il existe sans sip.local à coté... + + -- Thomas NOEL Tue, 9 Jan 2007 17:15:35 +0000 + +asterisk-config-auf (1.0-44) unstable; urgency=low + + * modules.conf : refonte, desactivation de modules qui seront a priori + toujours inutiles a l'AUF (ael, odbc, pgsql, mgcp, alsa, oss, phone, + skinny, g729) + + -- Thomas NOEL Tue, 9 Jan 2007 15:07:48 +0000 + +asterisk-config-auf (1.0-43) unstable; urgency=low + + * extensions.conf : le bon nom est MACRO_EXTEN, avec un _ ... joli typo... + + -- Thomas NOEL Tue, 9 Jan 2007 09:37:13 +0000 + +asterisk-config-auf (1.0-42) unstable; urgency=low + + * extensions.conf : bug sur macro AUFDial, doit contacter les voicemail + sur le contexte @AUF + + -- Thomas NOEL Mon, 8 Jan 2007 18:20:17 +0000 + +asterisk-config-auf (1.0-41) unstable; urgency=low + + * extensions.conf : macro AUFConference, contexte AUF-echo et + AUF-boitesvocales (début de mise en place des boites vocales) + + -- Thomas NOEL Mon, 8 Jan 2007 18:12:04 +0000 + +asterisk-config-auf (1.0-40) unstable; urgency=low + + * macro AUFDial, version 1.0beta qui marche apparement, a tester plus à fond + + -- Thomas NOEL Mon, 8 Jan 2007 17:28:52 +0000 + +asterisk-config-auf (1.0-39) unstable; urgency=low + + * iax.conf : register max carrément descendu à 120s (asterisk reload + oublie les reg IAX si iax.conf a bougé, pas génial ça) + + -- Thomas NOEL Thu, 4 Jan 2007 16:22:07 +0000 + +asterisk-config-auf (1.0-38) unstable; urgency=low + + * features.conf : activation de fonctionnalité (transfer, parking, etc) + * iax.conf : retour du register à 300s (5 minutes) + + -- Thomas NOEL Tue, 21 Nov 2006 10:38:14 +0000 + +asterisk-config-auf (1.0-37) unstable; urgency=low + + * iax.conf : register jusqu'a 3600, modif dans l'ordre des codecs + (gsm et ulaw sont les deux premiers) + + -- Thomas NOEL Thu, 16 Nov 2006 11:30:09 +0000 + +asterisk-config-auf (1.0-36) unstable; urgency=low + + * modules.conf : suppression de tout ce qui est ODBC (fait planter le + backport 1.9, j'ai pas le temps de faire plus intelligent ce soir) + + -- Thomas NOEL Sun, 18 Jun 2006 22:45:48 +0000 + +asterisk-config-auf (1.0-35) unstable; urgency=low + + * dependance sur asterisk-prompt-fr pour que tout le monde parle la France + + -- Thomas NOEL Tue, 13 Jun 2006 11:47:34 +0000 + +asterisk-config-auf (1.0-34) unstable; urgency=low + + * finalement non : local avant global, car il n'y a pas d'ecrasement + + -- Thomas NOEL Fri, 2 Jun 2006 11:43:11 +0000 + +asterisk-config-auf (1.0-33) unstable; urgency=low + + * inversion include extensions.conf : global puis local + (pour que les locales puissent avoir la priorite) + + -- Thomas NOEL Fri, 2 Jun 2006 10:29:56 +0000 + +asterisk-config-auf (1.0-32) unstable; urgency=low + + * voicemail.conf: un peu de tuning, francisation... + + -- Thomas NOEL Fri, 28 Apr 2006 17:18:38 +0000 + +asterisk-config-auf (1.0-31) unstable; urgency=low + + * iax.conf: maxregexpire=120 ; pb avec IP qui changent, il faut laisser une + petite valeur ; et c'est sans doute aussi bon pour le conntracking (?) + * extensions.conf : version alpha d'une macro AUFDial + + -- Thomas NOEL Fri, 28 Apr 2006 09:18:53 +0000 + +asterisk-config-auf (1.0-30) unstable; urgency=low + + * iax.conf : registration, delai max = 3600s. + * iax.conf : suppression du forcejitter + + -- Thomas NOEL Wed, 26 Apr 2006 10:45:40 +0000 + +asterisk-config-auf (1.0-29) unstable; urgency=low + + * ulaw ajoute dans iax.conf et sip.conf pour permettre les clients locaux en + G711u (softphone ou ipphones) + * Nouvel ordre des codecs : ilbx, gsm, speex, ulaw, h261, h263 + + -- Thomas NOEL Tue, 25 Apr 2006 16:46:13 +0000 + +asterisk-config-auf (1.0-28) unstable; urgency=low + + * Ordre des codecs : ilbc, gsm, speex, h261, h263 + + -- Thomas NOEL Sat, 11 Mar 2006 10:15:48 +0000 + +asterisk-config-auf (1.0-27) unstable; urgency=low + + * ajout authorisation "ilbc" sur sip et iax (mais pas encore le choix par + defaut) + + -- Thomas NOEL Fri, 17 Feb 2006 12:02:07 +0000 + +asterisk-config-auf (1.0-26) unstable; urgency=low + + * iax.conf : tentative avec les "jitter" + * iax.conf, sip.conf : desactivation du codec speex (marche trop mal) + + -- Thomas NOEL Wed, 25 Jan 2006 17:29:02 +0100 + +asterisk-config-auf (1.0-25) unstable; urgency=low + + * sip.conf, iax.conf: ajout de allow=speex en premier codec + + -- Thomas NOEL Tue, 20 Dec 2005 12:03:25 +0100 + +asterisk-config-auf (1.0-24) unstable; urgency=low + + * debian/postfix: AUFPREFIXLEN calculé "en dur"... Penser à retester avec + les prochaines versions d'asterisk (1.2.2 ?...) + + -- Thomas NOEL Thu, 15 Dec 2005 15:21:07 +0100 + +asterisk-config-auf (1.0-23) unstable; urgency=low + + * Makefile: copie de tout etc-asterisk et pas seulement les .conf + (nécessaire au moins pour extensions.ael) + + -- Thomas NOEL Thu, 15 Dec 2005 14:59:40 +0100 + +asterisk-config-auf (1.0-22) unstable; urgency=low + + * etc-asterisk/zapata.conf: commentaire sur ligne de config qui génèrent + des warning + * etc-asterisk/indications.conf : country=fr par défaut (je sais pas + si c'est pertinent mais bon...) + * debian/postinst: ajout de l'option callerid pour les comptes + + -- Thomas NOEL Thu, 15 Dec 2005 14:56:54 +0100 + +asterisk-config-auf (1.0-21) unstable; urgency=low + + * README.Debian : un peu plus clair + + -- Thomas NOEL Thu, 15 Dec 2005 10:53:05 +0100 + +asterisk-config-auf (1.0-20) unstable; urgency=low + + * debian/postinst: pas de chown/chmod sur /var/run/asterisk et autres + repertoires pas forcément présents à l'installation "from scratch" + + -- Thomas NOEL Wed, 14 Dec 2005 15:49:29 +0100 + +asterisk-config-auf (1.0-19) unstable; urgency=low + + * debian/config: debconf prefix en priorité low + + -- Thomas NOEL Wed, 14 Dec 2005 13:19:37 +0100 + +asterisk-config-auf (1.0-18) unstable; urgency=low + + * chmod/chown sur /etc/asterisk/auf/* ; mais ça ne sera vraiment efficace + que lorsque le paquet asterisk ne remettra pas des sales droits partout + + -- Thomas NOEL Wed, 14 Dec 2005 12:39:44 +0100 + +asterisk-config-auf (1.0-17) unstable; urgency=low + + * typo... + + -- Thomas NOEL Wed, 14 Dec 2005 12:34:11 +0100 + +asterisk-config-auf (1.0-16) unstable; urgency=low + + * un-peu-partout: renommage en auf/*.local et auf/*.global + + -- Thomas NOEL Wed, 14 Dec 2005 12:26:22 +0100 + +asterisk-config-auf (1.0-15) unstable; urgency=low + + * un-peu-partout: fichiers AUF dans /etc/asterisk/auf/ + + -- Thomas NOEL Wed, 14 Dec 2005 11:53:06 +0100 + +asterisk-config-auf (1.0-14) unstable; urgency=low + + * debian/templates: indications sur la règle de nommage auf-ville + + -- Thomas NOEL Wed, 14 Dec 2005 11:32:08 +0100 + +asterisk-config-auf (1.0-13) unstable; urgency=low + + * debian/postinst: /etc/init.d/asterisk reload lancé seulement s'il + existe... + + -- Thomas NOEL Wed, 14 Dec 2005 11:18:02 +0100 + +asterisk-config-auf (1.0-12) unstable; urgency=low + + * debian/postinst: adduser asterisk... + + -- Thomas NOEL Wed, 14 Dec 2005 11:04:59 +0100 + +asterisk-config-auf (1.0-11) unstable; urgency=low + + * debian/config: On devine l'implantation, mais pas la clé, c'est mieux. + + -- Thomas NOEL Wed, 14 Dec 2005 10:34:48 +0100 + +asterisk-config-auf (1.0-10) unstable; urgency=low + + * un-peu-partout : renommage des fichiers de configuration specifique en + AUF-LOCAL-* et AUF-GLOBAL-*. Modification des #include correspondants. + * debian/config: si un fichier cle privee existe et que c'est la premiere + configuration, on suppose que ce fichier porte le nom de l'implantation. + + -- Thomas NOEL Wed, 14 Dec 2005 10:21:58 +0100 + +asterisk-config-auf (1.0-9) unstable; urgency=low + + * debian/postinst,config: pas d'alerte si RUNASTERISK=no, on + le voit lors du "asterisk reload" + + -- Thomas NOEL Wed, 14 Dec 2005 01:06:41 +0100 + +asterisk-config-auf (1.0-8) unstable; urgency=low + + * debian/postinst: ajout d'un "/etc/init.d/asterisk reload" après mise à + jour des fichiers. + + -- Thomas NOEL Wed, 14 Dec 2005 00:48:45 +0100 + +asterisk-config-auf (1.0-7) unstable; urgency=low + + * debian/postinst: chown / chmod des fichiers de config + + -- Thomas NOEL Wed, 14 Dec 2005 00:37:03 +0100 + +asterisk-config-auf (1.0-6) unstable; urgency=low + + * debian/control: description plus détaillée du paquet + + -- Thomas NOEL Wed, 14 Dec 2005 00:19:24 +0100 + +asterisk-config-auf (1.0-5) unstable; urgency=low + + * etc-asterisk/iax.conf,sip.conf,extensions.conf: ajout des #inclure + * debian/postinst: ajout creation AUF-clients-extensions.conf + * debian/config,postinst: ajout de plein de commentaires + + -- Thomas NOEL Wed, 14 Dec 2005 00:11:55 +0100 + +asterisk-config-auf (1.0-4) unstable; urgency=low + + * ssssspliit : config de base dans asterisk-config-auf et + clés publiques et liaisons IAX + exten dans + asterisk-config-auf-connexions + * debian/control: dépend de asterisk-config-auf-connexions + + -- Thomas NOEL Tue, 13 Dec 2005 20:56:24 +0100 + +asterisk-config-auf (1.0-3) unstable; urgency=low + + * debian/templates, debian/config, debian/postinst: ajout debconf + + -- Thomas NOEL Tue, 13 Dec 2005 19:35:40 +0100 + +asterisk-config-auf (1.0-2) unstable; urgency=low + + * debian/postinst + + -- Thomas NOEL Tue, 13 Dec 2005 16:29:20 +0100 + +asterisk-config-auf (1.0-1) unstable; urgency=low + + * Je me lance... merci dh_make ! + + -- Thomas NOEL Tue, 13 Dec 2005 15:59:27 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/config b/debian/config new file mode 100755 index 0000000..95338c9 --- /dev/null +++ b/debian/config @@ -0,0 +1,122 @@ +#!/bin/sh + +set -e + +# migration vers /usr/share pour asterisk 1.4 : on copie les *.key +# et les *.pub correspondantes de /var/lib vers /usr/share +# NOTE : OUI JE SAIS, ce n'est sans doute pas le bon endroit pour +# faire ça, mais dans preinst ça marche pas alors je fatigue alors +# je le fais pas, et puis si vous êtes pas content devenez d'abord +# developpeur Debian et après revenez me voir. +mkdir -m 0755 -p /usr/share/asterisk/keys/ && cd /var/lib/asterisk/keys 2> /dev/null && if ls *.key > /dev/null 2>&1; then + for KEY in *.key + do + # si la clé privée n'existe pas dans /usr/share, on la copie + if [ ! -e /usr/share/asterisk/keys/$KEY ] + then + # echo "asterisk1.4 : cp /var/lib/asterisk/keys/$KEY /usr/share/asterisk/keys/$KEY" + cp -a $KEY /usr/share/asterisk/keys/ || true + # clé publique correspondante, sera copiée si elle existe dans /var/lib + # et si elle n'existe pas dans /usr/share/ + PUB=`basename $KEY .key`.pub + if [ -e $PUB -a ! -e /usr/share/asterisk/keys/$PUB ] + then + # echo "asterisk1.4 : cp /var/lib/asterisk/keys/$PUB /usr/share/asterisk/keys/$PUB" + cp -a $PUB /usr/share/asterisk/keys/ || true + fi + fi + done +fi + +# lancement de notre ami debconf +. /usr/share/debconf/confmodule + +# +# D'abord on tente de deviner les valeurs +# + +# Pour le prefixe, le monde entier utilise 00 sauf quelques +# peuples sauvages +PREFIXE=00 +# par defaut +IMPLANTATION=auf-ville + +# Si une cle privee existe, elle porte sans doute le nom +# de l'implantation... +KEYFILE=`ls /usr/share/asterisk/keys/*.key 2> /dev/null | tail -1` +if [ x$KEYFILE != x ]; then + IMPLANTATION=`basename $KEYFILE .key` +else + # aucune clé : on arrete les frais ici avec un petit message expliquant le pb + db_input high asterisk-config-auf/pasdeclef || true + db_go || true + exit 0 +fi + +# +# On charge le fichier de configuration, s’il existe. +# + +CONFIGFILE=/etc/asterisk/auf/extensions-globals.local +if [ -e $CONFIGFILE ]; then + # Recupere les donnees de connexion (AUFAUTH) + AUFAUTH=`cat $CONFIGFILE | grep -m1 -e "^ *AUFAUTH=" | cut -f2 -d=` + # on ne les prend en compte que si elles different des + # valeurs par defaut + if [ x"$AUFAUTH" != x"auf-ville:[auf-ville]" ]; then + IMPLANTATION=`echo $AUFAUTH | cut -f1 -d:` + CLEF=`echo $AUFAUTH | cut -f2 -d: | tr -d "[]"` + fi + # Recupere le prefixe (PREFIXE) + PREFIXE=`cat $CONFIGFILE | grep -m1 -e "^ *AUFPREFIX=" | cut -f2 -d=` +fi + +# on stocke de prefixe, qu'il soit celui par défaut (00) ou +# bien celui indiqué dans le fichier de configuration +db_set asterisk-config-auf/prefixe $PREFIXE +# idem pour le nom de l'implantation voip et la cle +db_set asterisk-config-auf/implantation $IMPLANTATION + + +# +# QUESTION 1 : Nom de l'implantation +# +if [ x${IMPLANTATION} = x -o x${IMPLANTATION} == "xauf-ville" ] +then + db_input high asterisk-config-auf/implantation || true +else + db_input low asterisk-config-auf/implantation || true +fi + +# +# QUESTION 2 (niveau low) : Nom du fichier clé +# + +# s'il n'y avait pas de fichier de configuration par défaut +# alors la cle portera le nom de l'implantation +if [ x$CLEF == x -o x$CLEF == "xauf-ville" ]; then + db_get asterisk-config-auf/implantation + CLEF="$RET" + db_set asterisk-config-auf/clef $CLEF +fi +# on demande le nom de la clé uniquement en priorité basse +db_input low asterisk-config-auf/clef || true + +# +# ALERTE : afficher une alerte si le fichier de la cle n'existe pas ! +# +db_get asterisk-config-auf/clef +CLEF="$RET" +if [ ! -e /usr/share/asterisk/keys/${CLEF}.key ]; then + db_input high asterisk-config-auf/pasdeclef || true +fi + +# +# QUESTION 3 : Prefixe pour l'international +# +db_input low asterisk-config-auf/prefixe || true + +# fin + +db_go || true + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..98dca83 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: asterisk-config-auf +Section: comm +Priority: optional +Maintainer: Thomas NOEL +Build-Depends: debhelper (>= 4.0.0), make +Standards-Version: 3.6.1 + +Package: asterisk-config-auf +Architecture: all +Provides: asterisk-config-custom +Conflicts: asterisk-config +Depends: asterisk-config-auf-connexions, asterisk-prompt-fr, asterisk-app-conference (>= 2.0), asterisk-moh-auf, ${shlibs:Depends}, ${misc:Depends} +Description: Configuration d'Asterisk pour l'AUF - partie locale + Configuration d'Asterisk pour le systeme VoIP de l'AUF + . + Contient les fichiers /etc/asterisk/*.conf adaptées à l'AUF, principalement + "extensions.conf", "iax.conf", "sip.conf" avec des #include des fichiers + situés dans /etc/asterisk/auf/ + . + Lors de sa première installation, ce paquet construit des modèles pour: + /etc/asterisk/auf/iax.local et sip.local : comptes clients locaux + /etc/asterisk/auf/voicemail.local : boites vocales associées + /etc/asterisk/auf/extensions.local : les numéros de téléphone associés + . + Ce paquet dépend du paquet asterisk-config-auf-connexions, qui contient les + paramètres de connexion entre les serveurs de l'AUF. + . + Il dépend aussi de : + - asterisk-prompt-fr : une voix française, notamment pour les systèmes de + boite vocale et de conférences + - asterisk-app-conference : application Conference() + - asterisk-moh-auf: musiques d'attente + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..53b0db4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Thomas NOEL on +Tue, 13 Dec 2005 15:45:34 +0100. + +It was downloaded from + +Copyright Holder: + +License: + + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e69de29 diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..41ca5f0 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +contrib diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..0575423 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,282 @@ +#! /bin/sh +# postinst script for asterisk-config-auf +# +# see: dh_installdeb(1) + + +set -e +. /usr/share/debconf/confmodule + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + + # extrait du postinst general a tous les paquets asterisk... + + # add asterisk user and add it to dialout and audio groups + if ! getent passwd asterisk > /dev/null ; then + echo 'Adding system user for Asterisk' 1>&2 + adduser --system --group --quiet \ + --home /var/lib/asterisk \ + --no-create-home --disabled-login \ + --gecos "Asterisk PBX daemon" \ + asterisk + for group in dialout audio; do + if groups asterisk | grep -w -q -v $group; then + adduser asterisk $group + fi + done + fi + + # création du répertoire spécifique configs AUF + test -d /etc/asterisk/auf || mkdir -p /etc/asterisk/auf + + chown -R root:asterisk /etc/asterisk + chmod 0755 /etc/asterisk + chmod 0755 /etc/asterisk/auf + chmod 0640 /etc/asterisk/*.conf 2> /dev/null || true + #chmod 0640 /etc/asterisk/auf/* 2> /dev/null || true + + # Génère auf/sip.local s'il n'existe pas. + CONFIGFILE=/etc/asterisk/auf/sip.local + if [ ! -e $CONFIGFILE ]; then + cat << EOF > $CONFIGFILE +; $CONFIGFILE est inclu par sip.conf +; +; Pour chaque utilisateur, faire une entree en adaptant le modele ci dessous +; NB: "Prenom NOM" doit faire au plus 16 caractères, uniquement en ASCII (pas d'accent) afin +; de bien s'afficher sur le IP Phone 5 (ecran LCD de 16 caractères ASCII) +; NB: est le numéro avec le préfixe international, uniquement des chiffres, sans espace +; NB: mailbox=nnn@AUF doit être en conformité avec la référence du compte dans voicemail.local +; NB: disallow=all & allow=ulaw : impose le codec "ulaw" uniquement, on peut changer cela pour certains clients +; +; [prenom.nom] +; type=friend +; callerid="Prenom NOM" +; secret=motdepasse +; context=AUF +; mailbox=nnn@AUF +; host=dynamic +; disallow=all +; allow=ulaw + +; A SUPPRIMER ! UNIQUEMENT POUR PREMIERS TESTS ! +[test] +type=friend +callerid="Compte TEST" <100> +secret=test +context=AUF +mailbox=100@AUF +host=dynamic +disallow=all +allow=ulaw + +EOF + fi + chown root:asterisk $CONFIGFILE + chmod 640 $CONFIGFILE + + # Génère auf/iax.local s'il n'existe pas. + CONFIGFILE=/etc/asterisk/auf/iax.local + if [ ! -e $CONFIGFILE ]; then + cat << EOF > $CONFIGFILE +; $CONFIGFILE est inclu par iax.conf +; +; Pour chaque utilisateur, faire une entree en adaptant le modele ci dessous +; NB: "Prenom NOM" doit faire au plus 16 caractères, uniquement en ASCII (pas d'accent) afin +; de bien s'afficher sur le IP Phone 5 (ecran LCD de 16 caractères ASCII) +; NB: est le numéro avec le préfixe international, uniquement des chiffres, sans espace +; NB: mailbox=nnn@AUF doit être en conformité avec la référence du compte dans voicemail.local +; NB: disallow=all & allow=ulaw : impose le codec "ulaw" uniquement, on peut changer cela pour certains clients +; +; [prenom.nom] +; type=friend +; callerid="Prenom NOM" +; user=prenom.nom +; secret=motdepasse +; context=AUF +; mailbox=nnn@AUF +; host=dynamic +; disallow=all +; allow=ulaw + +; A SUPPRIMER ! UNIQUEMENT POUR PREMIERS TESTS ! +[test] +type=friend +callerid="Compte TEST" <100> +user=test +secret=test +context=AUF +mailbox=100@AUF +host=dynamic +disallow=all +allow=ulaw + +EOF + fi + chown root:asterisk $CONFIGFILE + chmod 640 $CONFIGFILE + + # génère un auf/voicemail.local s'il n'existe pas + CONFIGFILE=/etc/asterisk/auf/voicemail.local + if [ ! -e $CONFIGFILE ]; then + cat << EOF > $CONFIGFILE +; +; auf/voicemail.local : surcharge de /etc/asterisk/voicemail.conf +; +; Indiquez ici votre fuseau horaire local (voir la liste dans /usr/share/zoneinfo +[zonemessages](+) +fuseaulocal=Africa/Dakar|'vm-received' Q 'digits/at' kM + +; Boites locales +[AUF] +tz=fuseaulocal +; Format : no_de_la_boite => mot_de_passe,Prenom Nom,prenom.nom@auf.org +; * no_de_la_boite : prendre le numéro de telephone local de la personne +; * le mot de passe doit être un nombre (par exemple 3 ou 4 chiffres) +; * NB : en attendant qu'on trouve comment faire, mettre un "-" devant le mot +; de passe pour indiquer qu'il n'est pas modifiable par l'utilisateur. +; Exemple : +; 206 => -0808,Thomas NOEL,thomas.noel@auf.org +; +EOF + fi + chown root:asterisk $CONFIGFILE + chmod 640 $CONFIGFILE + + # Génère auf/extensions.local s'il n'existe pas. + CONFIGFILE=/etc/asterisk/auf/extensions.local + if [ ! -e $CONFIGFILE ]; then + cat << EOF > $CONFIGFILE +; $CONFIGFILE +; Fichier inclu dans le contexte [AUF-local] de /etc/asterisk/extensions.conf +; +; Pour chaque utilisateur, faire une entree en modifiant "numero" et +; "prenom.nom" (et RIEN d'autre) dans le modele ci dessous + +; Modele : +; exten => numero,1,Macro(AUFDial,prenom.nom) +; Exemple : +; exten => 206,1,Macro(AUFDial,thomas.noel) + +; A SUPPRIMER ! UNIQUEMENT POUR PREMIERS TESTS ! +exten => 100,1,Macro(AUFDial,test); + +EOF + fi + + chown root:asterisk $CONFIGFILE + chmod 640 $CONFIGFILE + + # + # a partir de maintenant on travaille sur auf/extensions-globals.local + # + + CONFIGFILE=/etc/asterisk/auf/extensions-globals.local + + # Génère auf/extensions-globals.local s’il n’existe pas. + if [ ! -e $CONFIGFILE ]; then + cat << EOF > $CONFIGFILE +; $CONFIGFILE +; Fichier est inclu dans la section [globals] de extensions.conf +; +; NE MODIFIEZ PAS CE FICHIER DIRECTEMENT ! Il est généré depuis les +; résultats de réponses debconf ! +; Pour modifier ces valeurs, faites "dpkg-reconfigure -plow asterisk-config-auf" + +; Authentification pour se connecter a d'autres serveurs +; format : AUFAUTH=implantation:[clefprivee] +AUFAUTH=auf-ville:[auf-ville] + +; Prefixe pour avoir l'international +AUFPREFIX=00 + +; Longueur du prefixe +AUFPREFIXLEN=2 + +EOF + fi + + # + # Partie "debconf" pour la gestion de auf/extensions-globals.local + # + + # Substitue les valeurs par celles dans la base de données de debconf. + db_get asterisk-config-auf/implantation + IMPLANTATION="$RET" + db_get asterisk-config-auf/clef + CLEF="$RET" + db_get asterisk-config-auf/prefixe + PREFIXE="$RET" + + AUFAUTH=$IMPLANTATION":["$CLEF"]" + AUFPREFIX=$PREFIXE + AUFPREFIXLEN=`echo -n $AUFPREFIX | wc -c` + + # On remplace les valeurs dans le fichier de configuration + # (d'abord un "cp" pour garder les bons droits) + cp -a -f $CONFIGFILE $CONFIGFILE.postinst.tmp + sed -e "s/^ *AUFAUTH=.*/AUFAUTH=$AUFAUTH/" \ + -e "s/^ *AUFPREFIX=.*/AUFPREFIX=$AUFPREFIX/" \ + -e "s/^ *AUFPREFIXLEN=.*/AUFPREFIXLEN=$AUFPREFIXLEN/" \ + < $CONFIGFILE > $CONFIGFILE.postinst.tmp + mv -f $CONFIGFILE.postinst.tmp $CONFIGFILE + + chown root:asterisk $CONFIGFILE + chmod 0640 $CONFIGFILE + + # mon ami asterisk m'annonce que les include de fichiers non existant feront + # prochainement planter asterisk... MERCI ASTERISK SALE MERDE A POUX QUI PUE + for confbase in dundi enum extensions-macros extensions-final manager meetme modules musiconhold queues users zapata + do + conffile=/etc/asterisk/auf/${confbase}.local + if [ ! -e ${conffile} ] + then + confglobal=`echo ${confbase} | cut -f1 -d-` + echo "; ${conffile}" > ${conffile} + echo "; Partie locale AUF, incluse par /etc/asterisk/${confglobal}.conf" >> ${conffile} + echo "; Attention a la coherence : verifier l'endroit ou est fait le #include" >> ${conffile} + echo "" >> ${conffile} + chown root:asterisk ${conffile} + chmod 0640 ${conffile} + fi + done + + #chown root:asterisk /etc/asterisk/auf/* || true + #chmod 0640 /etc/asterisk/auf/* || true + + if [ -x /etc/init.d/asterisk ]; then + /etc/init.d/asterisk reload || true + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ff44713 --- /dev/null +++ b/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export DH_ALWAYS_EXCLUDE=.svn + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/asterisk-config-auf.sgml > asterisk-config-auf.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/asterisk-config-auf. + $(MAKE) install DESTDIR=$(CURDIR)/debian/asterisk-config-auf + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..4190c05 --- /dev/null +++ b/debian/templates @@ -0,0 +1,43 @@ +Template: asterisk-config-auf/implantation +Type: string +Default: auf-ville +Description: Nom de votre noeud VoIP + Indiquez ici le nom de votre noeud VoIP. + Ce nom sera utilisé lors des connexions aux serveurs distants. + . + La règle AUF est d'utiliser le format "auf-ville", ou "auf-implantation" s'il + y a plusieurs serveurs AUF VoIP dans la ville. + +Template: asterisk-config-auf/clef +Type: string +Default: auf-ville +Description: Nom de votre cle privee + Indiquez ici le nom de votre cle privée. + . + Il s'agit du nom du fichier dans /usr/share/asterisk/keys/, + sans le .key final. Si vous n'avez pas encore généré votre clé, + simplifiez-vous la vie en donnant un nom identique à celui de + votre noeud (par exemple auf-ville). Il suffira ensuite de générer la clé en + lui donnant ce nom. + +Template: asterisk-config-auf/pasdeclef +Type: note +Description: Fichier clé privée Asterisk introuvable + La clé privée est introuvable dans /usr/share/asterisk/keys/. Vous devez + disposer d'une paire clé publique + clé privée pour vous connecter aux autres + serveurs Asterisk de l'AUF. + . + Si vous n'avez pas encore généré vos clés pour Asterisk, ce message est + normal. Dans ce cas, consultez la procédure d'installation d'Asterisk «version + AUF» sur http://wiki.auf.org/wikiteki/Asterisk + +Template: asterisk-config-auf/prefixe +Type: string +Default: 00 +Description: Préfixe pour les appels internationaux + Indiquez le préfixe à utiliser pour les appels internationaux, c'est-à-dire + la suite de chiffres à taper avant le numéro du pays. En général c'est "00". + . + Deux règles à suivre : + - utilisez un préfixe auquel vos utilisateurs sont déjà habitués (typiquement, 00) ; + - faites attention à ce que ce prefixe ne soit pas en conflit avec votre numérotation nationale. diff --git a/etc-asterisk/adsi.conf b/etc-asterisk/adsi.conf new file mode 100644 index 0000000..0f36f80 --- /dev/null +++ b/etc-asterisk/adsi.conf @@ -0,0 +1,8 @@ +; +; Sample ADSI Configuration file +; +[intro] +alignment = center +greeting => Welcome to the +greeting => Asterisk +greeting => Open Source PBX diff --git a/etc-asterisk/adtranvofr.conf b/etc-asterisk/adtranvofr.conf new file mode 100644 index 0000000..dc7bcfc --- /dev/null +++ b/etc-asterisk/adtranvofr.conf @@ -0,0 +1,39 @@ +; +; Voice over Frame Relay (Adtran style) +; +; Configuration file + +[interfaces] +; +; Default language +; +;language=en +; +; Lines for which we are the user termination. They accept incoming +; and outgoing calls. We use the default context on the first 8 lines +; used by internal phones. +; +context=default +;user => voice00 +;user => voice01 +;user => voice02 +;user => voice03 +;user => voice04 +;user => voice05 +;user => voice06 +;user => voice07 +; Calls on 16 and 17 come from the outside world, so they get +; a little bit special treatment +context=remote +;user => voice16 +;user => voice17 +; +; Next we have lines which we only accept calls on, and typically +; do not send outgoing calls on (i.e. these are where we are the +; network termination) +; +;network => voice08 +;network => voice09 +;network => voice10 +;network => voice11 +;network => voice12 diff --git a/etc-asterisk/agents.conf b/etc-asterisk/agents.conf new file mode 100644 index 0000000..eb0383f --- /dev/null +++ b/etc-asterisk/agents.conf @@ -0,0 +1,105 @@ +; +; Agent configuration +; + +[general] +; +; Define whether callbacklogins should be stored in astdb for +; persistence. Persistent logins will be reloaded after +; Asterisk restarts. +; +persistentagents=yes + +; Enable or disable a single extension from logging in as multiple agents. +; The default value is "yes". +;multiplelogin=yes + +[agents] +; +; Define maxlogintries to allow agent to try max logins before +; failed. +; default to 3 +; +;maxlogintries=5 +; +; +; Define autologoff times if appropriate. This is how long +; the phone has to ring with no answer before the agent is +; automatically logged off (in seconds) +; +;autologoff=15 +; +; Define autologoffunavail to have agents automatically logged +; out when the extension that they are at returns a CHANUNAVAIL +; status when a call is attempted to be sent there. +; Default is "no". +; +;autologoffunavail=yes +; +; Define ackcall to require an acknowledgement by '#' when +; an agent logs in using agentcallbacklogin. Default is "no". +; +;ackcall=no +; +; Define endcall to allow an agent to hangup a call by '*'. +; Default is "yes". Set this to "no" to ignore '*'. +; +;endcall=yes +; +; Define wrapuptime. This is the minimum amount of time when +; after disconnecting before the caller can receive a new call +; note this is in milliseconds. +; +;wrapuptime=5000 +; +; Define the default musiconhold for agents +; musiconhold => music_class +; +;musiconhold => default +; +; Define the default good bye sound file for agents +; default to vm-goodbye +; +;agentgoodbye => goodbye_file +; +; Define updatecdr. This is whether or not to change the source +; channel in the CDR record for this call to agent/agent_id so +; that we know which agent generates the call +; +;updatecdr=no +; +; Group memberships for agents (may change in mid-file) +; +;group=3 +;group=1,2 +;group= +; +; -------------------------------------------------- +; This section is devoted to recording agent's calls +; The keywords are global to the chan_agent channel driver +; +; Enable recording calls addressed to agents. It's turned off by default. +;recordagentcalls=yes +; +; The format to be used to record the calls: wav, gsm, wav49. +; By default its "wav". +;recordformat=gsm +; +; The text to be added to the name of the recording. Allows forming a url link. +;urlprefix=http://localhost/calls/ +; +; The optional directory to save the conversations in. The default is +; /var/spool/asterisk/monitor +;savecallsin=/var/calls +; +; An optional custom beep sound file to play to always-connected agents. +;custom_beep=beep +; +; -------------------------------------------------- +; +; This section contains the agent definitions, in the form: +; +; agent => agentid,agentpassword,name +; +;agent => 1001,4321,Mark Spencer +;agent => 1002,4321,Will Meadows diff --git a/etc-asterisk/alarmreceiver.conf b/etc-asterisk/alarmreceiver.conf new file mode 100644 index 0000000..bf767de --- /dev/null +++ b/etc-asterisk/alarmreceiver.conf @@ -0,0 +1,80 @@ +; +; alarmreceiver.conf +; +; Sample configuration file for the Asterisk alarm receiver application. +; + + +[general] + +; +; Specify a timestamp format for the metadata section of the event files +; Default is %a %b %d, %Y @ %H:%M:%S %Z + +timestampformat = %a %b %d, %Y @ %H:%M:%S %Z + +; +; Specify a command to execute when the caller hangs up +; +; Default is none +; + +;eventcmd = yourprogram -yourargs ... + +; +; Specify a spool directory for the event files. This setting is required +; if you want the app to be useful. Event files written to the spool +; directory will be of the template event-XXXXXX, where XXXXXX is a random +; and unique alphanumeric string. +; +; Default is none, and the events will be dropped on the floor. +; + +eventspooldir = /tmp + +; +; The alarmreceiver app can either log the events one-at-a-time to individual +; files in the spool directory, or it can store them until the caller +; disconnects and write them all to one file. +; +; The default setting for logindividualevents is no. +; + +logindividualevents = no + +; +; The timeout for receiving the first DTMF digit is adjustable from 1000 msec. +; to 10000 msec. The default is 2000 msec. Note: if you wish to test the +; receiver by entering digits manually, set this to a reasonable time out +; like 10000 milliseconds. + +fdtimeout = 2000 + +; +; The timeout for receiving subsequent DTMF digits is adjustable from +; 110 msec. to 4000 msec. The default is 200 msec. Note: if you wish to test +; the receiver by entering digits manually, set this to a reasonable time out +; like 4000 milliseconds. +; + +sdtimeout = 200 + +; +; The loudness of the ACK and Kissoff tones is adjustable from 100 to 8192. +; The default is 8192. This shouldn't need to be messed with, but is included +; just in case there are problems with signal levels. +; + +loudness = 8192 + +; +; The db-family setting allows the user to capture statistics on the number of +; calls, and the errors the alarm receiver sees. The default is for no +; db-family name to be defined and the database logging to be turned off. +; + +;db-family = yourfamily: + +; +; End of alarmreceiver.conf +; diff --git a/etc-asterisk/amd.conf b/etc-asterisk/amd.conf new file mode 100644 index 0000000..ce4808a --- /dev/null +++ b/etc-asterisk/amd.conf @@ -0,0 +1,18 @@ +; +; Answering Machine Detection Configuration +; + +[general] +initial_silence = 2500 ; Maximum silence duration before the greeting. + ; If exceeded then MACHINE. +greeting = 1500 ; Maximum length of a greeting. If exceeded then MACHINE. +after_greeting_silence = 800 ; Silence after detecting a greeting. + ; If exceeded then HUMAN +total_analysis_time = 5000 ; Maximum time allowed for the algorithm to decide + ; on a HUMAN or MACHINE +min_word_length = 100 ; Minimum duration of Voice to considered as a word +between_words_silence = 50 ; Minimum duration of silence after a word to consider + ; the audio what follows as a new word +maximum_number_of_words = 3 ; Maximum number of words in the greeting. + ; If exceeded then MACHINE +silence_threshold = 256 diff --git a/etc-asterisk/cdr.conf b/etc-asterisk/cdr.conf new file mode 100644 index 0000000..84572d8 --- /dev/null +++ b/etc-asterisk/cdr.conf @@ -0,0 +1,148 @@ +; +; Asterisk Call Detail Record engine configuration +; +; CDR is Call Detail Record, which provides logging services via a variety of +; pluggable backend modules. Detailed call information can be recorded to +; databases, files, etc. Useful for billing, fraud prevention, compliance with +; Sarbanes-Oxley aka The Enron Act, QOS evaluations, and more. +; + +[general] + +; Define whether or not to use CDR logging. Setting this to "no" will override +; any loading of backend CDR modules. Default is "yes". +;enable=yes + +; Define whether or not to log unanswered calls. Setting this to "yes" will +; report every attempt to ring a phone in dialing attempts, when it was not +; answered. For example, if you try to dial 3 extensions, and this option is "yes", +; you will get 3 CDR's, one for each phone that was rung. Default is "no". Some +; find this information horribly useless. Others find it very valuable. Note, in "yes" +; mode, you will see one CDR, with one of the call targets on one side, and the originating +; channel on the other, and then one CDR for each channel attempted. This may seem +; redundant, but cannot be helped. +;unanswered = no + +; Define the CDR batch mode, where instead of posting the CDR at the end of +; every call, the data will be stored in a buffer to help alleviate load on the +; asterisk server. Default is "no". +; +; WARNING WARNING WARNING +; Use of batch mode may result in data loss after unsafe asterisk termination +; ie. software crash, power failure, kill -9, etc. +; WARNING WARNING WARNING +; +;batch=no + +; Define the maximum number of CDRs to accumulate in the buffer before posting +; them to the backend engines. 'batch' must be set to 'yes'. Default is 100. +;size=100 + +; Define the maximum time to accumulate CDRs in the buffer before posting them +; to the backend engines. If this time limit is reached, then it will post the +; records, regardless of the value defined for 'size'. 'batch' must be set to +; 'yes'. Note that time is in seconds. Default is 300 (5 minutes). +;time=300 + +; The CDR engine uses the internal asterisk scheduler to determine when to post +; records. Posting can either occur inside the scheduler thread, or a new +; thread can be spawned for the submission of every batch. For small batches, +; it might be acceptable to just use the scheduler thread, so set this to "yes". +; For large batches, say anything over size=10, a new thread is recommended, so +; set this to "no". Default is "no". +;scheduleronly=no + +; When shutting down asterisk, you can block until the CDRs are submitted. If +; you don't, then data will likely be lost. You can always check the size of +; the CDR batch buffer with the CLI "cdr status" command. To enable blocking on +; submission of CDR data during asterisk shutdown, set this to "yes". Default +; is "yes". +;safeshutdown=yes + +; Normally, CDR's are not closed out until after all extensions are finished +; executing. By enabling this option, the CDR will be ended before executing +; the "h" extension so that CDR values such as "end" and "billsec" may be +; retrieved inside of of this extension. +;endbeforehexten=no + +; +; +; CHOOSING A CDR "BACKEND" (what kind of output to generate) +; +; To choose a backend, you have to make sure either the right category is +; defined in this file, or that the appropriate config file exists, and has the +; proper definitions in it. If there are any problems, usually, the entry will +; silently ignored, and you get no output. +; +; Also, please note that you can generate CDR records in as many formats as you +; wish. If you configure 5 different CDR formats, then each event will be logged +; in 5 different places! In the example config files, all formats are commented +; out except for the cdr-csv format. +; +; Here are all the possible back ends: +; +; csv, custom, manager, odbc, pgsql, radius, sqlite, tds +; (also, mysql is available via the asterisk-addons, due to licensing +; requirements) +; (please note, also, that other backends can be created, by creating +; a new backend module in the source cdr/ directory!) +; +; Some of the modules required to provide these backends will not build or install +; unless some dependency requirements are met. Examples of this are pgsql, odbc, +; etc. If you are not getting output as you would expect, the first thing to do +; is to run the command "make menuselect", and check what modules are available, +; by looking in the "2. Call Detail Recording" option in the main menu. If your +; backend is marked with XXX, you know that the "configure" command could not find +; the required libraries for that option. +; +; To get CDRs to be logged to the plain-jane /var/log/asterisk/cdr-csv/Master.csv +; file, define the [csv] category in this file. No database necessary. The example +; config files are set up to provide this kind of output by default. +; +; To get custom csv CDR records, make sure the cdr_custom.conf file +; is present, and contains the proper [mappings] section. The advantage to +; using this backend, is that you can define which fields to output, and in +; what order. By default, the example configs are set up to mimic the cdr-csv +; output. If you don't make any changes to the mappings, you are basically generating +; the same thing as cdr-csv, but expending more CPU cycles to do so! +; +; To get manager events generated, make sure the cdr_manager.conf file exists, +; and the [general] section is defined, with the single variable 'enabled = yes'. +; +; For odbc, make sure all the proper libs are installed, that "make menuselect" +; shows that the modules are available, and the cdr_odbc.conf file exists, and +; has a [global] section with the proper variables defined. +; +; For pgsql, make sure all the proper libs are installed, that "make menuselect" +; shows that the modules are available, and the cdr_pgsql.conf file exists, and +; has a [global] section with the proper variables defined. +; +; For logging to radius databases, make sure all the proper libs are installed, that +; "make menuselect" shows that the modules are available, and the [radius] +; category is defined in this file, and in that section, make sure the 'radiuscfg' +; variable is properly pointing to an existing radiusclient.conf file. +; +; For logging to sqlite databases, make sure the 'cdr.db' file exists in the log directory, +; which is usually /var/log/asterisk. Of course, the proper libraries should be available +; during the 'configure' operation. +; +; For tds logging, make sure the proper libraries are available during the 'configure' +; phase, and that cdr_tds.conf exists and is properly set up with a [global] category. +; +; Also, remember, that if you wish to log CDR info to a database, you will have to define +; a specific table in that databse to make things work! See the doc directory for more details +; on how to create this table in each database. +; + +[csv] +usegmtime=yes ; log date/time in GMT. Default is "no" +loguniqueid=yes ; log uniqueid. Default is "no +loguserfield=no ; log user field. Default is "no + +;[radius] +;usegmtime=yes ; log date/time in GMT +;loguniqueid=yes ; log uniqueid +;loguserfield=yes ; log user field +; Set this to the location of the radiusclient-ng configuration file +; The default is /etc/radiusclient-ng/radiusclient.conf +;radiuscfg => /usr/local/etc/radiusclient-ng/radiusclient.conf diff --git a/etc-asterisk/cdr_custom.conf b/etc-asterisk/cdr_custom.conf new file mode 100644 index 0000000..8bc2cb3 --- /dev/null +++ b/etc-asterisk/cdr_custom.conf @@ -0,0 +1,10 @@ +; +; Mappings for custom config file +; +; to get your csv output in a format tailored to your liking, uncomment the following +; and look for the output in the cdr-custom/Master.csv file (usually in /var/log/asterisk). +; +; +;[mappings] +;Master.csv => "${CDR(clid)}","${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${CDR(channel)}","${CDR(dstchannel)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(start)}","${CDR(answer)}","${CDR(end)}","${CDR(duration)}","${CDR(billsec)}","${CDR(disposition)}","${CDR(amaflags)}","${CDR(accountcode)}","${CDR(uniqueid)}","${CDR(userfield)}" + diff --git a/etc-asterisk/cdr_manager.conf b/etc-asterisk/cdr_manager.conf new file mode 100644 index 0000000..1d7984b --- /dev/null +++ b/etc-asterisk/cdr_manager.conf @@ -0,0 +1,6 @@ +; +; Asterisk Call Management CDR +; +[general] +enabled = no + diff --git a/etc-asterisk/codecs.conf b/etc-asterisk/codecs.conf new file mode 100644 index 0000000..3cf0e51 --- /dev/null +++ b/etc-asterisk/codecs.conf @@ -0,0 +1,65 @@ +[speex] +; CBR encoding quality [0..10] +; used only when vbr = false +quality => 8 + +; codec complexity [0..10] +; tradeoff between cpu/quality +complexity => 8 + +; perceptual enhancement [true / false] +; improves clarity of decoded speech +enhancement => true + +; voice activity detection [true / false] +; reduces bitrate when no voice detected, used only for CBR +; (implicit in VBR/ABR) +vad => true + +; variable bit rate [true / false] +; uses bit rate proportionate to voice complexity +vbr => true + +; available bit rate [bps, 0 = off] +; encoding quality modulated to match this target bit rate +; not recommended with dtx or pp_vad - may cause bandwidth spikes +abr => 0 + +; VBR encoding quality [0-10] +; floating-point values allowed +vbr_quality => 8 + +; discontinuous transmission [true / false] +; stops transmitting completely when silence is detected +; pp_vad is far more effective but more CPU intensive +dtx => false + +; preprocessor configuration +; these options only affect Speex v1.1.8 or newer + +; enable preprocessor [true / false] +; allows dsp functionality below but incurs CPU overhead +preprocess => true + +; preproc voice activity detection [true / false] +; more advanced equivalent of DTX, based on voice frequencies +pp_vad => true + +; preproc automatic gain control [true / false] +pp_agc => false +pp_agc_level => 8000 + +; preproc denoiser [true / false] +pp_denoise => true + +; preproc dereverb [true / false] +pp_dereverb => false +pp_dereverb_decay => 0.4 +pp_dereverb_level => 0.3 + + +[plc] +; for all codecs which do not support native PLC +; this determines whether to perform generic PLC +; there is a minor performance penalty for this +genericplc => true diff --git a/etc-asterisk/dnsmgr.conf b/etc-asterisk/dnsmgr.conf new file mode 100644 index 0000000..e34dbcf --- /dev/null +++ b/etc-asterisk/dnsmgr.conf @@ -0,0 +1,5 @@ +[general] +;enable=yes ; enable creation of managed DNS lookups + ; default is 'no' +;refreshinterval=1200 ; refresh managed DNS lookups every seconds + ; default is 300 (5 minutes) \ No newline at end of file diff --git a/etc-asterisk/dundi.conf b/etc-asterisk/dundi.conf new file mode 100644 index 0000000..f2c5d5b --- /dev/null +++ b/etc-asterisk/dundi.conf @@ -0,0 +1,242 @@ +; +; DUNDi configuration file +; +; For more information about DUNDi, see http://www.dundi.com +; +; +[general] +; +; The "general" section contains general parameters relating +; to the operation of the dundi client and server. +; +; The first part should be your complete contact information +; should someone else in your peer group need to contact you. +; +;department=Your Department +;organization=AUF +;locality=Your City +;stateprov=ST +;country=US +;email=voip@auf.org +;phone=+12565551212 +; +; +; Specify bind address and port number. Default is +; 4520 +; +;bindaddr=0.0.0.0 +;port=4520 +; +; Our entity identifier (Should generally be the MAC address of the +; machine it's running on. Defaults to the first eth address, but you +; can override it here, as long as you set it to the MAC of *something* +; you own!) +; +;entityid=00:07:E9:3B:76:60 +; +; Peers shall cache our query responses for the specified time, +; given in seconds. Default is 3600. +; +;cachetime=3600 +; +; This defines the max depth in which to search the DUNDi system. +; Note that the maximum time that we will wait for a response is +; (2000 + 200 * ttl) ms. +; +ttl=32 +; +; If we don't get ACK to our DPDISCOVER within 2000ms, and autokill is set +; to yes, then we cancel the whole thing (that's enough time for one +; retransmission only). This is used to keep things from stalling for a long +; time for a host that is not available, but would be ill advised for bad +; connections. In addition to 'yes' or 'no' you can also specify a number +; of milliseconds. See 'qualify' for individual peers to turn on for just +; a specific peer. +; +autokill=yes +; +; pbx_dundi creates a rotating key called "secret", under the family +; 'secretpath'. The default family is dundi (resulting in +; the key being held at dundi/secret). +; +;secretpath=dundi +; +; The 'storehistory' option (also changeable at runtime with +; 'dundi store history' and 'dundi no store history') will +; cause the DUNDi engine to keep track of the last several +; queries and the amount of time each query took to execute +; for the purpose of tracking slow nodes. This option is +; off by default due to performance impacts. +; +;storehistory=yes + +[mappings] +; +; The "mappings" section maps DUNDi contexts +; to contexts on the local asterisk system. Remember +; that numbers that are made available under the e164 +; DUNDi context are regulated by the DUNDi General Peering +; Agreement (GPA) if you are a member of the DUNDi E.164 +; Peering System. +; +; dundi_context => local_context,weight,tech,dest[,options]] +; +; 'dundi_context' is the name of the context being requested +; within the DUNDi request +; +; 'local_context' is the name of the context on the local system +; in which numbers can be looked up for which responses shall be given. +; +; 'weight' is the weight to use for the responses provided from this +; mapping. The number must be >= 0 and < 60000. Since it is totally +; valid to receive multiple responses to a query, responses received +; with a lower weight are tried first. Note that the weight has a +; special meaning in the e164 context - see the GPA for more details. +; +; 'tech' is the technology to use (IAX, SIP, H323) +; +; 'dest' is the destination to supply for reaching that number. The +; following variables can be used in the destination string and will +; be automatically substituted: +; ${NUMBER}: The number being requested +; ${IPADDR}: The IP address to connect to +; ${SECRET}: The current rotating secret key to be used +; +; Further options may include: +; +; nounsolicited: No unsolicited calls of any type permitted via this +; route +; nocomunsolicit: No commercial unsolicited calls permitted via +; this route +; residential: This number is known to be a residence +; commercial: This number is known to be a business +; mobile: This number is known to be a mobile phone +; nocomunsolicit: No commercial unsolicited calls permitted via +; this route +; nopartial: Do not search for partial matches +; +; There *must* exist an entry in mappings for DUNDi to respond +; to any request, although it may be empty. +; +;e164 => dundi-e164-canonical,0,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial +;e164 => dundi-e164-customers,100,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial +;e164 => dundi-e164-via-pstn,400,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial + +;digexten => default,0,IAX2,guest@lappy/${NUMBER} +;asdf => + + +; +; +; The remaining sections represent the peers +; that we fundamentally trust. The section name +; represents the name and optionally at a specific +; DUNDi context if you want the trust to be established +; for only a specific DUNDi context. +; +; inkey - What key they will be authenticating to us with +; +; outkey - What key we use to authenticate to them +; +; host - What their host is +; +; order - What search order to use. May be 'primary', 'secondary', +; 'tertiary' or 'quartiary'. In large systems, it is beneficial +; to only query one up-stream host in order to maximize caching +; value. Adding one with primary and one with secondary gives you +; redundancy without sacrificing performance. +; +; include - Includes this peer when searching a particular context +; for lookup (set "all" to perform all lookups with that +; host. This is also the context in which peers are permitted +; to precache. +; +; noinclude - Disincludes this peer when searching a particular context +; for lookup (set "all" to perform no lookups with that +; host. +; +; permit - Permits this peer to search a given DUNDi context on +; the local system. Set "all" to permit this host to +; lookup all contexts. This is also a context for which +; we will create/forward PRECACHE commands. +; +; deny - Denies this peer to search a given DUNDi context on +; the local system. Set "all" to deny this host to +; lookup all contexts. +; +; model - inbound, outbound, or symmetric for whether we receive +; requests only, transmit requests only, or do both. +; +; precache - Utilize/Permit precaching with this peer (to pre +; cache means to provide an answer when no request +; was made and is used so that machines with few +; routes can push those routes up a to a higher level). +; outgoing means we send precache routes to this peer, +; incoming means we permit this peer to send us +; precache routes. symmetric means we do both. +; +; Note: You cannot mix symmetric/outbound model with symmetric/inbound +; precache, nor can you mix symmetric/inbound model with symmetric/outbound +; precache. +; +; +; The '*' peer is special and matches an unspecified entity +; + +; +; Sample Primary e164 DUNDi peer +; +;[00:50:8B:F3:75:BB] +;model = symmetric +;host = 64.215.96.114 +;inkey = digium +;outkey = misery +;include = e164 +;permit = e164 +;qualify = yes + +; +; Sample Secondary e164 DUNDi peer +; +;[00:A0:C9:96:92:84] +;model = symmetric +;host = misery.digium.com +;inkey = misery +;outkey = ourkey +;include = e164 +;permit = e164 +;qualify = yes +;order = secondary + +; +; Sample "push mode" downstream host +; +;[00:0C:76:96:75:28] +;model = inbound +;host = dynamic +;precache = inbound +;inkey = littleguy +;outkey = ourkey +;include = e164 ; In this case used only for precaching +;permit = e164 +;qualify = yes + +; +; Sample "push mode" upstream host +; +;[00:07:E9:3B:76:60] +;model = outbound +;precache = outbound +;host = 216.207.245.34 +;register = yes +;inkey = dhcp34 +;permit = all ; In this case used only for precaching +;include = all +;qualify = yes +;outkey=foo + +;[*] +; + +#include "auf/dundi.local" + diff --git a/etc-asterisk/enum.conf b/etc-asterisk/enum.conf new file mode 100644 index 0000000..37c0b45 --- /dev/null +++ b/etc-asterisk/enum.conf @@ -0,0 +1,25 @@ +; +; ENUM Configuration for resolving phone numbers over DNS +; +; Sample config for Asterisk +; This file is reloaded at "module reload enum" in the CLI +; +[general] +; +; The search list for domains may be customized. Domains are searched +; in the order they are listed here. +; +search => e164.arpa +; +; If you'd like to use the E.164.org public ENUM registry in addition +; to the official e164.arpa one, uncomment the following line +; +;search => e164.org +; +; As there are more H323 drivers available you have to select to which +; drive a H323 URI will map. Default is "H323". +; +;h323driver => H323 + +#include "auf/enum.local" + diff --git a/etc-asterisk/extconfig.conf b/etc-asterisk/extconfig.conf new file mode 100644 index 0000000..b1bb654 --- /dev/null +++ b/etc-asterisk/extconfig.conf @@ -0,0 +1,65 @@ +; +; Static and realtime external configuration +; engine configuration +; +; Please read doc/extconfig.txt for basic table +; formatting information. +; +[settings] +; +; Static configuration files: +; +; file.conf => driver,database[,table] +; +; maps a particular configuration file to the given +; database driver, database and table (or uses the +; name of the file as the table if not specified) +; +;uncomment to load queues.conf via the odbc engine. +; +;queues.conf => odbc,asterisk,ast_config +; +; The following files CANNOT be loaded from Realtime storage: +; asterisk.conf +; extconfig.conf (this file) +; logger.conf +; +; Additionally, the following files cannot be loaded from +; Realtime storage unless the storage driver is loaded +; early using 'preload' statements in modules.conf: +; manager.conf +; cdr.conf +; rtp.conf +; +; +; Realtime configuration engine +; +; maps a particular family of realtime +; configuration to a given database driver, +; database and table (or uses the name of +; the family if the table is not specified +; +;example => odbc,asterisk,alttable +; +; "odbc" is shown in the examples below, but is not the only valid realtime +; engine. There is: +; odbc ... res_config_odbc +; pgsql ... res_config_pgsql +; mysql ... res_config_mysql (available from asterisk-addons) +; +;iaxusers => odbc,asterisk +;iaxpeers => odbc,asterisk +;sipusers => odbc,asterisk +;sippeers => odbc,asterisk +;voicemail => odbc,asterisk +;extensions => odbc,asterisk +;queues => odbc,asterisk +;queue_members => odbc,asterisk + +; #include "auf/extconfig.local" +; include mis en commentaire car provoque le warning suivant (dans Asterisk 1.2) +; voip-test*CLI> reload extconfig +; == Parsing '/etc/asterisk/extconfig.conf': Found +; Jan 10 12:39:34 WARNING[9289]: config.c:938 ast_config_internal_load: Maximum Include level (1) exceeded +; + diff --git a/etc-asterisk/extensions.conf b/etc-asterisk/extensions.conf new file mode 100644 index 0000000..db41511 --- /dev/null +++ b/etc-asterisk/extensions.conf @@ -0,0 +1,369 @@ +; extensions.conf - the Asterisk dial plan +; +; 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 "dialplan 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 "dialplan save" too +; +writeprotect=yes +; +; 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. This is the default. +; +; 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. +; +; NOTE: A complication sets in, if you put your global variables into +; the AEL file, instead of the extensions.conf file. With clearglobalvars +; set, a "reload" will often leave the globals vars cleared, because it +; is not unusual to have extensions.conf (which will have no globals) +; load after the extensions.ael file (where the global vars are stored). +; So, with "reload" in this particular situation, first the AEL file will +; clear and then set all the global vars, then, later, when the extensions.conf +; file is loaded, the global vars are all cleared, and then not set, because +; they are not stored in the extensions.conf file. +; +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 +; +; User context is where entries from users.conf are registered. The +; default value is 'default' +; +;userscontext=default +; +; 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 the GLOBAL dialplan function: +; ${GLOBAL(VARIABLE)} +; ${${GLOBAL(VARIABLE)}} or ${text${GLOBAL(VARIABLE)}} or any hybrid +; Unix/Linux environmental variables can be reached with the ENV dialplan +; function: ${ENV(VARIABLE)} +; +[globals] + +; +; AUF : inclusion des variables globales +; + +#include "auf/extensions-globals.local" + +;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. +; +;[context] +;exten => someexten,{priority|label{+|-}offset}[(alias)],application(arg1,arg2,...) +;exten => someexten,{priority|label{+|-}offset}[(alias)],application,arg1|arg2... +; +; Included Contexts +; +; 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. +; The reason a context would include other contexts is for their +; extensions. +; The algorithm to find an extension is recursive, and works in this +; fashion: +; first, given a stack on which to store context references, +; push the context to find the extension onto the stack... +; a) Try to find a matching extension in the context at the top of +; the stack, and, if found, begin executing the priorities +; there in sequence. +; b) If not found, Search the switches, if any declared, in +; sequence. +; c) If still not found, for each include, push that context onto +; the top of the context stack, and recurse to a). +; d) If still not found, pop the entry from the top of the stack; +; if the stack is empty, the search has failed. If it's not, +; continue with the next context in c). +; This is a depth-first traversal, and stops with the first context +; that provides a matching extension. As usual, if more than one +; pattern in a context will match, the 'best' match will win. +; Please note that that extensions found in an included context are +; treated as if they were in the context from which the search began. +; The PBX's notion of the "current context" is not changed. +; Please note that in a context, it does not matter where an include +; directive occurs. Whether at the top, or near the bottom, the effect +; will be the same. The only thing that matters is that if there is +; more than one include directive, they will be searched for extensions +; in order, first to last. +; Also please note that pattern matches (like _9XX) are not treated +; any differently than exact matches (like 987). Also note that the +; order of extensions in a context have no affect on the outcome. +; +; Timing list for includes is +; +;