O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SetLanguage() — Sets the channel’s language

Synopsis

    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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required