<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dear Malvin,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I see Sam worked hard to post you the whole info about the application where it clearly states the use of option “a” – Please change the configuration line accordingly now and see if it works for you.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Gohar<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Malvin Rito<br><b>Sent:</b> Thursday, September 22, 2011 3:50 PM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Add PinCode on my dialplan<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<br><br>I tried Authenticate where pass codes are stored on the file pass.conf and it works. <br><br>exten => _XXXXXXXXXXXX,1,Authenticate(/etc/asterisk/pass.conf)<br><br>Since I have my CDR, I want to have a report wherein I can check which pass code did the call. How can I achieve it?<br>Using authenticate through file does not replace ACCOUNT_CODE field with the pass code entered, it only show <b>ast_h323 </b>under the Account_Code field.<br><br>Regards,<br>Malvin<br><br>On 9/21/2011 1:01 PM, Sam Govind wrote: <o:p></o:p></p><div><p class=MsoNormal>See "core show application authe<TAB>"<o:p></o:p></p></div><div><p class=MsoNormal>If passwords are already the same as those of voicemail.conf go for application VMAuthenticate() - DIA generates a dial-tone which I don't think is suitable for dialling out from users(insiders)<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'> -= Info about application 'Authenticate' =-</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'>[Synopsis]</span><o:p></o:p></p></div><div><p class=MsoNormal>Authenticate a user<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'>[Description]</span><o:p></o:p></p></div><div><p class=MsoNormal>This application asks the caller to enter a given password in order to continue<o:p></o:p></p></div><div><p class=MsoNormal>dialplan execution.<o:p></o:p></p></div><div><p class=MsoNormal>If the password begins with the '/' character, it is interpreted as a file<o:p></o:p></p></div><div><p class=MsoNormal>which contains a list of valid passwords, listed 1 password per line in the<o:p></o:p></p></div><div><p class=MsoNormal>file.<o:p></o:p></p></div><div><p class=MsoNormal>When using a database key, the value associated with the key can be anything.<o:p></o:p></p></div><div><p class=MsoNormal>Users have three attempts to authenticate before the channel is hung<o:p></o:p></p></div><div><p class=MsoNormal>up.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'>[Syntax]</span><o:p></o:p></p></div><div><p class=MsoNormal>Authenticate(password[,options[,maxdigits[,prompt]]])<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'>[Arguments]</span><o:p></o:p></p></div><div><p class=MsoNormal>password<o:p></o:p></p></div><div><p class=MsoNormal> Password the user should know<o:p></o:p></p></div><div><p class=MsoNormal>options<o:p></o:p></p></div><div><p class=MsoNormal> a: Set the channels' account code to the password that is entered<o:p></o:p></p></div><div><p class=MsoNormal> d: Interpret the given path as database key, not a literal file<o:p></o:p></p></div><div><p class=MsoNormal> m: Interpret the given path as a file which contains a list of account<o:p></o:p></p></div><div><p class=MsoNormal> codes and password hashes delimited with ':', listed one per line in the<o:p></o:p></p></div><div><p class=MsoNormal> file. When one of the passwords is matched, the channel will have its<o:p></o:p></p></div><div><p class=MsoNormal> account code set to the corresponding account code in the file.<o:p></o:p></p></div><div><p class=MsoNormal> r: Remove the database key upon successful entry (valid with 'd'<o:p></o:p></p></div><div><p class=MsoNormal> only)<o:p></o:p></p></div><div><p class=MsoNormal>maxdigits<o:p></o:p></p></div><div><p class=MsoNormal> maximum acceptable number of digits. Stops reading after maxdigits<o:p></o:p></p></div><div><p class=MsoNormal> have been entered (without requiring the user to press the '#' key).<o:p></o:p></p></div><div><p class=MsoNormal> Defaults to 0 - no limit - wait for the user press the '#' key.<o:p></o:p></p></div><div><p class=MsoNormal>prompt<o:p></o:p></p></div><div><p class=MsoNormal> Override the agent-pass prompt file.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#CC33CC'>[See Also]</span><o:p></o:p></p></div><div><p class=MsoNormal>VMAuthenticate(), DISA()<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Sep 21, 2011 at 9:47 AM, Malvin Rito <<a href="mailto:mrito@mail.altcladding.com.ph">mrito@mail.altcladding.com.ph</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal>Thanks. ?If I want to use unique PIN for every user that dials out how can I implement it using Authenticate app?<br><br>Regards,<br><span style='color:#888888'>Malvin</span> <o:p></o:p></p><div><div><p class=MsoNormal><br><br>On 9/21/2011 12:42 PM, Sam Govind wrote: <o:p></o:p></p><p class=MsoNormal>DISA and DB based Auth could be an overkill. <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Kyle showed the very simplistic dial plan if Dial-out pin is common for the whole system.<o:p></o:p></p></div><div><p class=MsoNormal>See application <b>Authenticate(password[,options[,maxdigits[,prompt]]] </b>and if Voicemail PIN are required to be used use application <b>MAuthenticate([mailbox][@context][,options] </b> <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>- Sammy<o:p></o:p></p><div><p class=MsoNormal><br>On Wed, Sep 21, 2011 at 8:32 AM, Kyle Sexton <<a href="mailto:ks@mocker.org" target="_blank">ks@mocker.org</a>> wrote:<o:p></o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p class=MsoNormal>Something like this should work: <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>exten => _011.,1,Answer<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Wait(1)<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Read(password,enter-password,5)<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,GotoIf($[${password} = 12345]?5:9)<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>exten => _011.,n,NoOp(Matched _9011 - CheckRec-InternationalCall)<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Dial(SIP/+${EXTEN:3}@outbound)<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Hangup<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Playback(invalid)<o:p></o:p></p></div><div><p class=MsoNormal>exten => _011.,n,Hangup<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Could be cleaned up (the GotoIf isn't very descriptive about where it's going), but it's a starting point.<o:p></o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>On Sep 20, 2011, at 8:34 AM, Malvin Rito wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi List,<br>I currently have a asterisk server running used for dialing-out for IDD but I want to Put a pincode wherein only users with the right pin code will be allowed to dial IDD. Any sample dialplan you can suggest pls?<br><br>Thanks,<br>Malvin</span><o:p></o:p></p></div><p class=MsoNormal>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><br><br><o:p></o:p></p><pre>--<o:p></o:p></pre><pre>_____________________________________________________________________<o:p></o:p></pre><pre>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<o:p></o:p></pre><pre>New to Asterisk? Join us for a live introductory webinar every Thurs:<o:p></o:p></pre><pre> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>asterisk-users mailing list<o:p></o:p></pre><pre>To UNSUBSCRIBE or update options visit:<o:p></o:p></pre><pre> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></pre></div></div></div><p class=MsoNormal><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>