Reads/sets the language of the current channel. This setting determines, among other things, which audio files are played. If the language is set to 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)


This function is deprecated. Use CHANNEL(language) instead. See Section C.7, “CHANNEL()


Internal help for this application in Asterisk 1.4:
  -= Info about function 'LANGUAGE' =- 


Gets or sets the channel's language.

Deprecated. Use CHANNEL(language) instead.
diff output to internal help in Asterisk 1.2:
< 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.