• 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
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://donde-ver-ant-man-y-la-avispa-qu...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-scream-6-tyt.statuspag...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-guardianes-de-la-noche...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-demon-slayer-villa-de-...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.reddit.com/r/BenavidezvPlant...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™