标题: asterisk 如何实现分机拨外线需要密码 [打印本页] 作者: xieweihua 时间: 2007-08-03 11:59 标题: asterisk 如何实现分机拨外线需要密码 asterisk 如何实现分机拨外线需要密码????作者: zhulizhong 时间: 2007-08-03 14:04 标题: add agi and check the password! hello, you can ask users entering password and check if the password is correct and run dial().something like this:
1234,1,read(ps||4|15)
1234,2,AGI(check|$ps)
1234,3,gotoif(4|5?$ps) // if password is right go to 4, else goto 5
1234,4,Dial(zap/1)
1234,5,Noop(Wrong password)
of course, you have to write AGI to check the value with your database and resturn true or false.
good luck!
zhu作者: xieweihua 时间: 2007-08-03 22:08
是我没有问清楚,