• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
Back to Tutorials

6.1.2.100. VMAuthenticate (dialplan application)

VMAuthenticate
 

General Information:

The VMAuthenticate is similar to the Authenticate application. It can be used in all scenarios where you can use the Authenticate application.

VMAuthenticate is used to authenticate certain user and grant him access to some dialplan. The main difference between the two applications is that the VMAuthenticate uses the voicemail configuration for source of passwords, as the Authenticate uses external file. Due to the syntax of voicemail.conf, VMAuthenticate supports different contexts, usernames (mailboxes) and password to it. This differs the VMAuthenticate application from Authenticate.

Basically the VMAuthenticate is the authenticate algorithm of the VoiceMailMain application. You can set VMAuthenticate for certain user (mailbox) only or for all mailboxes in certain voicemail context. If you do not specify a target mailbox number, the VMAuthenticate application will set the variable AUTH_MAILBOX with value the mailbox identification number (that the user inputed) upon successful authentication process.
 

Exemplary usage:

The VMAuthenticate can be used in order to grant access to internal dialplan of certain Asterisk server to remote caller. You can achieve this by creating new voicemail context for fake voicemail boxes.

For each remote user who should have access to internal dialplan you can create fake mailbox with mailbox number the callerID of the user. Then you can set some password to his account (the password will be valid only for his certain mailbox / callerID).

In the dialplan you should execute the VMAuthenticate with certain mailbox number and context. If the user inputs valid password the dialplan will continue its execution and you can set him a
DISA for example. The syntax of the VMAuthenticate application will be explained below.
 

Syntax:


VMAuthenticate application can be used with the following syntax:

VMAuthenticate()
- if you use VMAuthenticate with no parameters, the application will prompt the user for a mailbox number and a password. Once the user inputs the data VMAuthenticate will check for the inputed mailbox number and password in context default. The user will hear all prompts (such as vm-intro, vm-password, vm-login, etc) which are typical for VoiceMail application.

VMAuthenticate(mailbox) - if you use VMAuthenticate with parameter for mailbox, the application will prompt the user only for password. Once the user inputs the data VMAuthenticate will check for the mailbox number specified as parameter in the default context and the inputed by the user password in context default. The user will hear all prompts (such as vm-intro, vm-password, vm-login, etc) which are typical for VoiceMail application.

VMAuthenticate(@context) - if you use VMAuthenticate with with parameter for mailbox context (this syntax is as follows <@>CONTEXT), the application will prompt the user for a mailbox number and a password. Once the user inputs the data VMAuthenticate will check for the inputed mailbox number and password in context specified as parameter. The user will hear all prompts (such as vm-intro, vm-password, vm-login, etc) which are typical for VoiceMail application.

VMAuthenticate(mailbox@context)
- if you use VMAuthenticate with with parameters for mailbox number and context (this syntax is as follows MAILBOX<@>CONTEXT), the application will prompt the user for password. Once the user inputs the data VMAuthenticate will check the inputed password against the password for the mailbox number at the specified context. The user will hear all prompts (such as vm-intro, vm-password, vm-login, etc) which are typical for VoiceMail application.

VMAuthenticate([mailbox][@context]|options) - you can use VMAuthenticate with some additional options which will change the default behavior of the application, each of the syntaxes above supports these. The options themselves will be described below.
 

VMAuthenticate options:
s - If you add the 's' char at the options location in the syntax the application will skip playing the initial prompts.


Sample configuration:


We will create the following setup:
Several users will be able to dial the internal numbers of certain company. The user's callerIDs are as following: 200100200, 200100201, 200100202 and 200100203.

Those users will dial a certain DID which is terminated on our server (for example via a PRI). For our example the DID will be 300400500.

First we will create new context in voicemail.conf (located by default at /etc/asterisk/voicemail.conf).

In the context (named vmauth for example) we will create some mailboxes with identification numbers as the callerID of the users. Here is the sample:

