SetLanguage (dialplan application) (2024)


6.1.2.86. SetLanguage (dialplan application)

1. SetLanguage - this application allows you to change the used language.

NOTE: This application is valid for Asterisk version 1.0.9 and above.




Syntax:

SetLanguage(language)




Purpose and usage

The purpose of this application 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 SetLanguage application.

With this application you can 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 can create one. Then you can record sound messages in your own language and to put them into the directory.

So, your services could become more personalized and user friendly.

When you set a language, you have to use the two letters abbreviation.




Prerequisites

To use this application you need a working Asterisk PBX with registered users in iax.conf, sip.conf or mgcp.conf(It depends on which protocol you would like to use) and made extensions.

To see how the application works we recommend to use our

IAX softphone Idefisk

. You can download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX.




Asterisk PBX configurations
NOTE:

This is only an example of what for you can use this application. Of course you can use it and for other things.

We need one registered users in 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.


SetLanguage (dialplan application) (1)

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 can see our extensions.conf file.

In our example when somebody dials 1010, the call will be answered by the Answer application. The next executed extension will be the one which contains the SendText application. It will send us, a text message with the current language. In our example the message is The current language is: en. So the language is English. To check the current language, we use the variable ${LANGUAGE}. Then we have the Wait application. Just to give enough time to the user to see the message. We have set the time to 5 seconds.

The extension with priority 4 is the one with the SetLanguage application. We will set the language to German by its help.

Then we have another Wait application.

Finally, we have again SendText application. It will help us to check whether the change is successful.
A new message will appear on the screen of the caller. In our case it is: The new language is: de. This means that the new language is German.

NOTE: The desired language has to be written with the two letters abbreviation.

In order to be sure, that the Asterisk PBX will hang up the line after the conversation is over, it is always a good idea to make an extension for hanging up.


2. Screenshots of what you can see on your Idefisk and 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



User Comments
gadgad(totof990 at gmail dot com)
06 November 2023 09:48:42
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=373
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=374
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=375
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=376
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=377
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=378
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=379
https://wpfsah5003.expandcart.com/index.php?route=product/product&product_id=380
https://roggle-delivery.tribe.so/question/https-wpfsah5003-expandcart-com-index-php-route-product-product-product-id---654886220b2f4a7bb8e2d54d
https://roggle-delivery.tribe.so/question/https-wpfsah5003-expandcart-com-index-php-route-product-product-product-id---6548861a0b2f4a7e43e2d53c
https://roggle-delivery.tribe.so/question/https-wpfsah5003-expandcart-com-index-php-route-product-product-product-id---654886138856fa504846a66e
https://roggle-delivery.tribe.so/question/https-wpfsah5003-expandcart-com-index-php-route-product-product-product-id---6548860a0b2f4a8db3e2d52d
https://medium.com/@zsoso1180/gsagdg-ce6b31511069
https://baskadia.com/post/htq5
https://www.deviantart.com/indexgoogle2/journal/gswgvrdv-992700782
https://evvnt.com/events/?_evDiscoveryPath=%2Fevent%2F2055748-grsagvrd&touch=1699252278
https://muckrack.com/porat-parit/bio
https://pastelink.net/qj636g2t
https://snippet.host/tyucwx
https://rentry.co/rbg2m
https://controlc.com/4b7098db
https://bitbin.it/wdxJX0EE/
https://justpaste.it/9sjd5
https://jsfiddle.net/mocin67/vuasx49h/
https://tech-start.mn.co/members/19947533
https://code.antopie.org/Miyasu/hzshbr/issues/1
https://code.antopie.org/Miyasu/hzshbr/projects
https://blog.cishost.ru/profile/movieshds/
https://boersen.oeh-salzburg.at/anzeige/voir-films-radical-2023-fr-streaming-en-francais-vostfr/
https://boersen.oeh-salzburg.at/anzeige/voir-radical-films-streaming-vf-fr-complet-en-francais/
https://gitea.elara.ws/Misuka
https://gitea.elara.ws/Misuka/-/projects
gAEEASGT(zsoso1180 at gmail dot com)
05 November 2023 20:29:57
https://groups.google.com/g/videahu-az-almafa-virga-teljes-film-magyarul
https://groups.google.com/g/videahu-az-almafa-virga-teljes-film-magyarul/c/TMlIz0l3n5g
https://groups.google.com/g/videahu-az-almafa-virga-teljes-film-magyarul/c/rBcYzuClC7o
https://groups.google.com/g/videahu-az-almafa-virga-teljes-film-magyarul/c/V99illxKgog
https://soundcloud.com/zozo-soso-421837066/online-filmek-az-almafa-viraga-2023-teljes-film-magyarul-videa
https://soundcloud.com/zozo-soso-421837066/videa-hu-az-almafa-viraga-teljes-film-2023-indavideo-magyarul
https://groups.google.com/g/videahu-magyarzat-mindenre-teljes-film-magyarul-hd
https://groups.google.com/g/videahu-magyarzat-mindenre-teljes-film-magyarul-hd/c/I3MQkmb3wZQ
https://groups.google.com/g/videahu-magyarzat-mindenre-teljes-film-magyarul-hd/c/lhFgjGiQJh4
https://groups.google.com/g/videahu-hat-ht-teljes-film-magyarul
https://groups.google.com/g/videahu-hat-ht-teljes-film-magyarul/c/i5IFkxapL1o
https://groups.google.com/g/videahu-hat-ht-teljes-film-magyarul/c/wszQuHo5_d0
https://soundcloud.com/zozo-soso-421837066/online-filmek-hat-het-2023-teljes-film-magyarul-videa
https://groups.google.com/g/videahu-vgtelen-vztkr-teljes-film-magyarul
https://groups.google.com/g/videahu-vgtelen-vztkr-teljes-film-magyarul/c/cHLC4_26aeI
https://groups.google.com/g/videahu-vgtelen-vztkr-teljes-film-magyarul/c/-jd374G7tV8
https://groups.google.com/g/videahu-vgtelen-vztkr-teljes-film-magyarul/c/YHMx27zA_Vo
https://soundcloud.com/zozo-soso-421837066/online-filmek-tonda-slavka-a-kouzelne-svetlo-2023-teljes-film-magyarul-videa
https://groups.google.com/g/videahu-tomi-polli-es-a-varazsfeny
https://groups.google.com/g/videahu-tomi-polli-es-a-varazsfeny/c/EsLzFjyL7qk
https://groups.google.com/g/videahu-tomi-polli-es-a-varazsfeny/c/tcCTlha1EJ0
https://soundcloud.com/zozo-soso-421837066/tonda-slavka-a-kouzelne-svetlo-cely-film-2023-cz-dabing-onlinehd
https://soundcloud.com/zozo-soso-421837066/tonda-slavka-a-kouzelne-svetlo-online-film-2023-cesky-czsk-dabing-hd
https://soundcloud.com/zozo-soso-421837066/online-filmek-a-zodiakus-lovagjai-2023-teljes-film-magyarul-videa
https://groups.google.com/g/videahu-semmelweis-teljes-film-magyarul
https://groups.google.com/g/videahu-semmelweis-teljes-film-magyarul/c/7p6itLXFviM
https://groups.google.com/g/videahu-semmelweis-teljes-film-magyarul/c/7p6itLXFviM
https://soundcloud.com/zozo-soso-421837066/online-filmek-semmelweis-2023-teljes-film-magyarul-videa
https://soundcloud.com/zozo-soso-421837066/online-filmek-cicaverzum-2023-teljes-film-magyarul-videa
https://soundcloud.com/zozo-soso-421837066/videa-hd-cicaverzum-teljes-film-2023-indavideo-magyarul-videa
https://groups.google.com/g/videahu-cicaverzum-teljes-film-magyarul
https://groups.google.com/g/videahu-cicaverzum-teljes-film-magyarul/c/R4s7ZV8LZic
https://groups.google.com/g/videahu-cicaverzum-teljes-film-magyarul/c/3cgql-FihGI
https://soundcloud.com/zozo-soso-421837066/online-filmek-the-old-oak-a-mi-kocsmank-2023-teljes-film-magyarul-videa
https://groups.google.com/g/videahu-the-old-oak---a-mi-kocsmnk-teljes-film-magyarul
https://groups.google.com/g/videahu-the-old-oak---a-mi-kocsmnk-teljes-film-magyarul/c/UwPuSsM2XyA
https://groups.google.com/g/videahu-the-old-oak---a-mi-kocsmnk-teljes-film-magyarul/c/LgX2sarVydM
https://groups.google.com/g/videahu-a-vacsoravendg-teljes-film-magyarul
https://groups.google.com/g/videahu-a-vacsoravendg-teljes-film-magyarul/c/DUzHlnFIwpw
https://groups.google.com/g/videahu-a-vacsoravendg-teljes-film-magyarul/c/uTYJl7340AI
https://soundcloud.com/zozo-soso-421837066/online-filmek-a-vacsoravendeg-2023-teljes-film-magyarul-videa
https://soundcloud.com/zozo-soso-421837066/online-filmek-eger-2023-teljes-film-magyarul-videa
https://groups.google.com/g/videahu-ger-teljes-film-magyarul
https://groups.google.com/g/videahu-ger-teljes-film-magyarul/c/o3jOvqlGfdY
https://groups.google.com/g/videahu-ger-teljes-film-magyarul/c/0EmUNBM4WoI
https://medium.com/@vortexgg06/dgfagd-20cf96be42d2
https://muckrack.com/kodok-kodok/bio
https://roggle-delivery.tribe.so/question/https-groups-google-com-g-videahu-az-almafa-virga-teljes-film-magyarul-http--6547d2f7b1c11ffcac9a8503
https://roggle-delivery.tribe.so/post/ggedg-6547d315d38b92ba52c35f9d
https://www.deviantart.com/indexgoogle2/journal/index-google-page-one-992583446
https://evvnt.com/events/?_evDiscoveryPath=%2Fevent%2F2055210-indexgoogle&touch=1699206516
https://baskadia.com/post/hmn6
https://pastelink.net/7xir043b
https://snippet.host/xvreao
https://rentry.co/d7293
https://controlc.com/b276e268
https://bitbin.it/SPp1YyYh/
GeorgeSip(tatyanamariyaklimenko1991978oaf at mail dot ru)
28 March 2019 20:25:04
distanza slot machine dalle scuole lombardia slot machine gratis il mago rodeo slot machine <a href="http://www.hlaastmu.com">slot online gratis senza registrazione</a> slot machine jackpots november 2017 slot machine faraone gratis best slot machine fire red
legge di stabilit 2015 slot machine slot machine da bar free giochi gratis slot machine 5 rulli gratis <a href=http://hlaastmu.com/>giochi online gratuiti</a>

