LANGUAGE()
de
and
Playback(tt-weasels)
is run in the
dialplan, Asterisk will play de/tt-weasels
, if it
exists, and similarly for SayDigits()
and other applications which rely on pre-recorded audio
files.; Query: exten => 123,1,Set(foo=${LANGUAGE()}) ; Set Spanish: exten => 123,1,Set(LANGUAGE()=es)
CHANNEL(language)
instead. See Section C.7, “CHANNEL()
”-= Info about function 'LANGUAGE' =- [Syntax] LANGUAGE() [Synopsis] Gets or sets the channel's language. [Description] Deprecated. Use CHANNEL(language) instead.
11c11,18 < Deprecated. Use CHANNEL(language) instead. --- > Gets or sets the channel language. This information is used for the > syntax in generation of numbers, and to choose a natural language file > when available. For example, if language is set to 'fr' and the file > 'demo-congrats' is requested to be played, if the file > 'fr/demo-congrats' exists, then it will play that file, and if not > will play the normal 'demo-congrats'. For some language codes, > changing the language also changes the syntax of some Asterisk > functions, like SayNumber.