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

是我没有问清楚,

我是希望在不用手动去改dialplan的情况下,主要是我用的是trixbox,

如果是用的asterisk原代码装的,就可以使用楼上的了

xieweihua 发表于 2007-08-03 22:09

在trixbox中
那个pin功能只能做到拨号需要输入密码,但是不能统计哪个密码拨出去的

xieweihua 发表于 2007-08-18 20:52

改了数据库和报表

自己写了个模块,解决了
页: [1]
查看完整版本: asterisk 如何实现分机拨外线需要密码