[asterisk-users] cmd Authenticate

2010-06-29 Thread Coco Richard
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


Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Danny Nicholas
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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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


-- 
_
-- 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


Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Doug Lytle
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


Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Coco Richard
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 supp...@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


-- 
_
-- 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


Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Philipp von Klitzing
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?

Use option a of Authenticate together with ${CDR(accountcode)}

Philipp


-- 
_
-- 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


Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Zeeshan Zakaria
Due to this reason I am doing authentications using Read().

Zeeshan A Zakaria

--
www.ilovetovoip.com

On 2010-06-29 9:36 AM, Coco Richard richard.kingc...@gmail.com wrote:

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 supp...@drdos.info wrote:
 Coco Richard wrote:
 Hi...
-- 
_
-- 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

Re: [asterisk-users] cmd Authenticate

2010-06-29 Thread Danny Nicholas
AFAIK, this will only address successful authentications.  I think the OP
wanted to be able to know what the user had entered on failed attempts.
Since I've added another layer to this onion, I think the best option is to
use Read followed by an AGI if you have bells and whistles like this and a
Gotoif if you are doing simple stuff.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Philipp von
Klitzing
Sent: Tuesday, June 29, 2010 8:53 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [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?

Use option a of Authenticate together with ${CDR(accountcode)}

Philipp


-- 
_
-- 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