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)
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 <[EMAIL PROTECTED]> wrote:
On 6/9/06, Doug Lytle <[EMAIL PROTECTED]> 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 --
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 --
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
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
