免费注册 查看新帖 |

Chinaunix

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

怎样才能开发一个app应用? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-19 16:48 |只看该作者 |倒序浏览
asterisk.c,pbx.c,channel.c这几个文档看得晕,看不明白啊。老师进度又紧,没有头绪,哪位前辈可以指点一下吗,就是做一个简单的apps应用的程序。谢谢。

论坛徽章:
0
2 [报告]
发表于 2007-04-19 17:16 |只看该作者

you can try AGI

hello, you can try an AGI app in c, php or perl. for example, you can check the result of your exams, and tell the caller or play IVR to tell she/him. you receive data from database. that's all. good luck!
zhu

[ 本帖最后由 zhulizhong 于 2007-4-19 17:24 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-04-20 09:31 |只看该作者
谢谢,编写AGI和“编写app”是相同的概念吗,不太清楚。。
http://www.voip-info.org/wiki-Asterisk+AGI里讲到一些用perl编写AGI的例子,在终端输入#perl
再把那些代码copy进去就能用吗?
我只学过C,是不是用perl开发AGI好一点,毕设还有个把月,现在来得及吗,谢谢?

论坛徽章:
0
4 [报告]
发表于 2007-04-20 09:46 |只看该作者

what's you mean?

if you write "apps" for asterisk, you write c and recompile asterisk. and test your apps by using dialplan such as dial, date features. here, i mean the apps are for users.  it based on asterisk, and use AGI to interact with your database or other inputs. if you want to use agi, i prefer using perl.  regarding time issues, i do not think it is a problem, it depends on how big the project is.
good luck.

[ 本帖最后由 zhulizhong 于 2007-4-20 09:48 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-04-20 10:37 |只看该作者
regarding time issues--呵呵,佩服你的英语。。
我看了《电话未来之路》上面的用Perl编写AGI的例子,还不清楚实现的是什么功能,录音留言吗?
嗯,现在也还不懂,再看看。
谢谢zhulizhong 。。

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

you have to ask your lecturer!

hello, you have to ask your lecturer and know the "apps". it is added in asterisk or for users. again,  if you want to add apps in asterisk, you have to use c to write modules and recompile asterisk. voice recording  is there in asterisk. you just make a dial plan.  AGI or system command can do many things.  you can find many resources in perl.
Regards!
zhu

论坛徽章:
0
7 [报告]
发表于 2007-04-20 17:57 |只看该作者
add apps in asterisk, you have to use c to write modules and recompile asterisk...
写一个简单的apps会不会很难?我看了apps文件夹里面的程序,很多变量都不知道是在什么地方定义的。。想通过看asterisk.c,pbx.c,channel.c来了解,但又很难看得懂。。www.voip-info.org上面有这方面的资料吗(还不熟悉voip-info)。。说到毕设的老师,简直无语,他没用过Asterisk只是听说不错就开了个题目,一直都是我自己的学习,他只是催我赶紧修改人优化asterisk的代码,最好能在2410ARM的开发板上跑,我晕,我能写出一个代码都是很大的进步了。

论坛徽章:
0
8 [报告]
发表于 2007-04-21 10:02 |只看该作者
决定先从http://www.asterisk.org/doxygen/1.2/开始看,师兄提点,开源的程序看懂了就是你的。。
答辩的时候我要把老师讲晕,开始混了。。。老师教会了我们no responsibility。。。

论坛徽章:
0
9 [报告]
发表于 2007-04-21 15:24 |只看该作者

google is your lecturer

hello, friend:
you can access this URL to see how the apps in asterisk work. this is a sample for SMS.
http://linux.softpedia.com/get/C ... astSMS-11278.shtml. are you a master student or a degree student? if you do not have time, it's better that you check other apps under apps in asterisk or from website.  you want to take time to cross-compile ARM-linux. i think you do not do that now, later, you can try.  sorry, i say something whcih is not related with your project. the lecturer is only lecture you and tell you something, which she/he might be know or not know that. you must learn you self, nobody can help you if you do not help your self. I am a master holder, i feel that i have nothing to learn the computer knowledge from my supervisor. in that situation, i am forced my self to learn. i have a learning ability. you can go to the forum from asterisk.org.  the asteriskers are very friendly and supportive.  i am very sure that you ask them do how to develop apps in asterisk as a China student, they will help you. good luck to you!  
regards!
zhu

论坛徽章:
0
10 [报告]
发表于 2007-07-19 17:07 |只看该作者

回复 #1 dxyr 的帖子

不知道你的课程设计做的怎么样了?
呵呵!现在的学校好象进步很多了.
Asterisk很复杂,移植起来应该比较麻烦.
而且必须要linux2.6内核.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP