minmessage=5Sometimes users start recording very long messages. We doubt that anyone will listen a message longer than two minute (most commonly, the messages are containing information such as "It is Peter. The server is down. Call me ASAP." or "Hi, it's Philip. Please call me when you have a completed version of the tutorial."). Let's lower the maximum length of the messages to two minutes.
maxmessage=120Sometimes users forget to hang up the call, and this results in very long messages. We will activate the silence detector (by using `maxsilence` and `silencethreshold` keywords). If Asterisk detects (the silencethreshold value will define what is silence and what isn't) a longer silence than maxsilence value, the server will hang up the call.
silencethreshold=96 maxsilence=5We can also set a lower value to the `maxmsg` keyword in order to decrease the maximum amount of voicemail messages per account
maxmsg=20There is an extreme way to decrease the required space for certain account(s). We will show it on the mailboxes in the [secretary] context. We will send the message as an attachment and then we will delete the message itself.
2010 => 1234,Mila Hook,mila.hook@mail.company.com,,attach=yes|delete=yes 2011 => 1235,John Dow,john.dow@mail.company.com,,attach=yes|delete=yes 2012 => 1236,Dacy Even,dacy.even@mail.company.com,,attach=yes|delete=yesIn this way no messages will be saved on our disk. All messages will be e-mailed on the respective e-mail.
exten => 0***,1,Answer() exten => 0***,2,VoiceMailMain(****@*******) exten => 0***,3,HangUp() exten => ***,1,Dial(****/*****) exten => ***,2,VoiceMail(****@*******) exten => ***,3,HangUp()How about writing one line for each account? We will use two macros in order to achieve a shorter and easier way of adding new accounts. One of the macros will handle the internal communication between the accounts, the other one will handle the voicemail applications (VoiceMailMain() extension). Since our accounts' names are not numbers and have nothing in common between the accounts' usernames, their mailbox number and their extension we will use variables defined in the [global] section of extensions.conf in order to specify the relation between the mailbox account, the extension number and the SIP or IAX2 account. Here are the macros:
Add Comment |
Latest Headlines:
Latest Tutorials:
Latest Comments: