[asterisk-users] VM mail notification and locale
Dominique Dartois
dom at dartois.org
Wed Nov 22 05:02:33 MST 2006
> LC_CTYPE or LC_TIME?
LC_TIME, sorry for the typo.
I added
export LC_TIME=fr_FR
(date; locale) > /tmp/log
in /etc/init.d/asterisk and restarted by "service asterisk restart".
The content of /tmp/log :
linux2:/tmp # cat log
Wed Nov 22 12:43:09 CET 2006
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=POSIX
Obviously the assigment has no effect but a NoOp(LC_TIME: ${ENV(LC_TIME)})
in extension.ael2 displays in the CLI :
-- Executing NoOp("SIP/103-0819f470", "LC_TIME: fr_FR") in new stack
!!!!!!!!!
-----Message d'origine-----
De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Tzafrir Cohen
Envoyé : mardi 21 novembre 2006 23:32
À : asterisk-users at lists.digium.com
Objet : Re: [asterisk-users] VM mail notification and locale
On Tue, Nov 21, 2006 at 10:54:31PM +0100, Dominique Dartois wrote:
> I set the ENV variable LC_TYPE=fr_FR
LC_CTYPE or LC_TIME?
> in the starting shell of Asterisk.
> A NoOp(${ENV(LC_TIME)}) in extension.ael2 shows the right value.
> In voicemail.conf, emaildateformat=%A prints the day of week in the
> mail body but in English, not in French.
Could you add to that script, just before running asterisk,
(date; locale) > /tmp/log
and provide here the generated /tmp/log from an asterisk startup so we can
see that the assignment had the right effect?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list