[asterisk-users] cmd Authenticate

Coco Richard richard.kingcoco at gmail.com
Tue Jun 29 08:32:27 CDT 2010


Danny, Doug

thx for the replies. According to the documentation, there is no
change for Authenticate() in version 1.6.x.x. So it seems i have to
use Read().

rich

On Tue, Jun 29, 2010 at 3:26 PM, Doug Lytle <support at drdos.info> wrote:
> Coco Richard wrote:
>> Hi,
>>
>> i need to save into a local variable the user's input dialed during
>> the cmd Authenticate(). Is there a way to do it?
>>
>>
>
> core show application authenticate
> hylafax*CLI>
>   -= Info about application 'Authenticate' =-
>
> [Synopsis]
> Authenticate a user
>
>
>   Options:
>      a - Set the channels' account code to the password that is entered
>
> ----------
>
> You probably could use option a.
>
> But, I'd suggest that instead of using authenticate, you code something
> using the read option.
>
> I use read to authenticate conference administration.
>
> [check-password]
>
> exten => s,1,Read(get-admin-password|enter-password|||3|)
> exten => s,n,Gotoif($["${LEN(${get-admin-password})}" < "1"]?9:3)
> exten => s,n, some dialplan magic here.
>
> Doug
>
>
> --
>
> Ben Franklin quote:
>
> "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
>
>
> --
> _____________________________________________________________________
> -- 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
>



More information about the asterisk-users mailing list