1. LANGUAGE - this function allows you to change the used language.
NOTE:Information about the Asterisk functions could be obtained by typing the show functions command.
Information about a particular function could be obtained by typing the show function <function name> on the Asterisk CLI command.
NOTE: In Asterisk versions 1.2 and up there are several applications which are mark as deprecated and which are no longer supported.
These applications will now become functions and these functions will be used in combination with the Set application.
You have to know that their functionality will be the same, but with a different syntax.
The LANGUAGE function is one of those new functions which will replace the old applications. In this tutorial we will show you its syntax and possible usage.
value - The new language, which you want to set to the caller. It has to be written in the standard two letters abbreviation. ("en" for English, "fr" for French, "de" for German and so on)
Purpose and usage
The purpose of this function is to give you the possibility to change the preferable language. This also could be done manually in the configuration file of the channel oyu use (iax.conf, sip.conf or mgcp.conf). However may be it is easier to do this by using the LANGUAGE() function.
With this function you could state your preferable language. The Asterisk PBX could use this to determine and play the sound files recorded in the desired language.
If your preferable language is set to de(German), then the system will try to play the sound files from the /var/lib/asterisk/sounds/de directory. The messages in these files are recorded in German. If your language is set to fr(French), the system will try to play the sound files from the /var/lib/asterisk/sounds/fr directory. The messages in these files are recorded in French. And so on.
If the language directory does not exist, the system will play the general sound files, which are placed in the /var/lib/asterisk/sounds.
Also, if there is no directory for your language, you could create one. Then you could record sound messages in your own language and put them in the created directory.
So, your services could become more personalized and user friendly.
When you set a language, you have to use the standard two letters abbreviation.
To see how the application works we recommend you to use our IAX softphone Idefisk. You could download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX.
Asterisk PBX configurations
iax.conf Configurations
We need to create one user in the iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol, such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.
So, we have registered the user user1
Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.
On the picture above you could see our extensions.conf file.
In this example, when somebody dials 100, the call will be answered by the Answer application. The next executed extension will be the one which contains the NoOp application. We will use it to check the content of the ${LANGUAGE} variable. In our case it shows en i.e. English, because this is the language set in the general section of our iax.conf file by using the language=<language> option.
Now let's change the preferable caller's language with the LANGUAGE() function.
Use the Set application and type the following, as argument in its brackets - LANGUAGE()=de. This will cause the change of the language from en to de i.e. German.
We will use another extension with the NoOp application - to verify that the change is successful.
NOTE: The function LANGUAGE is case sensitive. You always have to write it in your dialplans as you see it in our tutorial.
In order to be sure that the Asterisk PBX will hang up the line, when the conversation is over, it is a good idea to use the Hangup application.
2. Screenshots of what you could see on the CLI of the Asterisk PBX
3. Additional information
For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.
This application is tested with our IAX softphone Idefisk. You can download it from here. For more information about this softphone please read our tutorial.
If you would like to test this application with the SIP channel you can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
hi (hi at Hi dot com) 02 January 2021 11:56:45 Function LANGUAGE not registered
SofnyDus (egorpetrovqsaq at onet dot pl) 08 July 2020 13:25:33 dating over 50 london zeist
[url=http://9emmez.netlib.re/862-zongshen-pem-power-systems-tactical-amp-strategic-database-specifications-toronto-perspectives.php]Zongshen PEM Power Systems: Tactical & Strategic Database Specifications - Toronto perspectives[/url]
generic ed pills from canada (carriengland at freundin dot ru) 08 July 2020 12:15:23 generic ed pills from canada http://www.cialij.com/
price of viagra (dedra dot voss at viagra1 dot icu) 01 July 2020 18:10:12 price of viagra https://viatribuy.com/
Artas (lurctj2rz at hotmail dot com) 20 December 2015 21:36:58 I have been experimenting with VoIP for some time. I staetrd really low cost with free VoIPCheap software on my PC and a a315 (pounds sterling) headset on my PC.After trying 2 more different technologies (two different ATA adapters and a WiFi phone) I would now recommend the purchase of a Siemens S685IP cordless VoIP phone with 2 or more handsets and subscription to poivY (12.50 € euros initial payment) as a SIP provider.The phone is expensive, but worth it. It will give you fantastic voice quality, endless features, like auto redial on busy.The SIP provider poivY, will give you really cheap phone calls. For example free land line calls to Australia, UK and other major euro countries for 120 days and 0.054 € (euro) per minute to Australian mobiles.I have no connection with either of these companies, just trying to help.Good Luck. http://nnhtfbdgmg.com [url=http://ydzhraq.com]ydzhraq[/url] [link=http://mlmswuqsby.com]mlmswuqsby[/link]
Ecem (hqp3h2lxoij at outlook dot com) 19 December 2015 10:08:58 Hi rakshit. I(a KOBRA like u)(u mean wat i get na.. ) would like to have your email-id, if u give. SO that i can get some caerer- guidance from u related to infosys!!Studying:SE.ITCOllege:MIT-PUNECompleted iploma in COmp(throughout 6-sem distinction) http://azttqilzap.com [url=http://fvdnsuma.com]fvdnsuma[/url] [link=http://ehwfbariew.com]ehwfbariew[/link]
Jasvir (3xqs4fze6 at outlook dot com) 18 December 2015 10:49:44 Steve Lenti:I know this is an old post but could you provide me with your final setgtnis for shorewall. I have been having issues recently and I would really appreciate seeing what worked for you.Thanks!
Shama (uhsp6b50 at mail dot com) 09 October 2015 17:47:12 Sigo en un limbo de ignorancia en todo lo roaacienldo con VoIP, ased que a ver que9 nos cuentas en la BSDCon de Barcelona y cuando me ponga a probar en casa seguro que tendre9 algo totalmente disparatado que contar. http://qmlbgoqls.com [url=http://ktbvtaplq.com]ktbvtaplq[/url] [link=http://brfcphs.com]brfcphs[/link]
Ale (aps7g5kg at gmail dot com) 09 October 2015 09:32:04 Ken: Unlike the puzzle whose many names <a href="http://zddejlnbl.com">inuldce</a> Hanjie, Pic-a-Pix, and Nonograms, these puzzles were never intended to form pictures when solved.
Cezar (dlwctft1cy8 at gmail dot com) 09 October 2015 03:12:21 sorry! really i did not proidve any stuff for help!-------------------Actually i want to connect PSTN to My hylafax+asterisk+iaxmodem. and i dont know how it will works.guide me in this reqards, i am new in Voip, plz http://wbavohsn.com [url=http://ajrmjnkrnyx.com]ajrmjnkrnyx[/url] [link=http://owragw.com]owragw[/link]
Gopal (6b4dthqc at mail dot com) 08 October 2015 21:16:41 Hi rakshit. I(a KOBRA like u)(u mean wat i get na.. ) would like to have your email-id, if u give. SO that i can get some <a href="http://lzhixmbjc.com">caerer</a>- guidance from u related to infosys!!Studying:SE.ITCOllege:MIT-PUNECompleted iploma in COmp(throughout 6-sem distinction)
Jayro (yr6f36sx at gmail dot com) 25 September 2015 12:15:30 Steve Lenti:I know this is an old post but could you provide me with your final steitngs for shorewall. I have been having issues recently and I would really appreciate seeing what worked for you.Thanks!