SIP和Java,从哪里开始和用什么? [英] SIP and Java, where to start and with what?

查看:239
本文介绍了SIP和Java,从哪里开始和用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在java中实现SIP协议,并希望能够创建不同的客户端(5个或更多)并使它们连接到代理服务器。这一切都是出于测试目的,所以我希望能够很好地了解在较低级别上发生的事情。

客户端应该首先能够通过文本进行通信,之后也可以通过音频进行通信。 (如果我做得那么远)

I want to implement the SIP protocol in java and would want to be able to create different clients (5 or more) and make them connect to a proxy server. This is all for testing purposes so I would like to be able to see well what's happening on a rather low level.
The clients should first be able to communicate trough text and later on maybe also by audio. (If I ever get that far)

我已经阅读一些关于JAIN库的内容,我从中理解的是它们不太适合服务器端?我也没有找到任何代理服务器示例,教程,使用JAIN。

我也发现了这个 SIP Servlet教程书,我过去使用过HTTP servlet但是我应该更喜欢servlet还是JAIN还是......?

I already read a bit about the JAIN libraries and what I understood from that is that they are not really well suited for the server side? I also didn't really find any proxy server examples, tutorials, using JAIN.
I also found this SIP Servlet Tutorial book, I used HTTP servlets in the past but should I prefer servlets or JAIN or ...?

我对SIP很陌生,所以我真的不知道从哪里开始或者选择与java结合使用。

I'm quite new to SIP so I don't really know where to start or what to choose in combination with java.

推荐答案

如果打算将您的SIP堆栈合并到生产应用程序中,那么我对您的建议就是尽一切可能避免从头开始编写自己的SIP堆栈。可以毫不夸张地说,多年来让您的堆栈与所有不同的SIP设备和服务器一起平稳运行需要多年。如果你有一套非常狭窄的集成要求,那么你可以更快地完成它,但它仍然是一项艰巨的任务。

If the intention is to incorporate your SIP stack into a production application then my advice to you would be to do everything you can to avoid writing your own from scratch. It's not an exaggeration to say it will take you over years to get your stack working smoothly with all the different SIP devices and servers out there. If you have a very narrow set of integration requirements then maybe you could do it quicker but it would still be a big undertaking.

这是一个很好的可用 SIP堆栈。另一方面,如果您决定通过查看 SIP RFC列表来实现自己的开始。 RFC 3261 是核心协议规范,但它已经被许多其他RFC更新,所以你会需要为核心SIP功能实现至少六个。之后,如果你想支持诸如转移,在线状态,消息等待等事情,那么就要实现更多的RFC。以下是 SIP堆栈的列表。

Here's a good list of available SIP stacks. If on the other hand you do decide to implement your own start by looking over the SIP RFC list. RFC 3261 is the core protocol specification but it's been updated by a number of other RFC's so you'll need to implement a minimum of half a dozen just for the core SIP functionality. After that if you want to support things like transfers, presence, message waiting etc. then that's even more RFCs to implement. Here's that list of SIP stacks again.

这篇关于SIP和Java,从哪里开始和用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