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)
Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.