AGI与CGI
AGI和CGI,两者是什么关系阿
如果要通过客户端的浏览器打开主机的网页来配置asterisk相关参数,比如sip.conf中的用户,extensions.conf中的拨号方案,应该是什么样的一个思路呢
主机端需要web server,那CGI怎样与这些配置文件关联呢?不太懂,请教阿!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
up zhulizhong,呵呵
hello, few projects are going on. some people want to move to arm and some others are using ucasterisk. you can try astlinux. it supports mini_http with php cgi. i do not try that. but it is worthing to try. good luck!
zhu
你好!多谢!
php移植到嵌入式系统方便吗?
你说有很多项目是基于php的工作,有没有相关的链接吗?我先看看参考一下,呵呵,many thanks!
hello, friends:
it can be done by using c to read and write all the files under /etc/asterisk. doing GUI for embedded asterisk takes long time to do that.
i think Perl is best option for CGI. but PHP is a very good way to present GUI for asterisk because there are many project, which are php-based to support asterisk. if php can be implemented in your case, i think it's best. later, you can integrate with other php-based open source project.
zhulizhong
明白了!嗬嗬
我看到了freePBX,需要安装php和MySQL,但是目前是需要做一个嵌入式系统,装这些可能系统的资源不够用吧。freePBX我再好好看看,有没有相关资料呢,官方网站上面说的也不是很详细阿。
CGI应该也要用C写。那你说直接用CGI采用读文件的方式修改sip.conf等文件可行吗?
多谢拉!
hello, oriency:
AGI and CGI are different. AGI is used to allow the C, perl, phP,Python and java to interact with asterisk dialplan. CGI can be any programing to present webs like perl or c. of course, to run CGI , you have to have a web server like apache. the customers can access freepbx to edit the sip.conf or others. of course, you can write php to access the files. but make sure reload asterisk. you can call asterisk by using asterisk manager API to call asterisk and reboot it. it's better to install freepbx for you. good luck!
zhu