[asterisk-users] cmd Authenticate

Doug Lytle support at drdos.info
Tue Jun 29 08:26:11 CDT 2010


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."




More information about the asterisk-users mailing list