[general]
format=wav49|gsm|wav
serveremail=asterisk
maxsilence=5
silencethreshold=128
maxlogins=2
emaildateformat=%A, %B %d, %Y at %r
sendvoicemail=yes

[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM

[default]

[vmauth]
200100200 => 1234, johnDow0, johnDow0@asteriskguru.com
200100201 => 2345, johnDow1, johnDow1@asteriskguru.com
200100202 => 3456, johnDow2, johnDow2@asteriskguru.com
200100203 => 5678, johnDow3, johnDow3@asteriskguru.com

Then we will add the needed dialplan within our extensions.conf (located by default at /etc/asterisk/extensions.conf). For example the incoming calls will be on a certain DID (300400500).

[general]
static=yes
autofallthrough=no
writeprotect=yes

[globals]

[zaptel-incoming]

exten => 300400500,1,Answer()
exten => 300400500,n,VMAuthenticate(${CALLER(num)}@vmauth)
exten => 300400500,n,DISA(no-password|internal)
exten => 300400500,n,HangUp()

[internal]

exten => 101,1,Dial(SIP/support)
exten => 101,n,HangUp()

exten => 102,1,Dial(SIP/support-lvl2)
exten => 102,n,HangUp()

exten => 103,1,Dial(IAX2/sandra&IAX2/monica)
exten => 103,n,HangUp()

exten => 104,1,Dial(SIP/admins)
exten => 104,n,HangUp()

In this way if you receive a call within the zaptel-incoming context on 300400500 DID, the user will try to authenticate with his callerID as mailbox and inputed password. If the user is from different callerID than the included in the vmauth, he will be prompted for password but he will never be able to authenticate.

If user with callerIDs 20010020(0,1,2 or 3) inputs an invalid password he will be prompted for password again (the maximum reauthenticate cycles are configured within the voicemail configuration with maxlogins setting). When a user with those callerID inputs a valid password (for his account) he will be able to dial internal extension 101, 102, 103, 104 and so on.

Here we will dial the extension through our Zoiper softphone:
zoiper-vmauth.jpg

Here is the result of the dialplan execution:
asterisk-vmauth.jpg
Note that the user has inputed an invalid password in his first attempt. After he inputed the correct password the user was routed to the internal context.

Links:
• Asterisk official web site
• Zoiper
• extensions.conf
• voicemail.conf

 
User Comments
donna albert (donnaalbert145 at gmail dot com)
15 July 2025 08:38:18
Am really grateful and thankful for what Dr Osalu has done for me and my family. I Was having herpes 1&2 for good three years with no solution, the virus almost took my life and because I was unable to work and I was also lost a lots of money for medication, but one faithful day when I went online, I met lots of testimonies about this great man so I decided to give it a try and to God be the glory he did it. He cured me of my virus and I am so happy and so pleased to Write about him today. If you need his help or you also want to get cured just the way I got mine, just WhatApp him via +2348078668950 or email drosaluherbalhome@gmail.com website : https://drosaluherbalhome.wixsite.com/drosaluherbshome
Kitty Shannon (kittyshannon8 at gmail dot com)
21 June 2025 08:37:51
Am so happy that just 3 days after taking Dr Guba Herbal treatments my herpes was cured permanently. Dr Guba also has a cure to #HIV #Diabetes #Lupus #Tinnitus #Fibroid #Cancer #Hepatitis B, #Syphilis #Infertility etc ... If you have this ailment or whatsoever you might be suffering from you should contact him at hisan email via: drgubahealingherbs@gmail.com or WhatsApp: +2347077581439:or:website:https://dr guba healing herbs.wixsite.com/guba-healing-herbs
Tom Chau (ctom89938 at gmail dot com)
20 June 2025 20:01:35
Life is always beautiful when you have good health. i have be in pain for almost 1 year had HSV 1&2 and I was lonely and sad, luckily I was directed to a very kind and Great DR GUBA who helped me cure my HSV 1&2 and today I am free from the virus and very healthy thank you so much DR GUBA .an email via: drgubahealingherbs@gmail.com or WhatsApp: + 234 7077851439 or website: https://drgubahealingherbs.wixsite.com/guba-healing-herbs
Leticia Richmond (leticiarichmond0 at gmail dot com)
20 June 2025 12:40:38
I always thought I wont be cured and herpes has no cure until I came across a story about Dr Guba and I decided to contact him about my herpes virus, he assured me that he has a herbal medicine which is a permanent cure. I got the herbal medicine and used it as directed by him, I was happy when I went for another test after using the herbs and found out that I am herpes free. contact him by email via: drgubahealingherbs@gmail.com or WhatsApp: + 234 7077581439 or website: https://drgubahealingherbs.wixsite.com/guba-healing-herbs
Julia Kleven (juliakleven85 at gmail dot com)
18 June 2025 05:59:58
DR EHIAGWINA HELPED ME CURE GENITAL HERPES VIRUS CONTACT Email: ehiagwinaherbalhome@gmail.com or on whatsapp: +2348162084504. website: https://ehiagwinaherbalhom.wixsite.com/home
Julia Kleven (juliakleven85 at gmail dot com)
18 June 2025 05:58:10
DR EHIAGWINA HELPED ME CURE GENITAL HERPES VIRUS CONTACT HIM ON WHATSAPP: +2348162084504.
Patricia Van  (drikpoko at gmail dot com)
09 June 2025 19:49:30

I TESTED POSITIVE FOR HSV-2 A FEW MONTHS AGO.
At first, Yes, I was devastated thinking I have an incurable STD for life. After doing hours of research I quickly realized genital herpes is a filthy parasite that just likes to hide in your body. Yes, There’s no “medical cure” but that doesn’t mean your body can’t get rid of it. I literally flush it out of my system with the help of Doctor Ikpoko on YouTube, A natural herbal medicine which I ordered after doing some research. And now I’m HSV-2 negative, I never believed it until my doctor finally gave me the test results and behold I was HSV-2 free. I’m so glad that I found you, Dr Ikpoko on YouTube. Thanks so much for your goodness I’m grateful. You can also get your help from him through his
Email } drikpoko@gmail.com
https://drikpoko.wixsite.com/herbs
Lacy Belt  (drikpoko at gmail dot com)
05 June 2025 06:22:47
Don’t be too skeptical to take good care of yourself because you heard our Government said there is no cure to Herpes Virus, That was my first thought until I finally met a great herbalist from west Africa Nigeria and his name is Dr Ikpoko on YouTube, THE CAREGIVER, His Herbs &#127807; work very effectively but it has no side effects. All I want you to do is to reach out to him via whatsapp: +2348108298045, drikpoko@gmail.com or visit his website https://drikpoko.wixsite.com/herbs and stop believing in our bad Government because they didn’t want to help us then we need to help ourselves and earlier we realize this and earlier it will be better for us all, HSV have a complete cure because I was cure from this so called Hsv-1 After completing the herbal medication that was ship to me by herbal Doc. Ikpoko on YouTube channel, for three weeks and it has been two months. I have not gotten any symptoms or outbreaks in my body, GLORY to God that he has sent a wonderful and kind hearted man to me in regaining my health back to me.
fgdfg (efasyflix50-11 at yahoo dot com)
13 May 2022 08:37:56
https://lacapitaldelsol.com/anuncio/%e5%a5%87%e5%bc%82%e5%8d%9a%e5%a3%ab2%ef%bc%9a%e7%96%af%e7%8b%82%e5%a4%9a%e5%85%83%e5%ae%87%e5%ae%99%e4%b8%80%e4%b8%8a%e7%9c%8b%e5%ae%8c%e6%95%b4%e7%89%88%e5%b0%8f%e9%b4%a8%e3%80%901080p%e3%80%912022/
https://lacapitaldelsol.com/anuncio/watch%e5%a5%87%e5%bc%82%e5%8d%9a%e5%a3%ab2%ef%bc%9a%e7%96%af%e7%8b%82%e5%a4%9a%e5%85%83%e5%ae%87%e5%ae%99%e5%ae%8c%e6%95%b4%e7%89%88%e6%9c%ac2022-hd%e7%b7%9a%e4%b8%8a%e7%9c%8b-%e8%a7%80%e7%9c%8b/
https://lacapitaldelsol.com/anuncio/free%e5%a5%87%e5%bc%82%e5%8d%9a%e5%a3%ab2%ef%bc%9a%e7%96%af%e7%8b%82%e5%a4%9a%e5%85%83%e5%ae%87%e5%ae%99%e5%86%8d%e5%94%b1-%e7%b7%9a%e4%b8%8a%e7%9c%8b%e5%b0%8f%e9%b4%a8%e5%ae%8c%e6%95%b4%e7%89%88/
https://lacapitaldelsol.com/anuncio/hd-4k%e5%a5%87%e5%bc%82%e5%8d%9a%e5%a3%ab2%ef%bc%9a%e7%96%af%e7%8b%82%e5%a4%9a%e5%85%83%e5%ae%87%e5%ae%99%e7%b7%9a%e4%b8%8a%e7%9c%8b%e5%b0%8f%e9%b4%a8%e5%ae%8c%e6%95%b4%e9%ab%98%e6%b8%85%e7%94%b5/
https://lacapitaldelsol.com/anuncio/2022%e5%a5%87%e5%bc%82%e5%8d%9a%e5%a3%ab2%ef%bc%9a%e7%96%af%e7%8b%82%e5%a4%9a%e5%85%83%e5%ae%87%e5%ae%99-hd1080p4k-%e9%a6%99%e6%b8%af%e6%b5%81%e5%aa%92%e9%ab%94/
https://www.shawl-anderson.org/profile/doctor-strange-2-streaming-free-hd-redit/profile
https://www.emergefellowship.org/profile/doctor-strange-2-streaming-free-hd-telegram/profile
https://www.gmartell.com/profile/doctor-strange-2-streaming-free-hd-link/profile
https://www.psymed.hku.hk/profile/doctor-strange-2-streaming-free-hd-in-english/profile
https://www.finku.id/profile/doctorstrange2/profile
https://www.portabrace.com/profile/link-stream-dr-strange-2-online/profile
https://www.ottozutz.com/profile/link-stream-dr-strange-2-online/profile
https://www.putnamcountygc.com/profile/link-stream-dr-strange-2-online/profile
https://www.portabrace.com/profile/dr-strange-2-google-drive-link/profile
https://www.putnamcountygc.com/profile/dr-strange-2-google-drive-link/profile
https://www.ottozutz.com/profile/dr-strange-2-google-drive-link/profile
https://www.shawl-anderson.org/profile/dr-strange-2-google-drive-link/profile
https://www.sistahspace.org/profile/dr-strange-2-google-drive-link/profile https://lexcliq.com/googledrive-4k-downloads-doctor-strange-in-the-multiverse-of-madness/
https://lexcliq.com/online-doctor-strange-in-the-multiverse-of-madness-2022watch-full-movie-hd-download-1080p/
https://www.nebc.edu/profile/download-doctor-strange-2-online-on-123movies/profile
https://www.shawl-anderson.org/profile/free-download-doctor-strange-2-google-drive-720p-in-english/profile
https://www.sistahspace.org/profile/download-doctor-strange-2-movie-online/profile
https://www.coralrestoration.org/profile/download-doctor-strange-2-in-the-multiverse-of-madness-123movies/profile
https://www.putnamcountygc.com/profile/download-doctor-strange-2-in-the-multiverse-of-madness-full-version/profile
https://www.wsrcweb.hku.hk/profile/free-watch-doctor-strange-2-in-the-multiverse-of-madness/profile
https://www.visitlewisfarms.com/profile/doctor-strange-2-in-the-multiverse-of-madness-googledrive-downloads-4k/profile
https://www.waspsnetball.co.uk/profile/123m-dr-strange-2-watch-online-free/profile
https://www.dogwoodarts.com/profile/watch-free-doctor-strange-2-in-the-multiverse-of-madness/profile
https://www.shawl-anderson.org/profile/dr-strange-2-free-download/profile https://lexcliq.com/watch-online-doctor-strange-in-the-multiverse-of-madness-full-movie-123movies-free-streaming/
https://www.cakeresume.com/portfolios/watch-doctor-strange-2-movie-free-streaming
https://www.portabrace.com/profile/easyflix50-watch-full-version/profile
https://www.dogwoodarts.com/profile/easyflix017-watch-full-version/profile
https://www.wsrcweb.hku.hk/profile/easyflix017-watch-full-version/profile
https://www.sistahspace.org/profile/easyflix017-watch-full-version/profile
https://www.coralrestoration.org/profile/easyflix017-watch-full-version/profile
https://www.happyvalleybeer.com/profile/easyflix017-watch-full-version-zh/profile
https://shawl-anderson.org/profile/easyflix017-watch-full-version-tw/profile
https://www.waspsnetball.co.uk/profile/dfgdfhfgh/profile
https://www.shawl-anderson.org/profile/gfdjghjkghkljl/profile
https://www.happyvalleybeer.com/profile/khlkjghstert/profile
https://www.coralrestoration.org/profile/kiuyhtkjhgeasyflix/profile
https://www.sistahspace.org/profile/page1easyflix017/profile
https://www.wsrcweb.hku.hk/profile/pade2easyflix017/profile
https://www.dogwoodarts.com/profile/minggir-easyflix017/profile
Vitaszqh (xrumer888 at outlook dot com)
18 October 2021 14:28:32
presently while making love hooked

