Hi,

I tried Authenticate where pass codes are stored on the file pass.conf and it works.

exten => _XXXXXXXXXXXX,1,Authenticate(/etc/asterisk/pass.conf)

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? Using authenticate through file does not replace ACCOUNT_CODE field with the pass code entered, it only show *ast_h323 *under the Account_Code field.

Regards,
Malvin

On 9/21/2011 1:01 PM, Sam Govind wrote:
See "core show application authe<TAB>"
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)

  -= Info about application 'Authenticate' =-

[Synopsis]
Authenticate a user

[Description]
This application asks the caller to enter a given password in order to continue
dialplan execution.
If the password begins with the '/' character, it is interpreted as a file which contains a list of valid passwords, listed 1 password per line in the
file.
When using a database key, the value associated with the key can be anything.
Users have three attempts to authenticate before the channel is hung
up.

[Syntax]
Authenticate(password[,options[,maxdigits[,prompt]]])

[Arguments]
password
    Password the user should know
options
    a: Set the channels' account code to the password that is entered
    d: Interpret the given path as database key, not a literal file
    m: Interpret the given path as a file which contains a list of account
codes and password hashes delimited with ':', listed one per line in the
    file. When one of the passwords is matched, the channel will have its
    account code set to the corresponding account code in the file.
    r: Remove the database key upon successful entry (valid with 'd'
    only)
maxdigits
    maximum acceptable number of digits. Stops reading after maxdigits
    have been entered (without requiring the user to press the '#' key).
    Defaults to 0 - no limit - wait for the user press the '#' key.
prompt
    Override the agent-pass prompt file.

[See Also]
VMAuthenticate(), DISA()


On Wed, Sep 21, 2011 at 9:47 AM, Malvin Rito <mr...@mail.altcladding.com.ph <mailto:mr...@mail.altcladding.com.ph>> wrote:

    Thanks. ?If I want to use unique PIN for every user that dials out
    how can I implement it using Authenticate app?

    Regards,
    Malvin


    On 9/21/2011 12:42 PM, Sam Govind wrote:
    DISA and DB based Auth could be an overkill.

    Kyle showed the very simplistic dial plan if Dial-out pin is
    common for the whole system.
    See application
    *Authenticate(password[,options[,maxdigits[,prompt]]] *and if
    Voicemail PIN are required to be used use application
    *MAuthenticate([mailbox][@context][,options] *

    Regards,

    - Sammy

    On Wed, Sep 21, 2011 at 8:32 AM, Kyle Sexton <k...@mocker.org
    <mailto:k...@mocker.org>> wrote:

        Something like this should work:

        exten => _011.,1,Answer
        exten => _011.,n,Wait(1)
        exten => _011.,n,Read(password,enter-password,5)
        exten => _011.,n,GotoIf($[${password} = 12345]?5:9)

        exten => _011.,n,NoOp(Matched _9011 - CheckRec-InternationalCall)
        exten => _011.,n,Dial(SIP/+${EXTEN:3}@outbound)

        exten => _011.,n,Hangup
        exten => _011.,n,Playback(invalid)
        exten => _011.,n,Hangup

        Could be cleaned up (the GotoIf isn't very descriptive about
        where it's going), but it's a starting point.


        On Sep 20, 2011, at 8:34 AM, Malvin Rito wrote:

        Hi List,
        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?

        Thanks,
        Malvin
        --
        _____________________________________________________________________
        -- Bandwidth and Colocation Provided by
        http://www.api-digital.com --
        New to Asterisk? Join us for a live introductory webinar
        every Thurs:
        http://www.asterisk.org/hello

        asterisk-users mailing list
        To UNSUBSCRIBE or update options visit:
        http://lists.digium.com/mailman/listinfo/asterisk-users


        --
        _____________________________________________________________________
        -- Bandwidth and Colocation Provided by
        http://www.api-digital.com --
        New to Asterisk? Join us for a live introductory webinar
        every Thurs:
        http://www.asterisk.org/hello

        asterisk-users mailing list
        To UNSUBSCRIBE or update options visit:
        http://lists.digium.com/mailman/listinfo/asterisk-users




    --
    _____________________________________________________________________
    -- Bandwidth and Colocation Provided byhttp://www.api-digital.com  --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
                    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
        http://lists.digium.com/mailman/listinfo/asterisk-users

    --
    _____________________________________________________________________
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to