1. VoiceMailMain - this application allows you to enter in the Asterisk’s voicemail system.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
VoiceMailMain([[options]mailbox][@vm-context])
List with the possible options
s - this option will cancel the password check and the user will enter in the mailbox without entering password. p - this option will cause the supplied mailbox to be prepended to the user's entry and the resulting string is used as the mailbox number. This is useful for virtual hosting of voicemail boxes.
Purpose and usage
The purpose of this application is to give you an access to the Asterisk’s voicemail system. You will be asked to enter a voicemail number and password.
The usage is obvious. Thanks to this application you can check your voicemail box for new messages. Once you have entered the system, you can also manage your messages and folders. You can even record your own greeting message. The Asterisk system will guide you through the menus.
Below we will show you how you can use this application
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.
iax.conf Configurations
We need one registered user 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.
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.
voicemail.conf Configurations
We have to create the mailboxes in the voicemail.conf file. Below we will show you a screenshot from our voicemail.conf file.
We will create two contexts. The first one is named [testmail] and the second one is named [testa].
In the first context we will define three mailboxes. In the second we will create one mailbox. The way of creating a mailbox is the following:
First you write the mailbox number. It is not necessary to be a number it could be also a name. In our case it would be numbers. They are followed by the => character. After this character the first argument is the desired password for the mailbox. The password is followed by the name and family name of the user and then his/her e-mail address. You can add and some other options, but we do not need them now. You can learn more about this options in our voicemail.conf tutorial.
In our example in the context [testmail] we will create one mailbox for the user Anatoliy Kun with mailbox number 1515 and password 1111. One for the user John Dowe with mailbox number 5678 and password 2222. One for the user Ivan Tse with mailbox number 9101 and password 3333.
In the context [testa] we will create one mailbox for the user Mama Mia with mailbox number 2233 and password 2211
We are ready with our voicemail boxes. Now, lets take a look at the extensions.conf file.
When somebody dials 5455, the call will be answered by the Answer application. The next executed extension will be the one which contains the VoiceMailMain application. There are several different combinations of arguments which you can use in the brackets of this application.
You can leave the space between the brackets blank. In this case the system will ask you to enter a mailbox number. This number could be from any context in the voicemail.conf file. In our case it could be from the context [testmail] or from the context [testa].
Another variant is to specify only the desired context. If we specify in the brackets, the context @testmail, the system will accept mailboxes only from this context in the voicemail.conf file. If you enter the mailbox number from the context [testa], the system will say that this mailbox is incorrect.
The third variant is to specify the mailbox number and context. In this case the Asterisk will ask you directly for the password of the specified mailbox number.
With all this variants you can use the s or the p option. With the s option, the prompt for password will be skipped. With the p option, the supplied mailbox will be prepended to the user's entry and the resulting string will be used as the mailbox number. This is useful for virtual hosting of voicemail boxes.
We will show you the all three variants.
1) Variant 1
In this variant, when somebody dials 5455, the call will be answered by the Answer application. The next executed extension will be the one which contains the VoiceMailMain application. Because there are no arguments, the system will ask the caller to enter a mailbox number and then to enter the password for this number. The caller will hear whether it has new messages or not. The caller could leave the mailbox either by hanging up the line or by pressing the pound key(#).
2) Variant 2
In this variant, when somebody dials 5455, the call will be answered by the Answer application. The next executed extension will be the one which contains the VoiceMailMain application. The argument in the brackets is desired context. In this case @testmail. The system will ask the caller to enter a mailbox number and then to enter the password for this number. Numbers from other contexts won’t be accepted. If the entered mailbox number is from the context [testmail] and the password is correct, the caller will hear, whether it has new messages or not. The caller could leave the mailbox either by hanging up the line or by pressing the pound key(#).
3) Variant 3
In this case, when somebody dials 5455, the call will be answered by the Answer application. The next executed extension will be the one which contains the VoiceMailMain application. As arguments in the brackets, we have the desired mailbox number and the context, at which is this number, in the voicemail.conf file. In our example this are 1515@testmail. The system won’t ask the caller to enter a mailbox number. It will ask directly for the password of the mailbox 1515. Numbers from other contexts won’t be accepted. If the entered password is correct, the caller will hear, whether it has new messages or not. The caller could leave the mailbox either by hanging up the line or by pressing the pound key(#).
As we have mentioned above, this applications will allow the user to manage its messages and folders and also it can change the recorded greeting and busy/unavailable messages. This could be done thanks to the Asterisk’s built-in voicemail menu. The menu has the following structure:
Press 0. New messages folder
Press 1. Old messages folder
Press 2. Work messages folder
Press 3. Family messages folder
Press 4. friend messages folder
Press #. Cancel
Press 3. Advanced options
Press 1. Send reply
Press 3. Hear the message envelope
Press 5. Leave a message
Press *. Return to the main menu
Press 4. Play previous message
Press 5. Repeat current message
Press 6. Play next message
Press 7. Delete current message
Press 8. Forward message to another mailbox
Press 9. Save message in a folder
Press 0. Mailbox options
Press 1. Record your unavailable message
Press 2. Record your busy message
Press 3. Record your name
Press 4. Change your password
Press *. Return to the main menu
Press *. Help
Press #. Exit
2. Screenshots of what you can see on the CLI of the Asterisk PBX
1) Without arguments
2) With context for argument
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
KevinRal (yeihujpy at gmail dot com) 21 August 2023 20:08:02 cialis 10mg over the counter tadalafilise.cyou/#
EnwcSeine (4gtf23ssdvtxgwfq4ailq at gmail dot com) 18 October 2022 09:06:56 does synthroid affect your liver <a href="https://levothyroxineika.com/ ">sprintec and synthroid</a> relora and synthroid
WqabSoaws (f43wfwqak4zxfehi at gmail dot com) 16 October 2022 05:27:08 why change from simvastatin to atorvastatin <a href="https://lipitorthj.com/ ">atorvastatin brand names</a> does lipitor lower blood pressure
WtbvSoaws (f43egswqzchwk4zxfehi at gmail dot com) 13 October 2022 08:01:40 trazodone common side effects <a href="https://trazodonenui.com/ ">non prescription trazodone</a> trazodone nausea
EdcgSoaws (f4wfhwk4zxfehi at gmail dot com) 12 October 2022 03:12:02 taking synthroid with steroids <a href="https://synthroidthg.com/ ">side effects of drug synthroid</a> l thyroxine synthroid levoxyl levothroid unithroid
JtvSeinebeet (f4rh5wesf3fmgail at gmail dot com) 10 October 2022 16:07:15 lisinopril and ibuprofen <a href="https://lisinopriltgj.com/ ">hydrochlorothiazide lisinopril combination</a> how much does hydrochlorothiazide lower blood pressure
WbzwSoaws (f43egwqzhwk4zxfehi at gmail dot com) 08 October 2022 10:20:50 potassium and furosemide <a href="https://lasixona.com/ ">foods to eat with furosemide</a> is furosemide an antihypertensive
Nbqasoymn (43c3q23qa4ut32rbhi at gmail dot com) 04 October 2022 16:19:22 is trazodone addictive <a href="https://trazodoneujn.com/ ">trazodone overdose</a> how long does trazodone last in your system
MichaelRom (lenceApaky at online-pharmacy-inc dot com) 21 September 2022 19:41:29
Truly all kinds of excellent material.
canada pharma limited <a href=https://canadapharmacies-24h.com>prescription drug assistance</a> mexican online pharmacies https://canadianonlinepharmacybase.com
JntzSeinebeet (f4rh5gdrgail at gmail dot com) 21 September 2022 16:40:08 cialis recommended dosage <a href="https://webcilised.com/ ">cialis professional legitimate</a> cialis forum
MichaelRom (lenceApaky at online-pharmacy-inc dot com) 17 September 2022 19:52:46
MichaelRom (lenceApaky at online-pharmacy-inc dot com) 15 September 2022 01:35:54
Thanks. I enjoy this!
shoppers pharmacy <a href=https://canadarx-drugservices.com>legitimate canadian mail order pharmacies</a> drug costs https://onlinepharmacycanadahelp.com
Alvinuphor (osvaldo at handwashgel dot online) 13 September 2022 18:13:23
Lovely data. Thanks!
help with writing college application essay <a href="https://quality-essays.com">writing a biographical essay</a> creative writing websites for students
Anrxhaide (hn7to23fgxbhi at gmail dot com) 12 September 2022 17:18:32 generic viagra europe <a href="https://newvigraed.com/ ">cost of sildenafil 30 tablets</a> can i buy viagra over the counter in canada
AlvenSit (alvenMes at eseomail dot com) 06 September 2022 23:52:12
Very good content, Thank you! <a href=https://theessayswriters.com/#>how to write a thesis</a> how to write a personal essay about yourself
EwbSeine (4gtfw32garfsailq at gmail dot com) 05 September 2022 22:47:46 is tadalafil safe <a href="https://eecilise.com/ ">cialis otc usa</a> 40 mg cialis too much
JmgtSeinebeet (4gg3egdrgail at gmail dot com) 03 September 2022 12:30:32 order original cialis online <a href="https://aacilisus.com/ ">cialis free samples</a> cialis without prescription
Aqshaide (hn7toewrgxbhi at gmail dot com) 31 August 2022 21:23:56 how to start a reflective essay <a href="https://essaymeson.com/ ">how to write a definition essay</a> essay outline format
Jxecsoymn (g34xgukkocddfhi at gmail dot com) 30 August 2022 18:42:38 outline essay example <a href="https://essaymesh.com/ ">structure of an essay</a> essay outline template
Jbuksoymn (g34xgukkohhi at gmail dot com) 26 August 2022 10:42:20 term paper writing service <a href="https://papermethodist.com/ ">essay pay write</a> cheapest article writing service
Afxxhaide (hn7tohr5ftthdxbhi at gmail dot com) 15 August 2022 11:02:35 canadian pharmacies without prescriptions <a href="https://mgpharmmg.com/ ">store hours for rite aid pharmacy</a> online medicine tablets shopping https://mgpharmmg.com/
JxedSeinebeet (4ggfb4bgrwedgail at gmail dot com) 13 August 2022 01:09:37 super cialis <a href="https://ciallsed.com/ ">best prices on cialis online</a> rui tadalafil https://ciallsed.com/
Afgohaide (hn7tohr5ftthdbhi at gmail dot com) 09 August 2022 10:16:47 canada drug cialis <a href="https://formenciales.com/ ">generic cialis online</a> cialis vs tadalafil
WrbhSoaws (f43wrgdgnnhi at gmail dot com) 04 August 2022 10:58:22 where can i buy real viagra online <a href="https://sildenaflabc.com/ ">sildenafil prices 20 mg</a> buy generic viagra online from india
Jikasoymn (g344eseradggx4ohhi at gmail dot com) 01 August 2022 11:26:07 viagra 4 sale <a href="https://tabviagrleo.com/ ">sildenafil citrate tablets ip 100 mg</a> viagra 50 mg tablet online
Nbyuusoymn (43dfgtsetnjfbtutbhi at gmail dot com) 16 July 2022 12:49:50 sildenafil 100mg uk paypal <a href="https://hedrviagros.com/ ">sildenafil gel india</a> https://hedrviagros.com/
EvylSeine (g34nikllwjebdrfsailq at gmail dot com) 12 July 2022 19:21:23 cialis super active reviews <a href="https://goesuscialis.com/ ">buying cialis in australia</a> https://goesuscialis.com/
Nbyvsoymn (43dfgtsetnjfbttbhi at gmail dot com) 09 July 2022 04:07:08 licensed canadian pharmacies <a href="https://postpharmixus.com/ ">aetna rx pharmacy</a> https://postpharmixus.com/
Nbtssoymn (43dfgtsetnjbttbhi at gmail dot com) 04 July 2022 03:05:23 24 hour drug store near me <a href="https://jijopharm.com/ ">levitra from canadian pharmacies</a> https://jijopharm.com/
Joogsoymn (g344sg544ohhi at gmail dot com) 27 June 2022 17:04:45 how to get female viagra pill <a href="https://viagraadultsed.com/ ">generic viagra paypal</a> https://viagraadultsed.com/
JbdgSeinebeet (4ggfdgvwrtgrwgail at gmail dot com) 23 June 2022 18:03:12 essay on humorous incident in my life <a href="https://essayanalyticok.com/ ">anyone used an essay writing service uk</a> https://essayanalyticok.com/
Jthgsoymn (g344sg544hhi at gmail dot com) 21 June 2022 22:31:55 mahatma gandhi essay in tamil language <a href="https://needmoreessay.com/ ">ap literary analysis essay rubric</a> https://needmoreessay.com/
EcekSeine (g34nikdfgikgrailq at gmail dot com) 21 June 2022 01:46:35 best essay topics 2015 <a href="https://essaychekhere.com/ ">narrative essay template for middle school</a> https://essaychekhere.com/
CntfSoaws (64sfrcdftgvdbhi at gmail dot com) 10 October 2021 14:03:28 ziola lepsze niz viagra <a href="https://xvigraux.com/ ">what is the closest over the counter drug to viagra</a>
FuctSef (wi4ye4gresf46phi at gmail dot com) 16 August 2021 20:24:24 simvastatin vs atorvastatin <a href="https://lipitoratorvastatinfg.com/">half life of lipitor</a> lipitor definition <a href=https://lipitoratorvastatinfg.com/>atorvastatin class</a> ’
soymnHtf (34tghfhi at gmail dot com) 13 June 2021 04:21:59 cialis israel <a href=https://cialishav.com/>cialis experience reddit</a> buy cialis in canada
soymnDev (wirhg33ea8jnwhi at gmail dot com) 30 May 2021 23:06:59 top rated online canadian pharmacies <a href=https://cjepharmacy.com/>target store pharmacy hours</a> us based online pharmacy
Anoosoymn (wilfreoogpcvhi at gmail dot com) 23 May 2021 07:29:21 can u chew viagra https://llviagra.com/ maxman viagra capsules
RebfFough (esbghdfvwfrg4fyd at gmail dot com) 21 May 2021 12:00:12 cialis without prescription https://rcialisgl.com/ getting cialis in bc
Jebgsoymn (svzcefd3prghi at gmail dot com) 20 May 2021 04:38:33 shoppers drug mart pharmacy <a href=http://pharmacylo.com/>shoppers drug mart pharmacy</a> canadian pharmacy reviews
RfvbFough (esbghdfvrg4fyd at gmail dot com) 27 April 2021 01:28:56 cialis without prescription http://cileve.com/ - cialis ordering buy cialis no prescription uk
Abgcsoymn (wilfregsggpcvhi at gmail dot com) 31 March 2021 03:59:31 https://thesiswritingtob.com/ - help me write a thesis statement for free thesis editors <a href="http://thesiswritingtob.com/ ">thesis paper</a> psychology thesis topics
Ahbzsoymn (wilfrhy0ddhik3pcvhi at gmail dot com) 11 February 2021 04:32:01 payday loans for the unemployed bad credit <a href="http://daymoneygo.com/ ">payday loans russellville alabama</a> payday loans fresno
Ahkdsoymn (wilfrhy0ddhik3pcvhi at gmail dot com) 04 February 2021 05:22:54 cheap drugs <a href="http://storerxpharmcanada.com/ ">cialis online pharmacy</a> cialis daily
Ramya K (k dot ramya at globaledgesoft dot com) 05 September 2019 13:14:34 Hi,
Even i am facing issue,when I press 1 for entering into mailbox for new messgae I got noting no key press is detected by asterisk for VoiceMailMain()
How to et DTMFMode correctly in sip.conf entry for xlite softphone
Please help in resolving this issue
Thanks,
Ramya K
sean browne (sb at seanbrowne dot com) 15 August 2008 19:51:43 Pravin,
You need to set DTMFMode correctly in sip.conf entry for your softphone.
Sean
Pravin (dabhade_pravin at yahoo dot com) 26 July 2006 09:29:50 Hi All
I install Voicemail sucessfully and tested it the voicemail message files are cretad at /var/spool/asterisk/voicemail/default/pravin/INBOX
and I create a voice mail extension like this
;voice mail main menu
exten => 1231,1,Answer
exten => 1231,2,VoiceMailMain(222@default)
exten => 1231,3,HangUp()
when I dial extension 1231 from xlite sip phone
on asterisk console I get following thing
*CLI> -- Executing Answer("SIP/222-08188db0", "") in new stack
-- Executing VoiceMailMain("SIP/222-08188db0", "222@default") in new stack
-- Playing 'vm-youhave' (language 'en')
-- Playing 'digits/11' (language 'en')
-- Playing 'vm-INBOX' (language 'en')
-- Playing 'vm-messages' (language 'en')
-- Playing 'vm-onefor' (language 'en')
-- Playing 'vm-INBOX' (language 'en')
-- Playing 'vm-messages' (language 'en')
-- Playing 'vm-opts' (language 'en')
-- Playing 'vm-helpexit' (language 'en')
but when I press 1 for entering into mailbox for new messgae I got noting no key press is detected by asterisk