[Asterisk-Users] long distance ask for pin

Lewis Agosta voipstreet at gmail.com
Fri Jun 9 07:18:10 MST 2006


This may not be the most gracefull approach, but this is how I have done it.

exten => s,n,Setvar(Auth=No)
exten => s,n,DigitTimeout(3)
exten => s,n,ResponseTimeout(5)
exten => s,n,Read(MyPin,agent-pass)
exten => s,n,Gotoif($[${MyPin} = ${GOODPIN}]?n:n+x)
exten => s,n,Background(pin-number-accepted)
exten => s,n,Setvar(Auth=Yes)
on and on...


On 6/9/06, Pietro U <pietrouruguay at gmail.com> wrote:
>
> On 6/9/06, Doug Lytle <support at drdos.info> wrote:
>
> > Pietro U wrote:
> > > hi all i have my asterisk work perfectly thanks to you now i need to
> > > apply some improvements like PIN :(
> > >
> > > i need to add somenthing in here or in other section in the conf?
> > >
> > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Authenticate
>
>
>
> yes but this is for extensions numbers, not for longdistance calls,
> because the same user can call in my city but i need to asterisk ask a pin
> when this people dial a longdistance
>
>
>
> 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 Easynews.com<http://easynews.com/>--
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>--
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>


-- 
Origination that includes real support!
http://www.VoIPStreet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/1fc2aeb0/attachment.htm


More information about the asterisk-users mailing list