SetLanguage( ) Sets the channel's language

 

    SetLanguage(language)

 

Sets the channel language to 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, the file fr/demo-congrats will be played if it exists; if not, the normal demo-congrats file will be played.

Always returns 0.

    exten => s,1,SetLanguage(fr)
    exten => s,2,SayNumber(1234)
    exten => s,3,Playback(enter-ext-of-person)