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? thx rich
I believe that the information keyed is just trashed after authentication.
You could modify app_authenticate.c to set a variable with the passed
information (this might already be included in the 1.6/1.8 branches, I just
deal with 1.4). Your other option would be to use a read/gotoif pair in
place of authenticate.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Coco Richard
Sent: Tuesday, June 29, 2010 7:33 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] cmd Authenticate
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?
thx
rich
--
_____________________________________________________________________
-- 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
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."