1. Math - this application allows you to perform mathematical operations with floating point
NOTE: This application is valid for Asterisk version 1.0.9 and 1.0.10.
If you are using version 1.2 or newer, then you have to know that this application is deprecated. However, if you want to use its functionality, there is a new syntax, which require the usage of the Set application. For more information click on the link - The new syntax - the MATH function.
Syntax:
Math(retvar,<number1><operation><number2>)
List of the possible options
retvar - this is the variable, where you would like to store the result from the mathematical operation number1 - the first number from the equation operation - the allowed mathematical operations are +, -, /, *, %, <, >, >=, <=, == number2 - the second number from the equation
Purpose and usage
The purpose of this application is to give you the possibility to perform mathematical operations. However there is a drawback - the calculations could be only with floating point.
Fortunately in the newest version of the Asterisk the Math application is replaced with the MATH function, which gives you the chance to choose between calculation of type integer, float, hexametrical and even string.
However, this tutorial is for the those of you who are still running Asterisk versions 1.0.9. or 1.0.10 and for the Math application
To see how this application works, we recommend you to use our IAX softphone - Idefisk. You could download it from here. Please, take a look also at our tutorial - to learn how to configure it to work with the Asterisk PBX.
Asterisk PBX configurations
NOTE: This is an example of what for you could use the application.
iax.conf Configurations
We need one registered user in the iax.conf file (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 the sip.conf or mgcp.conf.
So, we have registered the user idefisk
Type=friend means that this user is allowed to make and receive calls. Host=dynamic means that the IP is not statically assigned, but dynamically through DHCP server. Allow=all means that the line, which this user will use, could support all audio codecs. Context=test - this shows that the user will be allowed to work only with the extensions in this context in the configuration file extensions.conf.
On the picture above you could see our test extensions.conf file.
So we have and extension 100, which we will use for the test.
First we use the Answer application to answer the channel.
The execution will continue with the next priority extension and the NoOp application. We will use it just to show you that nothing is stored in our arbitrary chosen variable - RetVar
Now, lets make a calculation using the Math application. The operation will be SUM. For the purpose we the following argument in the parentheses:
(RetVar,20+15)
The result from the mathematical operation 20+15 will be stored in the RetVar variable.
Once again we will use the NoOp application to verify that the result is really stored in the variable.
We showed you only one of the possible mathematic operations. The other options are:
NOTE:Please, pay attention that when you call back variables for example in the NoOp application you have to use the following syntax:
${VARIABLE}
But if you set a variable, for example in an application like the Math one, then you have to type the variable with the following syntax:
Math(VARIABLE,.....)
Finally, 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 make an extension for hanging up the line using the Hangup application.
2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX
3. Additional information
More information about the extensions.conf file you could find here.
For more information about the iax.conf file, check here.
The application is tested with our IAX softphone Idefisk. You could download it from here. A manual about this softphone could be found here.
If you would like to test the application with the SIP protocol you could take a look at our tutorials about the SIP Softphones, where you could pick up the one which suits your needs and learn how to configure it to work with the Asterisk PBX
AAssusHATKaws (serbFerswrendy at clifors dot xyz) 18 June 2020 07:35:57 <a href="https://cialisle.com/">buy cialis</a>
Harolddruri (muzzskilerdea1985cuvdsc at yandex dot ru) 17 December 2018 18:27:58 hoodia brands review <a href="https://shibusahome.com/problems-with-viagra">Problems with viagra</a>
doxycycline acne.org review https://thekindnesskoncert.com/is-cialis-cheaper-than-viagra/
open excel file online asp.net <a href="https://encouragementcircles.net/viagra-holland-apotheke/">Viagra holland apotheke</a>
buy ventolin england https://encouragementcircles.net/buy-viagra-online-in-australia/
excel sales quote tracking <a href="https://dennisstockdale.com/donde-comprar-viagra-contrareembolso">Donde comprar viagra contrareembolso</a>
eye drop for beautiful eye https://dennisstockdale.com/natural-viagra-alternative-blood-flow/
amoxicillin online prescription <a href="http://theencouragementcircles.net/cialis-wirkung">Cialis wirkung</a>
online excel courses alberta https://edinasanta.com/cialis-100mg-preis/
how do i get nitroglycerin bioshock <a href="https://mensabusenetwork.com/ou-trouver-du-viagra-sans-ordonnance-a-paris/">Ou trouver du viagra sans ordonnance a paris</a>
accutane cost https://coachyourselfnow.com/buy-viagra-online-in-dubai/
starlix online bible <a href="https://theabuserecoverymap.com/comment-obtenir-du-viagra-en-france/">Comment obtenir du viagra en france</a>
instagram salemlondon http://theencouragementcircles.net/eli-lilly-cialis-coupon
JoannNuh (olgfmbn at outlook dot com) 17 December 2018 10:42:32 http://buyamlodipine.top/ <a href=http://statwiki.kolobkreations.com/index.php?title=Abhaengigkeit_In_Beziehung_Retten_I_Hillerod>Buy Spiriva Lowest Price</a><a href=http://wiki.travelmanitoba.com/index.php/Different_qualities_of_windshields>different qualities of windshields</a><a href=http://muorigin-wiki.webzen.com/index.php?title=Antidepressivo_para_tabagismo_slideshare_account_registration>antidepressivo para tabagismo slideshare account registration</a><a href=http://www.zarghagoona.com/groups/art-supplies-near-melton/>art supplies near melton</a><a href=https://elunivercity.net/wiki-start-up/index.php/Buy_imported_phones_in_india>https://elunivercity.net/wiki-start-up/index.php/Buy_imported_phones_in_india</a><a href=http://blockduino.org/mediawiki/index.php?title=Social_anxiety_forum_frustration_gif_videos>social anxiety forum frustration gif videos</a>
Glennisdat (ohjhfmbn at hook dot com) 14 December 2018 22:21:28 <a href=http://buyamlodipine.top/>buy amlodipine 10 mg online</a> <a href=http://wiki.zep.it/index.php/Weight_loss_before_and_after_pictures_220_to_150_lbs_in_kgs>weight loss before and after pictures 220 to 150 lbs in kgs</a> <a href=https://electronicfursuits.com/wiki/index.php/Glock_43_sale_in_california>glock 43 sale in california</a> <a href=http://blockduino.org/mediawiki/index.php?title=Amenaza_de_aborto_traduccin_al_ingles>amenaza de aborto traduccin al ingles</a> <a href=https://www.cdunyka.com/wiki/index.php/Componentes_del_universo_meteoritos_2017_trucks>componentes del universo meteoritos 2017 trucks</a> <a href=http://wikihotels.com/index.php?title=Clamped_cubic_spline_algorithm>clamped cubic spline algorithm</a> <a href=http://www.interrai-pedia.nl/index.php/Zinc_oxide_formula_weight_nacl_molecular>zinc oxide formula weight nacl molecular</a> <a href=https://todoasap.com/index.php?title=Vfl_results_round_17>vfl results round 17</a> <a href=http://196.43.133.60/wiki/index.php/Inspirational_quotes_for_parents_from_teachers>inspirational quotes for parents from teachers</a> <a href=https://wiki.hvacrealm.com/index.php?title=Buy_furniture_online_reddit_news>buy furniture online reddit news</a> <a href=http://196.43.133.60/wiki/index.php/Growing_girl_scout_cookies_strain>growing girl scout cookies strain</a> <a href=https://wikis.ala.org/rusa/ets/index.php?title=Water_retention_in_feet_pregnant_celebrities_due_2018>water retention in feet pregnant celebrities due 2018</a> <a href=https://elunivercity.net/wiki-start-up/index.php/Amebiasis_intestinal_cie_10_gastroenteritis_infecciosa_tratamiento>amebiasis intestinal cie 10 gastroenteritis infecciosa tratamiento</a> <a href=http://wikihotels.com/index.php?title=Verizon_warranty_contact_number>verizon warranty contact number</a> <a href=http://wikihotels.com/index.php?title=Reacciones_alergicas_clasificacion_de_los_seres_vivos_para>reacciones alergicas clasificacion de los seres vivos para</a> <a href=https://electronicfursuits.com/wiki/index.php/Sine_pinoy_last_night>sine pinoy last night</a> <a href=http://beisbolreport.com/index.php?title=Anti_emetic_over_the_counter_children_laxatives_constipation>anti emetic over the counter children laxatives constipation</a> <a href=http://buyamlodipine.top/>site</a>
Glennisdat (ohjhfmbn at hook dot com) 13 December 2018 08:23:18 <a href=http://stellafriends.com/forums/topic/buy-clinacin-without-prescription-buy-cheap-clinacin-generic-online-buy-clinacin-louisiana/>Buy Clinacin Without Prescription, Buy Cheap Clinacin Generic Online, Buy Clinacin Louisiana</a><a href=https://www.defarsci.org/forums/topic/adapalene-where-to-buy-online-without-prescription-buy-adapalene-legally-adapalene-no-prescription-overseas/>Adapalene? Where To Buy Online Without Prescription, Buy Adapalene legally, Adapalene No Prescription Overseas</a> <a href=http://buyamlodipine.top/>amlodipine 2.5 mg</a> <a href=http://www.elearnportal.de/wiki/index.php?title=Fistula_surgery_for_dialysis_video_infantiles_educativos_youtube>fistula surgery for dialysis video infantiles educativos youtube</a> <a href=http://www.tanssifysioterapia.fi/index.php/Santos_de_cartier_rimmed_sunglasses_replica>santos de cartier rimmed sunglasses replica</a> <a href=https://goodfellaswatchclub.info/index.php?title=Hernia_mesh_lawsuit_utah>hernia mesh lawsuit utah</a> <a href=https://metrofood-wiki.foodcase-services.com/index.php?title=Coronary_artery_disease_icd_10_code_2017>coronary artery disease icd 10 code 2017</a> <a href=http://www.ekizceliler.com/wiki/Hcg_injections_dosage_for_men>hcg injections dosage for men</a> <a href=http://wiki.travelmanitoba.com/index.php/Cyclosporine_capsules_modified>cyclosporine capsules modified</a> <a href=http://buyamlodipine.top/>http://buyamlodipine.top/</a>
Rogervip (dklyunhjyu at bigmir dot net) 12 August 2018 10:02:26 <a href="http://statualun.ugu.pl/xezygemuz/easy-cd-da-extractor-105-1-crack-16071-final-incl.html#">easy cd da extractor 10.5 1 crack 16.0.7.1 final incl</a> michael jackson earth song meaning <a href=http://rebulljo.ugu.pl/jywak/animals-screen-saver-packers.html#>animals screen saver packers</a>
<a href="http://imleausi.ugu.pl/raqimiha/alvin-and-the-chipmunks-2018-tv-series-wiki.html#">alvin and the chipmunks 2018 tv series wiki</a> encyclopedia of criminal language and linguistics 14 volume set <a href=http://techcidi.ugu.pl/xirokixac/mercenaries-2-world-in-flames-registration-key.html#>mercenaries 2 world in flames registration key</a>
http://smokrenhund.ugu.pl/nuferyvim/irfanview-all-plugins-430-free-download.html
Tyronemub (serftyuk at bigmir dot net) 21 July 2018 08:51:51 <a href="http://cialissi.com/#">cialissi.com</a> cialis professional yohimbe
buy name brand cialis on line <a href=http://cialissi.com/#>http://cialissi.com/</a>
generic cialis 20mg uk http://cialissi.com/#buy-cialis-super-active
Tyronemub (serftyuk at bigmir dot net) 14 July 2018 19:19:29 <a href="http://cialisvonline.com/#">cialisvonline.com</a> click now cialis from canada
achat cialis en europe <a href=http://cialisvonline.com/#>http://cialisvonline.com/</a>
cialis for daily use http://cialisvonline.com/#buy-generic-cialis
Tyronemub (serftyuk at bigmir dot net) 09 July 2018 04:39:14 <a href="http://babecolate.com/#">babecolate.com</a> cialis efficacit
best generic drugs cialis <a href=http://babecolate.com/#>http://babecolate.com/</a>
we use it 50 mg cialis dose http://babecolate.com/#generic-cialis
CoreyVeisk (serftyuk at bigmir dot net) 28 June 2018 19:52:10 <a href="http://viagrayosale.com/">cheap viagra</a> where can i buy viagra without <a href="http://viagrayosale.com/">viagrayosale.com</a>
buy viagra sample <a href=http://viagrayosale.com/>http://viagrayosale.com/</a>
viagra order online http://viagrayosale.com/#viagra-generic
can i take a whole viagragaddafi orders viagravendita viagra generico italiaviagra thailand kostenviagra online pharmacy europemigliore tra viagra cialis levitraviagra australia forumviagra penis sizeviagra cialis espa olwhen was viagra first soldviagra effect lastshow long does viagra to kick inviagra warlordszeliscna viagra