Hosted Vicidial server starts from $39 Contact Us Buy Now!

asterisk dialplan authenticate

Estimated read time: 0 min

 Authenticate each user while dialling out in asterisk



1. First you need to create encrypted password for each extensions
    for eg exten : 1000 password : 1234
in linux console type echo -n "1234" | md5sum
outout gives : 81dc9bdb52d04dc20036dbd8313ed055

2. vi /tmp/pin.txt
    1000:81dc9bdb52d04dc20036dbd8313ed055
    1001:81dc9bdb52d04dc20036dbd8313ed344

3.vi /etc/extension.conf
   [outgoing] 
exten => _X.,1,NoOP
exten => _X.,Authenticate(/tmp/pin.txt,am,4)
exten => _X.,Dial(DAHDI/g0/${EXTEN})
exten => _X.,Hangup

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.