destructive addictions succumb to two categories: compound addictive problems like produce, medicines, alcoholic, cigarette smoking, as well gourmet coffee, and in addition pathway addictions related to videos, compelling <a href=https://milled.com/charmingdate-com/welcome-to-charmdate-com-tVKvdIcsxsQJ0i4u>charmdate.com</a> fitness, anger, ridiculous supposing, handling performance, in addition,yet intimacies. sexual intimacies habit, also known as with love addictively, Is like a particular habit: It is applying something properly someone to fill you up remember your trusty condition. you may be sexually passionate and it could be making use of sex addictively is dependent how often by means of you choose to use sex returning to fill up that you are up take away ailment your.

or even a purchasing sex addictively? how to identify utilizing just one of signs further down may indicate a love-making craving or a tendency to use sex addictively.

plainly, there are lots of levels of sexual intimacies obsession. between the sheets desire, as with other addictive problems, originates from the unfilled wounded component ourselves.

often the confidence portion of our lives our wounded diy discovers through-out babyhood and moreover age of puberty other ways to try and have control earlier mentioned locating truly circumventing injury. a large number teenagers men, as they definitely place to masturbate, certain use a certain amount of libido to pacify their unique frights of denial. girls and boys alike properly certain use his / her sex because they wish to get appreciate, and additionally to quit rejection. each and every composite or perform activly works to seal emptiness, retain being alone, get noticed properly reduce soreness, it often seems an effective tallying.
Hamzza (9mmju9pxe6 at yahoo dot com)
19 December 2015 15:16:36
Woah this blog is fantastic I love<a href="http://kypwne.com"> sidtyung</a> your articles.Continue with the great work! I hope you understand, a lot ofpeople are searching around for this information, you can aid them greatly.
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • https://www.are.na/voir-le-film-les-scht...
    tutorial: Request to schedule in the past?!?!
  • https://www.imdb.com/list/ls4789796999/ ...
    tutorial: SIP with NAT or Firewalls
  • https://www.imdb.com/list/ls4789721741/ ...
    tutorial: SIP with NAT or Firewalls
  • https://www.imdb.com/list/ls4789770751/ ...
    tutorial: SIP with NAT or Firewalls
  • https://github.com/saiyaara-epic-quality...
    tutorial: asterisk.conf
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™