http://hlaastmu.com

JasonAspix(1758zascpt0jm at mantilia48 dot fancycarnavalmasks dot com)
02 March 2019 15:25:39
generic cialis daily dose buyactress in cialis commercial Buy Cialis cheap <a href="http://xcialis20mg.com">xcialis20mg.com</a>
JyfrceLap(Plails at truckmetalworks dot com)
27 May 2018 06:40:59
<a href="http://ph2oc.com/#buy-cialis">cialis 20</a> acheter du cialis au qubec buy cheap cialis online now how to cialis online
cialis daily 5mg reviews cialis usa generic online how much cialis <a href="http://ph2oc.com/#buy-cialis-20-mg">cialis 20 mg cost</a>
generic cialis soft tab 50mg ap kgr 100 cialis order cialis us
pastiglie cialis costo global cialis cialis for sale <a href=http://ph2oc.com/#cialis-online>cheap cialis 20mg pills</a>
cialis or cialis better cialis order real best alternatives to cialis
cost per pill for cialis cialis order online in india ciallis

http://ph2oc.com/#20-mg

HearceLap(Plails at truckmetalworks dot com)
26 May 2018 12:15:41
<a href="http://expget.net/">buy 100mg viagra</a> quanto costa cialis what does cialis do cialis online australia buy
buy cialis tadalafil wholesale pharmacy cialis review cilias <a href="http://expget.net/#viagra">buy pfizer viagra 100mg</a>
acheter cialis site serieux cialis phone number try it scam cialis from candad
cialis on cnbc top generic cialis online cialis 5 <a href=http://expget.net/#100mg>buy pfizer viagra 100mg</a>
cialis generic order buy cialis amsterdam pfizer workshops cialis
generika online cialis cialis at a cheap price cialis side effects

