<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
from voipinfo...<br>
<br>
<span style="color: rgb(46, 47, 48); font-family: 'Helvetica
Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important; float:
none; background-color: rgb(255, 255, 255);">If an Asterisk
command specifies a sound file in a<span
class="Apple-converted-space"> </span></span><strong
style="box-sizing: border-box; font-weight: bold; line-height:
21px; color: rgb(46, 47, 48); font-family: 'Helvetica Neue',
Helvetica, Roboto, Arial, sans-serif; font-size: 14px; font-style:
normal; font-variant: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">subdirectory</strong><span style="color: rgb(46, 47, 48);
font-family: 'Helvetica Neue', Helvetica, Roboto, Arial,
sans-serif; font-size: 14px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
21px; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">,
Asterisk looks in that subdirectory for the language subdirectory.
For example, the</span><a title="Asterisk cmd SayDigits"
href="http://www.voip-info.org/wiki/view/Asterisk+cmd+SayDigits"
style="box-sizing: border-box; color: rgb(6, 72, 110);
text-decoration: underline; line-height: 21px; font-family:
'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size:
14px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">SayDigits</a><span
style="color: rgb(46, 47, 48); font-family: 'Helvetica Neue',
Helvetica, Roboto, Arial, sans-serif; font-size: 14px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 21px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none; background-color:
rgb(255, 255, 255);"><span class="Apple-converted-space"> </span>command
may play the sound file "digits/6". Asterisk will, if the language
code is "de", first look for /var/lib/asterisk/sounds/</span><strong
style="box-sizing: border-box; font-weight: bold; line-height:
21px; color: rgb(46, 47, 48); font-family: 'Helvetica Neue',
Helvetica, Roboto, Arial, sans-serif; font-size: 14px; font-style:
normal; font-variant: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">digits/de/</strong><span style="color: rgb(46, 47, 48);
font-family: 'Helvetica Neue', Helvetica, Roboto, Arial,
sans-serif; font-size: 14px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
21px; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">6.gsm
before falling back to /var/lib/asterisk/sounds/digits/6.gsm.</span><br>
<br>
<div class="moz-cite-prefix">Markus<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki/view/Asterisk+multi-language">http://www.voip-info.org/wiki/view/Asterisk+multi-language</a><br>
<br>
Am 14.06.2015 um 09:36 schrieb Luca Bertoncello:<br>
</div>
<blockquote cite="mid:20150614093606.5be80fa4@frodo.lucabert.intra"
type="cite">
<pre wrap="">Hi again
I'd like to configured my Asterisk to use german sounds for the
"Say"-commands...
I installed the sounds-files and I tried them with
"Playback(de/demo-echodone)" and it works.
Now I tried to add an extension to say the current time:
exten => 24,1,Verbose(2,Time asked by ${CALLERID(num)})
Exten => 24,n,Set(CHANNEL(language)=de)
Exten => 24,n,SayUnixTime()
Exten => 24,n,Hangup
But if I call the "24", it says the time in English...
On the CLI I see:
-- Executing [24@default:2] Set("SIP/00493511111111-00000003", "CHANNEL(language)=de") in new stack
-- Executing [24@default:3] SayUnixTime("SIP/00493511111111-00000003", "") in new stack
-- <SIP/00493511111111-00000003> Playing 'digits/day-0.gsm' (language 'de')
-- <SIP/00493511111111-00000003> Playing 'digits/h-14.gsm' (language 'de')
...
So, it seems, it would use the German sounds, but it doesn't...
Has someone an explanation why it works so?
Thanks
Luca Bertoncello
(<a class="moz-txt-link-abbreviated" href="mailto:lucabert@lucabert.de">lucabert@lucabert.de</a>)
</pre>
</blockquote>
<br>
</body>
</html>