[asterisk-users] AUTHENTICATE Command customized prompts - Work around

Matthew A Kolberg mkolberg at justask.net
Sun Feb 28 10:58:35 CST 2010


Thanks Steve your work around works great.

To ASTERISK.org moderator - If possible I would like to submit this as a 
feature request.

Thanks!

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?

Steve's Trick Below:

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


Matthew A. Kolberg
www.justask.net
mkolberg at justask.net


___________________________________
Just ask for ASK
Taking the hassle out of technology so you can run your business.
1-877-ASK-4-ASK

Did you know you can chat online with us?
http://www.justask.net/support 

Follow ASK on twitter at:  http://twitter.com/justasknet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100228/87097b5e/attachment.htm 


More information about the asterisk-users mailing list