<div>Though its in Spanish - Hope it is exactly what OP requires !</div><div><br></div><a href="http://www.voztovoice.org/?q=node/477">http://www.voztovoice.org/?q=node/477</a><div><br></div><div>Found it via : <a href="http://www.voip-info.org/">http://www.voip-info.org/</a> News</div>
<div><br></div><div>Regards,</div><div>-Sammy</div><div><br></div><div><div class="gmail_quote">On Thu, Sep 22, 2011 at 6:50 PM, bakko <span dir="ltr">&lt;<a href="mailto:asannucci@gmail.com">asannucci@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF"><div>Hi look at option a. This option put on accountcode field the name on the left your password file.</div>
<div><br></div><div>Regards<br><br>Enviado desde mi iPad</div><div><br>El 22/09/2011, a las 5:49, Malvin Rito &lt;<a href="mailto:mrito@mail.altcladding.com.ph" target="_blank">mrito@mail.altcladding.com.ph</a>&gt; escribió:<br>
<br></div><div><div></div><div class="h5"><div></div><blockquote type="cite"><div>
    Hi,<br>
    <br>
    I tried Authenticate where pass codes are stored on the file
    pass.conf and it works. <br>
    <br>
    exten =&gt; _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:
    <blockquote type="cite">
      <div>See &quot;core show application authe&lt;TAB&gt;&quot;</div>
      <div>If passwords are already the same as those of voicemail.conf
        go for application VMAuthenticate() - DIA generates a dial-tone
        which I don&#39;t think is suitable for dialling out from
        users(insiders)</div>
      <div><br>
      </div>
      <div><font color="#cc33cc">  -= Info
          about application &#39;Authenticate&#39; =-</font></div>
      <div><br>
      </div>
      <div><font color="#cc33cc">[Synopsis]</font></div>
      <div>Authenticate a user</div>
      <div><br>
      </div>
      <div><font color="#cc33cc">[Description]</font></div>
      <div>This application asks the caller to enter a given password in
        order to continue</div>
      <div>dialplan execution.</div>
      <div>If the password begins with the &#39;/&#39; character,  it is
        interpreted as a file</div>
      <div>which contains a list of valid passwords, listed 1 password
        per line in the</div>
      <div>file.</div>
      <div>When using a database key, the value associated with the key
        can be anything.</div>
      <div>Users have three attempts to authenticate before the channel
        is hung</div>
      <div>up.</div>
      <div><br>
      </div>
      <div><font color="#cc33cc">[Syntax]</font></div>
      <div>Authenticate(password[,options[,maxdigits[,prompt]]])</div>
      <div><br>
      </div>
      <div><font color="#cc33cc">[Arguments]</font></div>
      <div>password</div>
      <div>    Password the user should know</div>
      <div>options</div>
      <div>    a: Set the channels&#39; account code to the password that is
        entered</div>
      <div>    d: Interpret the given path as database key, not a
        literal file</div>
      <div>    m: Interpret the given path as a file which contains a
        list of account</div>
      <div>    codes and password hashes delimited with &#39;:&#39;, listed one
        per line in the</div>
      <div>    file. When one of the passwords is matched, the channel
        will have its</div>
      <div>    account code set to the corresponding account code in the
        file.</div>
      <div>    r: Remove the database key upon successful entry (valid
        with &#39;d&#39;</div>
      <div>    only)</div>
      <div>maxdigits</div>
      <div>    maximum acceptable number of digits. Stops reading after
        maxdigits</div>
      <div>    have been entered (without requiring the user to press
        the &#39;#&#39; key).</div>
      <div>    Defaults to 0 - no limit - wait for the user press the
        &#39;#&#39; key.</div>
      <div>prompt</div>
      <div>    Override the agent-pass prompt file.</div>
      <div><br>
      </div>
      <div><font color="#cc33cc">[See Also]</font></div>
      <div>VMAuthenticate(), DISA()</div>
      <div><br>
      </div>
      <br>
      <div class="gmail_quote">
        On Wed, Sep 21, 2011 at 9:47 AM, Malvin Rito <span dir="ltr">&lt;<a href="mailto:mrito@mail.altcladding.com.ph" target="_blank"></a><a href="mailto:mrito@mail.altcladding.com.ph" target="_blank">mrito@mail.altcladding.com.ph</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> 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>
            <font color="#888888"> Malvin</font>
            <div>
              <div><br>
                <br>
                On 9/21/2011 12:42 PM, Sam Govind wrote:
                <blockquote type="cite">DISA and DB based Auth could be
                  an overkill.
                  <div><br>
                    <div>Kyle showed the very simplistic dial plan if
                      Dial-out pin is common for the whole system.</div>
                    <div>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> </div>
                    <div><br>
                    </div>
                    <div>Regards,</div>
                    <div><br>
                    </div>
                    <div>- Sammy<br>
                      <div><br>
                        On Wed, Sep 21, 2011 at 8:32 AM, Kyle Sexton <span dir="ltr">&lt;<a href="mailto:ks@mocker.org" target="_blank"></a><a href="mailto:ks@mocker.org" target="_blank">ks@mocker.org</a>&gt;</span>
                        wrote:<br>
                        <div class="gmail_quote">
                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                            <div style="word-wrap:break-word">Something
                              like this should work:
                              <div><br>
                              </div>
                              <div>
                                <div>exten =&gt; _011.,1,Answer</div>
                                <div>exten =&gt; _011.,n,Wait(1)</div>
                                <div>exten =&gt;
                                  _011.,n,Read(password,enter-password,5)</div>
                                <div>exten =&gt;
                                  _011.,n,GotoIf($[${password} =
                                  12345]?5:9)</div>
                                <div><br>
                                </div>
                                <div>exten =&gt; _011.,n,NoOp(Matched
                                  _9011 - CheckRec-InternationalCall)</div>
                                <div>exten =&gt;
                                  _011.,n,Dial(SIP/+${EXTEN:3}@outbound)</div>
                                <div><br>
                                </div>
                                <div>exten =&gt; _011.,n,Hangup</div>
                                <div>exten =&gt;
                                  _011.,n,Playback(invalid)</div>
                                <div>exten =&gt; _011.,n,Hangup</div>
                                <div><br>
                                </div>
                                <div>Could be cleaned up (the GotoIf
                                  isn&#39;t very descriptive about where
                                  it&#39;s going), but it&#39;s a starting
                                  point.</div>
                                <div>
                                  <div><br>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div>
                                    <div>On Sep 20, 2011, at 8:34 AM,
                                      Malvin Rito wrote:</div>
                                    <br>
                                    <blockquote type="cite">
                                      <div><span style="font-size:10pt;font-family:Arial;font-weight:Normal">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></div>
                                      --<br>
_____________________________________________________________________<br>
                                      -- Bandwidth and Colocation
                                      Provided by <a href="http://www.api-digital.com" target="_blank"></a><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"></a><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"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>

                                  </div>
                                  <br>
                                </div>
                              </div>
                            </div>
                            <br>
                            --<br>
_____________________________________________________________________<br>
                            -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><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"></a><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"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>

                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>

                </blockquote>
              </div>
            </div>
          </div>
          <br>
          --<br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><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"></a><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"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>

        </blockquote>
      </div>
      <br>
    </blockquote>
  

</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br>
<span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span>               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br>
<span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</blockquote></div></div></div><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><br></blockquote></div><br></div>