1. Set - this application allows you to set a value to a variable.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
Set(name1=value1|name2=value2|..[|options])
here you can set up to 24 pairs of variable_name value. You can inherit a variable into channel inherited from the current channel when you define the variable with underscore prefix (_var). When you declare the variable with double underscore prefix (__var) it will be inherited infinitely into all child channels. When you define a variable with underscore prefix to double underscore prefix you call the variable omitting the underscore(s). The only option available is g sets the variable globally instead of only in the channel (valid only for variables not for functions).
Purpose and usage
This dial plan application is used for assigning value to a variable. In Asterisk dialplan application we can see that applications like SetCIDName, SetCIDNum, SetLanguage, SetVar are being deprecated in favour of Set ( Set(CALLER(name)=), Set(CALLER(number)=), Set(LANGUAGE()=)).
Have a look at the example below.
Prerequisites
First of all you need to install Asterisk PBX. Afterwards you need to configure at least one user in iax.conf, sip.conf or mgcp.conf the protocol you are going to use depends on you or of the phone you are using. After this you need to write some extensions in extensions.conf.
In this tutorial I will use Idefisk softphone that is an IAX client. You can download it by clicking here. Tutorial showing how it works and configuration support can be found here.
Asterisk PBX configurations
NOTE: This is just an example of what you can use this application for. Of course you can use it and for other purposes.
When you have installed and working Asterisk PBX you will need some user to test this application. If you do not have any registered in iax.conf you may add the following one. If you are not going to user Idefisk Softphone and iax.conf you have to register the user in the same way in sip.conf, h323.conf or mgcp.conf depending on the protocol you are using.
So, we have registered the users anatoliy, user1 and user2.
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.
We now have a user that can use the context [test] from extensions.conf. So now we need some dial plan application in [test] in extensions.conf.
Here is the application in extensions.conf. Note that the priority n is used. This means that the priority will be the next number so I just give the initial value 1 and then the priority will increment with one each time.
NOTE: When you define a variable _var or __var you just call it ${var}.
If you see unknown so far applications for you have a look at the following tutorials:
exten => 123,n,Set(a=aaa)
Variable a is defined and value aaa is assigned to it.
exten => 123,n,Set(_b=${EXTEN})
Variable b is defined and value ${EXTEN} is assigned to it. It is defined with underscore prefix, so it will be inherited in the inherited channel. ${EXTEN} is an asterisk-defined variable and is case sensitive and returns the extension you have dialed.
exten => 123,n,Set(__c=${CALLERID})
Variable c is defined and value ${CALLERID} is assigned to it. If is defined with double underscore prefix, so it will be inherited in every inherited channel. ${CALLERID} is an asterisk-defined variable and is case sensitive and returns the caller id.
exten => 123,n,Dial(Local/alpha@test)
This dials locally the extension alpha at the context test. Usage is: Dial(Local/extension@context).
For more information have a look at the dial tutorial.
exten => alpha,1,Answer()
The call is answered.
exten => alpha,n,NoOp(${a})
Variable a is dumped in CLI
exten => alpha,n,NoOp(${b})
Variable b is dumped in CLI
exten => alpha,n,NoOp(${c})
Variable c is dumped in CLI
exten => alpha,n,Dial(Local/bravo@test)
This dials locally the extension bravo at the context test. Usage is: Dial(Local/extension@context). For more information have a look at the dial tutorial.
exten => bravo,1,Answer()
The call is answered.
exten => bravo,n,NoOp(${a})
Variable a is dumped in CLI.
exten => bravo,n,NoOp(${b})
Variable b is dumped in CLI.
exten => bravo,n,NoOp(${c})
Variable c is dumped in CLI.
exten => bravo,n,Hangup()
HangUp() closes the channel line.
2.The application in CLI
Here is what you will see in CLI. When the call is answered and welcome message is played variables a, _b and __c are set. Then you are redirected to the next channel alpha. When the channel is answered the variables are dumped and send to another channel bravo. The channel there is answered and again the variables are dumped and the channel is closed. The variable a is valid just for the 123 channel and variable __c is valid as for the channel 123 so for all inherited channels (alpha and bravo).
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
EnwcSeine (4gtf23ssdvtxgwfq4ailq at gmail dot com) 19 October 2022 04:05:00 mucinex synthroid interaction <a href="https://levothyroxineika.com/ ">claritin d and synthroid</a> my dog just ate synthroid
WebbSoaws (f43egsebdgk4zxfehi at gmail dot com) 18 October 2022 16:21:15 trazodone for sleep apnea <a href="https://trazodonetjc.com/ ">trazodone schedule drug</a> trazodone and alcohol death
EdvdSeine (4gtf23ssdvtgfq4ailq at gmail dot com) 16 October 2022 09:14:12 atenolol felleskatalogen <a href="https://atenololzol.com/ ">tenormin dry mouth</a> side effects drug tenormin
Jxzxsoymn (g323gwefzxrrfhi at gmail dot com) 15 October 2022 22:04:42 furosemide 20 mg price <a href="https://furosemideazj.com/ ">can you crush furosemide</a> can furosemide cause constipation
EdcgSoaws (f4wfhwk4zxfehi at gmail dot com) 12 October 2022 01:53:24 what happens with too much synthroid <a href="https://synthroidthg.com/ ">can i take caltrate with synthroid</a> is it possible to take too much synthroid
WnfvSoaws (f43egswqzhwk4zxfehi at gmail dot com) 09 October 2022 05:47:45 tamoxifen metabolism liver <a href="https://nolvadexolf.com/ ">tamoxifen patent expiration</a> nolvadex for sore nipples
Jcegsoymn (g34sbeer4rfhi at gmail dot com) 30 September 2022 02:46:38 Aristocort <a href="https://getpharmsu.com/ ">canada pharmacy online legit</a> canadian pharmacy ltd
JynmnSeinebeet (f4rh5gdrnmgail at gmail dot com) 27 September 2022 20:24:59 metformin original brand <a href="https://metforminynd.com/ ">glipizide metformin combination</a> metformin pcos testosterone
Prestonnep (oliviaclara3120 at gmail dot com) 24 September 2022 15:08:36 https://newsfrom2renesquatki60.blogspot.com/2022/09/microsoft-project-2010-64-bit-free-full.html , sony vegas pro 11 x32 free , how to activate windows vista ultimate product key freefree ,coreldraw graphics suite x7 with keygen free
[url=https://newsfrominimypnorz.blogspot.com/2022/09/download-nero-11-platinum-full-version.html] adobe acrobat xi pro free for windows 8 free [/url] , windows 7 home premium specifications free , vmware workstation 14 on windows 10 1903 free
https://newsfrom0alinendoro.blogspot.com/2022/09/coreldraw-graphics-suite-2018-serial.html , logic pro x tap tempo delay free , windows 7 64 bit drivers for acer free ,nikon capture nx2 free free
[url=https://newsfrom049fiphylceste5s.blogspot.com/2022/09/the-blockheads-pc-windows-10the.html] windows xp professional drivers free free [/url] , microsoft visio 2013 free for windows 8 32 bit free , ms word 2016 free for windows 7 64 bit free
https://newsfrom9siltioscande0a.blogspot.com/2022/09/acdsee-pro-crack-with-license-key-free.html , microsoft visual c++ 2013 redistributable 64 bit windows 10 free , three new features in microsoft word 2016 free ,navicat premium 12 registration code free
[url=https://newsfrom00deumocanji7h.blogspot.com/2022/09/idt-sound-driver-windows-10-idt-hd.html] windows 7 home premium extended support free [/url] , sony vegas pro 13 32 bit full crack freefree , windows 10 home edition no remote desktop free
https://newsfromcequilanur.blogspot.com/2022/09/adobe-indesign-cc-download-32bitbit-for.html , windows 7 64 bit setup for pc free , windows 10 enterprise no join domain option free ,adobe premiere pro cc 2018 tutorial youtube free
[url=https://newsfromsveranintecq.blogspot.com/2022/09/blog-post.html] windows 10 home free iso 64 bit free [/url] , pinnacle studio ultimate 19 full + content pack (x86x64) free , windows 8.1 pro vs windows 8.1 core free
https://newsfromsumpquifagiwb.blogspot.com/2022/09/video-copilot-element-3d-v2-free.html , windows 10 enterprise iso microsoft free , windows 7 home premium 64 bit full crack free ,windows 10 iso direct usb free
[url=https://newsfrom335protinflecpoim.blogspot.com/2022/09/new-windows-live-messenger-download.html] x force keygen autodesk revit 2014 free [/url] , how to activate windows server 2012 r2 standard edition free , microsoft office 2016 klucz freefree
https://newsfrompelihypko8n.blogspot.com/2022/09/boat-browser-mini-license-key-apk.html , , ,
[url=https://newsfrom9nutgusforwoof.blogspot.com/2022/09/best-free-soccer-games-top-10-you-have.html] microsoft visio 2013 arabic language pack free [/url] , autodesk revit 2017 product serial number free , coreldraw graphics suite 2017 features free
https://newsfrom305spirilhaema8w.blogspot.com/2022/09/nero-2017-platinum-ativador-free-please.html , windows 10 enterprise default product key free , windows 7 loader unsupported partition table problem free ,pixelmator vs affinity free
[url=https://newsfrom12granfupabu9d.blogspot.com/2022/09/autodesk-maya-2012-crack-free.html] microsoft word product key 2016 list free [/url] , vmware workstation free for windows 10 64 bit filehippo free , autodesk revit 2017 uninstall tool free
https://newsfromdaerirajipp.blogspot.com/2022/09/adobe-audition-cc-2017-vst-plugins.html , free blog microsoft office 2010 license product key activation free , microsoft office 2016 free 64 bit trial version free ,microsoft word 2013 change spell check language free
[url=https://newsfrom11mensfisusalx.blogspot.com/2022/09/pdf-expert-oder-goodnotes-free-best-app.html] windows 7 professional 32 bit genuine remover free [/url] , windows 10 se conecta y desconecta del wifi free , windows 10 home zmiana has a co 30 dni free
https://newsfrom7soretagaur.blogspot.com/2022/09/libreoffice-download-windows-10-free.html , windows 8.1 pro pack key free , microsoft office enterprise 2007 enterpriseww.msi free ,windows 8.1 forgot password hack free
[url=https://newsfrom67rhininrohigo.blogspot.com/2022/09/vmware-fusion-6-license-key-free.html] price microsoft office 2010 free [/url] , filemaker pro advanced 17 script debugger free , microsoft office access 2007 app free
https://newsfrom040nacurverhi34.blogspot.com/2022/09/mamp-pro-4-mysql-wont-start-free-what.html , windows 7 ultimate service pack 1 64 bit activation key free , windows 10 enterprise disable telemetry group policy free ,como descargar e instalar microsoft visio y project 2016 full free
[url=https://newsfrom55noquanpiskend.blogspot.com/2022/09/get-latest-windows-update.html] cara aktivasi microsoft office 2016 jalan tikus free [/url] , does microsoft office 2016 work on windows 10 free , logic pro x user guide free
Joxwsoymn (g343eolzxwf3ddfhi at gmail dot com) 24 September 2022 14:25:01 purchase cialis with paypal <a href="https://totadalaflday.com/ ">tadalafil india manufacturers</a> generic tadalafil reviews
Anwnhaide (hn7t3wg3fgxbhi at gmail dot com) 23 September 2022 09:06:05 cost of levitra at costco <a href="https://getlevitrix.com/ ">staxyn vs levitra</a> levitra prescribing info
WcikSoaws (f43egwqzhk4zxfehi at gmail dot com) 22 September 2022 12:11:14 walmart levitra promotion <a href="https://yxlevitrix.com/ ">comparison viagra levitra and cialis</a> levitra vs viagra vs cialis alcohol
JntzSeinebeet (f4rh5gdrgail at gmail dot com) 21 September 2022 20:33:20 cialis black without prescription <a href="https://webcilised.com/ ">cialis from india online pharmacy</a> cialis purchase
Jrczsoymn (g343eolzxf3ddfhi at gmail dot com) 20 September 2022 07:39:12 cheapest cialis from india <a href="https://upupcilis.com/ ">order tadalafil no prescription</a> how to take cialis
WnwxSoaws (f43egwh4zxfehi at gmail dot com) 12 September 2022 10:53:30 price of sildenafil tablets <a href="https://dayvigras.com/ ">canadian online pharmacy viagra</a> discount viagra online canada
Nbqzsoymn (433e3qsautbhi at gmail dot com) 11 September 2022 01:18:05 viagra order online india <a href="https://kikvigraz.com/ ">over the counter viagra in usa</a> can you buy viagra over the counter in usa
Anrxhaide (hn7to23fgxbhi at gmail dot com) 09 September 2022 15:21:28 buy viagra 100mg online uk <a href="https://newvigraed.com/ ">cost viagra</a> sildenafil 25 mg uk
Arnhaide (hn7toewrsngxbhi at gmail dot com) 05 September 2022 21:38:08 an essay concerning human understanding <a href="https://essaymerger.com/ ">college essay help</a> argumentative essay structure
JmgtSeinebeet (4gg3egdrgail at gmail dot com) 02 September 2022 15:52:01 viagra vs cialis <a href="https://aacilisus.com/ ">buy voucher for cialis daily online</a> peptide liquid tadalafil
EwbSeine (4gtfw32garfsailq at gmail dot com) 02 September 2022 08:49:34 vardenafil vs tadalafil <a href="https://eecilise.com/ ">cialis 20 mg tablets</a> cialis price south africa
Nxersoymn (43fwgfdds3utbhi at gmail dot com) 30 August 2022 00:05:11 essay checker free <a href="https://essaymesa.com/ ">critical thinking essay</a> essay for high school
Aqshaide (hn7toewrgxbhi at gmail dot com) 29 August 2022 10:44:16 opinion essay <a href="https://essaymeson.com/ ">apa format essay</a> commentary essay
Atvbhaide (hn7toergxbhi at gmail dot com) 25 August 2022 03:54:44 cover letter writing services <a href="https://papermeticulously.com/ ">website content writing services</a> writing websites
EybwxSeine (4gtfwbrrdedarfsailq at gmail dot com) 23 August 2022 11:20:19 proposal writing services <a href="https://papermetering.com/ ">dissertation writing services usa</a> cheapest paper writing service
Jxessoymn (g34xggxao4ohhi at gmail dot com) 22 August 2022 03:37:25 term paper writers <a href="https://paperabbrs.com/ ">what are the best paper writing services</a> writers online https://paperabbrs.com/
Afxxhaide (hn7tohr5ftthdxbhi at gmail dot com) 12 August 2022 22:40:26 nabp certified canadian pharmacy <a href="https://mgpharmmg.com/ ">canadian association for pharmacy distribution management</a> canadian pharcharmy online no precipitation https://mgpharmmg.com/
EgwSeine (4gtfwbdrfsailq at gmail dot com) 05 August 2022 20:31:29 no 1 canadian pharmacy reviews <a href="https://upharmu.com/ ">Antabuse</a> meds rx pharmacy
Nexzsoymn (4ertgedwf3utbhi at gmail dot com) 04 August 2022 23:47:37 non prescription tadalafil <a href="https://cialpriceus.com/ ">overnight delivery generic cialis</a> tadalafil and nitrates
Jikasoymn (g344eseradggx4ohhi at gmail dot com) 04 August 2022 20:59:14 sildenafil citrate 100mg pills <a href="https://tabviagrleo.com/ ">canadian online pharmacy generic viagra</a> pharmacy prices for sildenafil
Arfvjhaide (hn7thr5ftthdbhi at gmail dot com) 02 August 2022 11:58:04 cialis nz <a href="https://tadalaflabc.com/ ">what is tadalafil?</a> cialis online delivery overnight
Adfjhaide (hn7thr5ftthhi at gmail dot com) 29 July 2022 12:56:25 online pharmacy from canada <a href="https://pharmregtop.com/ ">walgreens pharmacy store locations</a> https://pharmregtop.com/
Adfjhaide (hn7thr5ftthhi at gmail dot com) 23 July 2022 04:08:45 ramesh rx pharmacy <a href="https://pharmregtop.com/ ">meijer online pharmacy</a> https://pharmregtop.com/
Admjhaide (hn7thr5fthhi at gmail dot com) 15 July 2022 03:36:03 how to order viagra pills <a href="https://xtyviagrix.com/ ">viagra paypal</a> https://xtyviagrix.com/
EvylSeine (g34nikllwjebdrfsailq at gmail dot com) 14 July 2022 19:25:13 buy cialis online australia <a href="https://goesuscialis.com/ ">generic cialis usps priority mail</a> https://goesuscialis.com/
EavrSeine (g34nikdrfsailq at gmail dot com) 28 June 2022 18:50:20 lloyds online pharmacy <a href="https://pharmacyday5.com/ ">pharmacy salary canada</a> https://pharmacyday5.com/
JuliusHor (trofimosiev at yangoogl dot cc) 25 June 2022 23:17:30 Большинство иностранных наёмников, воевавших за Украину, уже уничтожили, заявил на брифинге официальный представитель Минобороны России Игорь Конашенков.
Сенсаций.Нет
Общая численность наемников на Украине сократилась с 6,6 до 3,5 тыс. человек.
ФАН
Министерство обороны 2 июня сообщило, что основная часть наемников, которые воевали на стороне Украины, была уничтожена российскими войсками и техникой.
Курьер. Среда. Бердск
WrfaSoaws (f43herftbdsfargnnhi at gmail dot com) 25 June 2022 23:16:46 cheapest online pharmacy <a href="https://pharmacyclined.com/ ">Elavil</a> https://pharmacyclined.com/
Akiihaide (hn7hre45tifvwtfthhi at gmail dot com) 23 June 2022 03:42:50 narrative essay lesson plans middle school <a href="https://ouressaypride.com/ ">essay on anti terrorism in india</a> https://ouressaypride.com/
EcekSeine (g34nikdfgikgrailq at gmail dot com) 23 June 2022 01:07:39 college essay common app <a href="https://essaychekhere.com/ ">essay world cup football 2010</a> https://essaychekhere.com/
JthdSeinebeet (4ggfdgvwrrwgail at gmail dot com) 19 June 2022 09:46:02 essay writing process steps <a href="https://okessayover.com/ ">explain aquinas natural law theory essay</a> https://okessayover.com/
Fththaide (ythwabetesik76gstfhi at gmail dot com) 10 October 2021 12:09:50 stan tutaj viagra mp3 <a href="https://tvigrast.com/ ">herbal viagra for sale uk</a>
haideHtf (34tghghdhhtfhi at gmail dot com) 06 August 2021 13:26:22 Maxalt <a href="https://storpharmon.com/">valtrex online pharmacy</a> pharmacy tech online course <a href=https://storpharmon.com/>how to dispose of prescription drugs cvs</a> ’
ritleloh (eshergdvs43vvh4fyd at gmail dot com) 05 August 2021 23:30:33 where to get generic cialis without prescription <a href="https://regcialist.com/">cialis usa paypal</a> black ants cialis australia <a href=https://regcialist.com/>cialis generic online uk</a> ’
Anoosoymn (wilfreoogpcvhi at gmail dot com) 16 May 2021 21:40:50 does viagra increase cholesterol https://llviagra.com/ online order of viagra
RfvbFough (esbghdfvrg4fyd at gmail dot com) 25 April 2021 22:09:50 cialis dapoxetine http://cileve.com/ - cialis low dose cialis 20 mg
Jbsdsoymn (svzcefd3phi at gmail dot com) 25 April 2021 14:17:24 online rx pharmacy <a href=http://onlinecanda21.com/>discount drugs online pharmacy</a> Atorlip-5
Ahbzsoymn (wilfrhy0ddhik3pcvhi at gmail dot com) 15 February 2021 21:06:00 cash converters in store loan <a href="http://daymoneygo.com/ ">the money store mortgage loans</a> payday loans mt vernon mo
NbnhFough (4tsg6ujnsvvdfe at gmail dot com) 14 February 2021 09:53:51 viagra 4 tablet <a href="https://vigedon.com/ ">http://vigedon.com/ </a> female viagra cost in india
NncsFough (4tsg6ujvdfe at gmail dot com) 06 February 2021 21:54:17 viagra toronto store <a href="http://lightvigra.com/ ">how much is a viagra prescription with insurance</a> where to buy viagra with no prescription