<html><body 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 <<a href="mailto:mrito@mail.altcladding.com.ph">mrito@mail.altcladding.com.ph</a>> escribió:<br><br></div><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 => _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 cite="mid:CAJUJwtiZf9e=pOLP-XCp8Z-HnMmSOUoa3gnx8FnXLJdWG+uZbA@mail.gmail.com" type="cite">
<div>See "core show application authe<TAB>"</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't think is suitable for dialling out from
users(insiders)</div>
<div><br>
</div>
<div><font class="Apple-style-span" color="#cc33cc"> -= Info
about application 'Authenticate' =-</font></div>
<div><br>
</div>
<div><font class="Apple-style-span" color="#cc33cc">[Synopsis]</font></div>
<div>Authenticate a user</div>
<div><br>
</div>
<div><font class="Apple-style-span" 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 '/' 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 class="Apple-style-span" color="#cc33cc">[Syntax]</font></div>
<div>Authenticate(password[,options[,maxdigits[,prompt]]])</div>
<div><br>
</div>
<div><font class="Apple-style-span" color="#cc33cc">[Arguments]</font></div>
<div>password</div>
<div> Password the user should know</div>
<div>options</div>
<div> a: Set the channels' 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 ':', 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 'd'</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 '#' key).</div>
<div> Defaults to 0 - no limit - wait for the user press the
'#' key.</div>
<div>prompt</div>
<div> Override the agent-pass prompt file.</div>
<div><br>
</div>
<div><font class="Apple-style-span" 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"><<a moz-do-not-send="true" href="mailto:mrito@mail.altcladding.com.ph"><a href="mailto:mrito@mail.altcladding.com.ph">mrito@mail.altcladding.com.ph</a></a>></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 class="h5"><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"><<a moz-do-not-send="true" href="mailto:ks@mocker.org" target="_blank"><a href="mailto:ks@mocker.org">ks@mocker.org</a></a>></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 => _011.,1,Answer</div>
<div>exten => _011.,n,Wait(1)</div>
<div>exten =>
_011.,n,Read(password,enter-password,5)</div>
<div>exten =>
_011.,n,GotoIf($[${password} =
12345]?5:9)</div>
<div><br>
</div>
<div>exten => _011.,n,NoOp(Matched
_9011 - CheckRec-InternationalCall)</div>
<div>exten =>
_011.,n,Dial(SIP/+${EXTEN:3}@outbound)</div>
<div><br>
</div>
<div>exten => _011.,n,Hangup</div>
<div>exten =>
_011.,n,Playback(invalid)</div>
<div>exten => _011.,n,Hangup</div>
<div><br>
</div>
<div>Could be cleaned up (the GotoIf
isn't very descriptive about where
it's going), but it'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 moz-do-not-send="true" href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a>
--<br>
New to Asterisk? Join us for a
live introductory webinar every
Thurs:<br>
<a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options
visit:<br>
<a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a>
--<br>
New to Asterisk? Join us for a live
introductory webinar every Thurs:<br>
<a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></pre>
</blockquote>
</div>
</div>
</div>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></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">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"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></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"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>