http://expget.net/#buy-viagra

Skmdtraikul(l0i2ezoje2 at hotmail dot com)
09 October 2015 17:47:11
음성인식은 hidden mroakv modek을 가장 많이 사용하는 걸로 ì•Œê³ ìžˆëŠ”ë°ìš” 혹시 hmm에 대한 스터디는 끝내셨는지요? 안보셨다면 그것부터 ë¨¼ì€ ë³´ì‹¬ì´ 어떨지요 더불어 DTW(Dynamic Time Warping) 도 함께요. n-gram도요 http://hvmgox.com [url=http://hwcupvlv.com]hwcupvlv[/url] [link=http://rfhqvj.com]rfhqvj[/link]
Chima(56qw8ppxo at gmail dot com)
09 October 2015 09:31:59
fahim jan salaamkhili delam vosat tang shode <a href="http://vmslgro.com">regfehyadish</a> bekhir ba ham mishestim sheraye chris de burgh ro gosh midadim va lrycs ro dar miovordim. ya on ketabe folato bego :))))))))))be omide didaret be zodimehrdad
Mkrtich(suhopgf8u at gmail dot com)
08 October 2015 21:17:38
salam fahimvaghean chera hame chi<a href="http://aidocbxl.com"> tlkahe</a> hawij<a href="http://aidocbxl.com"> tlkahe</a> , khargoosh<a href="http://aidocbxl.com"> tlkahe</a>, zeraat va keshawarzi<a href="http://aidocbxl.com"> tlkahe</a>, ab dadan be baghche<a href="http://aidocbxl.com"> tlkahe</a>. va az hame badtaaar shirin tarin khateraat<a href="http://aidocbxl.com"> tlkahe</a> , chera be naslemoon sha ..?chera?,فکر نمیکردم گذرت به اینجا بخوره:)
Arsla(l3fyiq1c at gmail dot com)
25 September 2015 12:13:02
A rolling stone is worth two in the bush, thanks to this aritcle.
bobbyz(pequenoos at hotmail dot com)
09 July 2009 19:20:55
o meu wow da esse erro quando eu vou atualizar para a versao 3.1.0
The file \\\"\\\\pc-hdfiles\\\\WowError.exe\\\" could not be opened. If this problem persists, you may be able to solve it by uninstalling and then reinstalling the game. If you are unable to correct this problem, please contact Blizzard Technical Support. (InstallerFile::Open)
Sara Ibn El Ahrache(s dot elahrache at aui dot ma)
31 May 2009 14:29:51
when the user hangs up and redials the same extension 1010 will the language be reset to english or will it remain german?
Arifin(wibisonoarifin at yahoo dot co dot id)
02 September 2008 14:50:59
download language
Add Comment
SetLanguage (dialplan application) (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Errol Quitzon

Last Updated:

Views: 5408

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.