Changing pin codes on asterisk

I am currently using password list for outbound call on my asterisk box. I want to allow my user to change their pin code after a certain time period, does any one have an Idea of how that can be achieved. tnx

You can store the pins in a database ( the * internal datbase could be used) and then build an ivr or a web interface with php to let users modify their pins .


Marco Bruni

If you want to implement realtime configuration, I sugggest you to validate pin using mysql, create a simple table, and external.conf.

this is an examples

exten => _9X.,3,Set(DB(test/pin)=${EXTEN:0:5})
exten => _9X.,5,Set(PIN=${DB(test/pin)})

exten => _9X.,11,MYSQL(Connect connid asterisk asterisk asterisk)
exten => _9X.,12,MYSQL(Query resultid ${connid} SELECT * \ from \ \ where \ pin =\ ${PIN:1})
exten => _9X.,13,MYSQL(Fetch foundRow ${resultid} number)
exten => _9X.,14,NoOp(${foundRow})
exten => _9X.,15,NoOp(${number})
exten => _9X.,16,GotoIf($["${foundRow}" = “1”]?_9X.|21)