免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4505 | 回复: 6
打印 上一主题 下一主题

AGI与CGI [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-02 09:30 |只看该作者 |倒序浏览
AGI和CGI,两者是什么关系阿
如果要通过客户端的浏览器打开主机的网页来配置asterisk相关参数,比如sip.conf中的用户,extensions.conf中的拨号方案,应该是什么样的一个思路呢
主机端需要web server,那CGI怎样与这些配置文件关联呢?不太懂,请教阿!

论坛徽章:
0
2 [报告]
发表于 2007-08-02 14:33 |只看该作者

usr perl or php

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

论坛徽章:
0
3 [报告]
发表于 2007-08-08 13:34 |只看该作者
明白了!嗬嗬
我看到了freePBX,需要安装php和MySQL,但是目前是需要做一个嵌入式系统,装这些可能系统的资源不够用吧。freePBX我再好好看看,有没有相关资料呢,官方网站上面说的也不是很详细阿。

CGI应该也要用C写。那你说直接用CGI采用读文件的方式修改sip.conf等文件可行吗?

多谢拉!

论坛徽章:
0
4 [报告]
发表于 2007-08-09 11:17 |只看该作者

can be done by using C

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

论坛徽章:
0
5 [报告]
发表于 2007-08-10 09:27 |只看该作者
你好!多谢!
php移植到嵌入式系统方便吗?
你说有很多项目是基于php的工作,有没有相关的链接吗?我先看看参考一下,呵呵,many thanks!

论坛徽章:
0
6 [报告]
发表于 2007-08-11 20:02 |只看该作者

try astlinux

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

论坛徽章:
0
7 [报告]
发表于 2007-08-16 15:17 |只看该作者
up zhulizhong,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP