From 5bc84f52dd0f920818f133bb7a73652d5a1094d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Moussa=20NOMBR=C3=89?= Date: Wed, 7 Nov 2012 17:02:08 -0500 Subject: [PATCH] =?utf8?q?Mise=20=C3=A0=20jour=20apr=C3=A8s=20premi=C3=A8res?= =?utf8?q?=20vagues=20de=20gros=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- auf/extensions.local | 4 ++-- auf/voicemail.local | 5 +++++ debian/changelog | 9 +++++++++ debian/config | 5 ++++- debian/postinst | 7 +++++++ etc-asterisk/extensions.conf | 2 +- etc-asterisk/sip.conf | 2 +- etc-asterisk/voicemail.conf | 4 +--- 8 files changed, 30 insertions(+), 8 deletions(-) diff --git a/auf/extensions.local b/auf/extensions.local index 09d0e00..2151f5b 100644 --- a/auf/extensions.local +++ b/auf/extensions.local @@ -17,9 +17,9 @@ ; exten => thomas.noel,hint,SIP/thomas.noel&IAX2/thomas.noel ; A SUPPRIMER ! UNIQUEMENT POUR PREMIERS TESTS ! -exten => 100,1,Macro(AUFDial,test); +exten => 100,1,Macro(AUFDial,test) exten => 100,hint,SIP/test&IAX2/test -exten => test,1,Macro(AUFDial,test); +exten => test,1,Macro(AUFDial,test) exten => test,hint,SIP/test&IAX2/test ;;; exemple d'entrée pour la consultation de l'annuaire téléphonique diff --git a/auf/voicemail.local b/auf/voicemail.local index 3a53fcb..887db17 100644 --- a/auf/voicemail.local +++ b/auf/voicemail.local @@ -1,5 +1,10 @@ ; auf/voicemail.local : surcharge de /etc/asterisk/voicemail.conf ; +; +[general](+) +tz=fuseaulocal +locale=fr_FR.UTF-8 + ; Indiquez ici votre fuseau horaire local (voir la liste dans /usr/share/zoneinfo) [zonemessages](+) fuseaulocal=UTC|'vm-received' Q 'digits/at' kM diff --git a/debian/changelog b/debian/changelog index 9c80bf5..3a9a6e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +asterisk-config-auf (1.8-1.2) unstable; urgency=low + + * correction de bug [Not a local domain.] à cause de autodomain oublié à yes + * correction faute de frappe dans voicemail.conf + * correction du bug de date en anglais dans les courriels du VM + * debconf préfixe international : on ne pose plus de question + + -- Moussa NOMBRÉ Thu, 11 Oct 2012 13:35:29 -0400 + asterisk-config-auf (1.8-1.1) unstable; urgency=low * Correction d'un manque d'attention : les fichiers dans le dossier auf diff --git a/debian/config b/debian/config index da94bf5..1db516e 100755 --- a/debian/config +++ b/debian/config @@ -114,7 +114,10 @@ fi # # QUESTION 3 : Prefixe pour l'international # -db_input low asterisk-config-auf/prefixe || true +# Asterisk 1.8 : on choisi de ne plus poser cette question, ça sera 00 pour tous +# quelqu'un qui a _vraiment_ besoin de le changer pourra le faire +# mais il devra le faire en éditant le fichier +#db_input low asterisk-config-auf/prefixe || true # fin diff --git a/debian/postinst b/debian/postinst index 8672309..bc22f09 100644 --- a/debian/postinst +++ b/debian/postinst @@ -83,6 +83,13 @@ case "$1" in sed -i -e 's#^fuseaulocal=UTC|\(.*\)$#fuseaulocal='"${ETCTZ}"'|\1#' /etc/asterisk/auf/voicemail.local fi fi + # on vérifie le locale et on met le bon au besoin + LOCALE_LC_ALL=`echo $LC_ALL` + if [ "${LOCALE_LC_ALL}" != "fr_FR.utf8" -a -n "${LOCALE_LC_ALL}" ] + then + LOCALE_TO_SET=`echo ${LOCALE_LC_ALL%.*}` + sed -i -e 's#^locale=fr_FR.UTF-8#locale='"${LOCALE_TO_SET}"'.UTF-8#' /etc/asterisk/auf/voicemail.local + fi # # Partie "debconf" pour la gestion de auf/extensions-globals.local diff --git a/etc-asterisk/extensions.conf b/etc-asterisk/extensions.conf index d2b8c80..3d8afe8 100644 --- a/etc-asterisk/extensions.conf +++ b/etc-asterisk/extensions.conf @@ -259,7 +259,7 @@ exten => a,1,VoicemailMain(${MACRO_EXTEN}@AUF) ; Si "*" appuyé pendant Voic [macro-AUFDirectory] ; Macro utilisé pour l'annuaire téléphonie ; cette macro est appelé soit via le menu du standard s'il existe -; ou simplement en ajoutant une entrée spéciale dans le dialpla (auf/extensions.local +; ou simplement en ajoutant une entrée spéciale dans le dialplan (auf/extensions.local) exten => s,1,Directory(AUF,AUF,b) exten => s,n,MacroExit diff --git a/etc-asterisk/sip.conf b/etc-asterisk/sip.conf index 28fc411..6d0332d 100644 --- a/etc-asterisk/sip.conf +++ b/etc-asterisk/sip.conf @@ -1006,7 +1006,7 @@ directmedia=no ; Asterisk reste sur le chemin du flux audio ; You can have several "domain" settings allowexternaldomains=yes ; Disable INVITE and REFER to non-local domains ; Default is yes -autodomain=yes ; Turn this on to have Asterisk add local host +autodomain=no ; Turn this on to have Asterisk add local host ; name and local IP to domain list. ; fromdomain=mydomain.tld ; When making outbound SIP INVITEs to diff --git a/etc-asterisk/voicemail.conf b/etc-asterisk/voicemail.conf index d4fa7fb..a15e134 100644 --- a/etc-asterisk/voicemail.conf +++ b/etc-asterisk/voicemail.conf @@ -147,7 +147,7 @@ emailsubject=[BoiteVocale ${VM_MAILBOX}] Nouveau message ${VM_MSGNUM} dans la bo ; caller", if they are both null. ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}, so you might\nwant to check it when you get a chance. Thanks!\n\n\t\t\t\t--Asterisk\n -emailbody=\nCher-ère ${VM_NAME},\n\nNous vous informons qu'un message vient d'être ajouté dans\nvotre messagerie vocale ${VM_MAILBOX}.\n\n\tExpéditeur : ${VM_CALLERID} (${VM_CIDNUM})\n\tDate : ${VM_DATE}\n\tDurée : ${VM_DUR}\n\tNuméro du message : ${{VM_MSGNUM}\n\nPour consulter votre messagerie vocale, composez *66\n\n--\nSystème Voix-sur-IP de l'AUF \n +emailbody=\nCher-ère ${VM_NAME},\n\nNous vous informons qu'un message vient d'être ajouté dans\nvotre messagerie vocale ${VM_MAILBOX}.\n\n\tExpéditeur : ${VM_CALLERID} (${VM_CIDNUM})\n\tDate : ${VM_DATE}\n\tDurée : ${VM_DUR}\n\tNuméro du message : ${VM_MSGNUM}\n\nPour consulter votre messagerie vocale, composez *66\n\n--\nSystème Voix-sur-IP de l'AUF \n ; ; Note: ${IF()} strips spacing at the beginning and end of its true and false @@ -216,7 +216,6 @@ pagerdateformat=le %d %B %Y à %H:%M:%S ; NOTE: All options can be expressed globally in the general section, and ; overridden in the per-mailbox settings, unless listed otherwise. ; -tz=fuseaulocal ; tz=central ; Timezone from zonemessages below. Irrelevant if envelope=no. ; locale=de_DE.UTF-8 ; set the locale for generation of the date/time strings (make ; sure the locales are installed in your operating system; e.g @@ -384,7 +383,6 @@ central=America/Chicago|'vm-received' Q 'digits/at' IMp central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours' military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p' european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM -fuseaulocal=GMT|'vm-received' Q 'digits/at' kM [default] -- 1.7.10.4