[asterisk-users] Asterisk AUTHENTICATE Command

Steve Edwards asterisk.org at sedwards.com
Sat Feb 27 14:39:39 CST 2010


On Sat, 27 Feb 2010, Matthew A Kolberg wrote:

> I was surprised to find that you can not override the default voice 
> prompts when using the Authenticate Command.  I have viewed the source 
> and the prompt file names are hard coded.  I am developing an 
> application that use the Authenticate command to use "one use" PINs 
> located in the Asterisk Database.  I had all of the recordings for the 
> application recorded by a professional voice talent.  It seems odd that 
> I can not specify an option when calling the Authenticate command to 
> provide my own recordings.
>
> The only 2 work arounds that I have come up with are - change the system 
> recordings (which will change them for any application that uses the 
> same recordings).  Or I could write my own application to authenticate 
> the PINs and not use the authenticate command.
>
> Does anyone else think that this feature would be useful or am I looking 
> at this the wrong way?

I have not tried this with the authenticate() application, but you can 
"trick" Asterisk into using your own prompts by [ab]using the LANGUAGE() 
function.

Something like:

 	exten = *,n,	set(LANGUAGE()=my-pin-prompts)

or

 	exten = *,n,	set(LANGUAGE()=my-pin-prompts/${CLIENT})

may work.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list