Chinaunix

标题: 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
是我没有问清楚,

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

如果是用的asterisk原代码装的,就可以使用楼上的了
作者: xieweihua    时间: 2007-08-03 22:09
在trixbox中
那个pin功能只能做到拨号需要输入密码,但是不能统计哪个密码拨出去的
作者: xieweihua    时间: 2007-08-18 20:52
标题: 改了数据库和报表
自己写了个模块,解决了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2