hi guys welcome back to another episode of the void guys last time around we started taking a look at voicemails and how to actually start configuring your voicemail boxes and we got as far as actually configuring the voicemail yeah but we haven't integrated any of those voice pops into the dial plan yet mm-hmm so it is how do we do that first thing is we have to figure out which applications do we need as always yeah we said your playback and I don't know hanging up we never get the monkeys get away yeah we have to find out what are the right applications that we need so as any time we need applications we go to yesterday's console and we type in cor horseshow application like yeah like voice or mail and you can see many different applications there is a voicemail book exists that you can check if a voicemail book box exists or not this in dynamic environments that's very important because you cannot rely on that everybody has a voice mailbox right then you need that here's the main application voice mail no it's not the main application because that's always my main the next application its voice mail yeah this application you need it to leave the voice mail and so if somebody calls and if you want to say to him so what years is not available yeah at least talk to my voice mail then you need that application and then it goes to your voice mail I can talk to your voice mail yeah the next one is voice mail main and this is the main application this is the main application this is where you can administer or manage okay your voice mail boxes but as the user who the voice mailbox right not as the one who calls a cake for to leave a voicemail box so we need them both we need a voicemail main for me and you to configure our voice mail boxes and we need voice mail itself for our callers yeah to redirect their calls to the voicemail okay so we can have a closer look to the voicemail application because leaving a voicemail is the first thing I think call show application voicemail no yes here you have syntax use a voicemail mailbox at context you don't have to provide the context if it is the default context I think because here you can see it's an optional field because it's in brackets so I think it's enough if we say 100 for me 200 for you yeah and that's it if not we have to provide the context at default and if you have another context in default then for sure you have to provide a context then we could provide some other options as you can see here but we don't need them for now we go to our die plan no and we have already our time checks and so on and so on and here are our phones that's my phone event it's your phone uh-huh and here we added another line if the application returns from the dial application then next it goes to the voicemail here I edit two things I added a timeout to the dial application but I'll Mateus but try it only for five seconds okay yeah if you cannot die there are many reasons maybe the five seconds timeout is passed her and I did not answer yeah that's most times this is the case okay I wonder if I'm out is away as and the second reason is he cannot even create the channel to my phone because it's turned off right because of network problems that's not important then it goes to the next line yeah and those two cases and then we say we want to go to voicemail box 100 at context default maybe this is optional we can try it I think so and then hang up we could implement the same for you maybe a little longer 10 seconds voice mail and here we need your voice mailbox that's 200 and here you can see why it may be intelligent to use the same numbers for the extensions yeah as for the voice mail just yeah when even a lot is a gap back confusing and a battle and you can do another shortcut if you want to because it's the extension you could use our variable X 10 where the dialed extension 100 is stored because we used it a lot already and then it goes automatically to the voice mailbox 100 and then I could do here the same and then I trust can copy that block more easily I have just changed the extension here yeah in the name there and the name maybe it's easier yeah I could make it a lot more efficient yeah so you should always try to use non static information if you can yeah because then you have don't have to change so much if you have to copy something yeah you could use subroutines that we already discussed yeah yeah but I think it's okay so far yeah give it a try we should have voice mail boxes now we go to the asterisk console as anytime and then we say cor reload or we could say dial and reload because we only changed the type line then we give it a try that's your phone you could call me I made a mistake we can't see anything we already something but the verbosity oh yeah you're learning fast yeah you're a pro if we finished our tutorial so more repository then we can see what's going on here we can see the dial sip Matthias the time out of 5 now the time out it expired we go to the voice mailbox and he tells her something yeah blah blah message after the beep blah blah now he's recording and he's waiting until we this is the call lyric for you this is my active call and now I can talk a lot I have two options I can just hang up or I can press the pound key then I got really nice thank you so what was going on you can see it all here we call the voice mailbox 100 you did see that our variable worked yeah and then he played us the intro he said ah welcome to the West well I do not remember what he said please habla and then he played the beep the beep is nothing else than just another beep yeah message and then you can see that he starts recording all those messages 1 2 3 in those different formats and then the user ended by pressing the Hesh with the pound key yeah then the system hung up before after playing a thank you after playing this thank you for sure yeah so we can test another thing we can just dial it again wait five seconds now just hang up no thank you but we also recorded those messages because the recording already started at the beginning of the voicemail application so that's the one part now it's said because you cannot listen to your voice meds that's its area maybe the system already tried to to send us email the attached voicemail we did not configure our mail system for not sure so we don't know but in any case to manage the voicemail box we need the second application ok voicemail me right we will try to find out we will try to find out how it works and I will I go back to the console for that this is show no call show application voice mail main it has a bit more features but it's easy to call voicemail main that the mailbox and again the context and some options you can provide right okay so we just try to integrate it we will integrate to do very easy and enhance it in the next tutorial maybe we say every system function adults with an asterisk sign okay yeah maybe but that's not a mustache cause I think it's beautiful voice mail mean and here for our first tried it just do it hard-coded we say voice mailbox 100 so you with with asterisk 100 you can really only manage the voice mailbox 100 right yeah that's ugly because then we would need for every voice mailbox and every but that's just for demonstration and we would enhance it later on next hang up that's it call the voicemail system voice mailbox 100 and then hang up so we could give it a try now I really call my voicemail box he asked me for the password that's one two three four one important part is here if you enter the pin you can wait until he accepts it or you can press the hash again yeah that speeds up the check of the the first thing you can do is press one for your voicemails nice messages yeah now I pressed seven and you can delete it so I think everybody can understand the concept just like like a voice mailbox of your mobile phone yeah where you can configure things in exactly yeah yeah voice menu and go through all the options what's special and you can move a voice mailbox you cannot just read it okay as I did you can delete it you can move it to another inbox I have that's crazy I think nobody does that but you could I suppose theoretically somewhere before you can move it around and the next thing is you can create your own prompts in there yeah you could say I want the prompt for I'm out of office yeah my name and so on and there are stories knows a few different types of messages to have prompts or that mailbox you could create one for I'm busy or I'm on the phone yeardley I'm away and there's the second one and you can just use a prompt to say your name right and if you just say your name then asterisk says all the content around it says this is the mailbox off and then I'm yours and then after this talks I hear right okay so it creates a mix but it's very easy because you'd only have to provide your name and then after it spells all the other stuff I have write it as a PC and so on yeah and you could also use this messages now we are always playing only one of those messages because we only call the voicemail box once yeah if I'm not if I did not pick up the phone and I just call the voicemail box and we can divide that up we can say if I'm on the phone I want another message the heads if the timeout expired yeah it's on but we will do my sense yeah makes sense yeah but that's another tutorial I think after we did a lot for for now and we will enhance it okay in the next tutorial okay there you have it next tutorial would be quasi voice mail boxes take three so yeah thanks for watching until next time goodbye bye you