cagi

所属分类:Linux/Unix编程
开发工具:Visual C++
文件大小:833KB
下载次数:72
上传日期:2009-01-21 00:40:03
上 传 者qazxsw2000
说明:  asterisk c-agi 提供c 语言接口的例子
(asterisk c-agi provide examples c language interface)

文件列表:
cagi\acard.c (9275, 2009-01-03)
cagi\acard.dsp (3508, 2009-01-03)
cagi\acard.dsw (535, 2009-01-03)
cagi\acard.h (2640, 2009-01-03)
cagi\acard.ncb (66560, 2009-01-12)
cagi\acard.opt (53760, 2009-01-12)
cagi\acard.plg (658, 2009-01-03)
cagi\avoice.c (1751, 2009-01-03)
cagi\cagi.c (41531, 2009-01-03)
cagi\cagi.h (4936, 2009-01-03)
cagi\cagirecord.c (2251, 2009-01-03)
cagi\cagisample.c (1105, 2006-10-07)
cagi\CVS\Entries (291, 2006-11-14)
cagi\CVS\Repository (5, 2006-02-22)
cagi\CVS\Root (59, 2006-10-05)
cagi\fastcagi.c (4678, 2006-10-07)
cagi\Makefile (271, 2006-10-05)
cagi\myos.h (20, 2009-01-03)
cagi\REVISIONS (2200, 2006-11-14)
cagi\CVS (0, 2009-01-03)
cagi\Debug (0, 2009-01-03)
cagi (0, 2009-01-12)

If you have used PHPAGI, CAGI will hopefully be easy to use as it is based on it. The included cagisample.c is all you really need to do. Just add cagi.o to your compile and #include cagi.h to your program. There is a Makefile as well. If you want to use fast agi, there is a fastcagi binary that can execute any AGI app. Passing arguments to the command can be done using url formatted arguments. AGI(agi://192.168.1.5/cagisample?-first=1&-second=2) will execute cagisample -first 1 -second 2 Add this line to /etc/services on remote AGI server: fastagi 4573/tcp # Asterisk AGI Then make a file /etc/xinetd.d/fastagi on remote AGI server: (there is a file in tar fastagi.xinetd you can copy) # default: off # description: fastagi is a remote AGI interface # service fastagi { socket_type = stream user = root group = nobody server = /var/spool/asterisk/agi-bin/fastcagi server_args = --logfile /var/log/fastagi.log --agidir /var/spool/asterisk/agi-bin/ wait = no protocol = tcp bind = 127.0.0.01 disable = no }

近期下载者

相关文件


收藏者