AGI与CGI

发布于 2022-07-25 23:21:04 字数 155 浏览 12 评论 6

AGI和CGI,两者是什么关系阿
如果要通过客户端的浏览器打开主机的网页来配置asterisk相关参数,比如sip.conf中的用户,extensions.conf中的拨号方案,应该是什么样的一个思路呢
主机端需要web server,那CGI怎样与这些配置文件关联呢?不太懂,请教阿!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

段念尘 2022-08-01 06:41:33

up zhulizhong,呵呵

时光瘦了 2022-08-01 05:06:37

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

不知所踪 2022-07-31 23:53:47

你好!多谢!
php移植到嵌入式系统方便吗?
你说有很多项目是基于php的工作,有没有相关的链接吗?我先看看参考一下,呵呵,many thanks!

注定孤独终老 2022-07-31 05:54:08

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

我为君王 2022-07-28 21:49:22

明白了!嗬嗬
我看到了freePBX,需要安装php和MySQL,但是目前是需要做一个嵌入式系统,装这些可能系统的资源不够用吧。freePBX我再好好看看,有没有相关资料呢,官方网站上面说的也不是很详细阿。

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

多谢拉!

心如荒岛 2022-07-26 00:54:23

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文