简体   繁体   English

PJSIP可以实现服务器端吗?

[英]Is PJSIP OK to implement server side?

I'm going to developing a simple VoIP system. 我将要开发一个简单的VoIP系统。 I want to implement both client and servers (proxy server,register server,...) with the same sip library. 我想用相同的Sip库实现客户端和服务器(代理服务器,注册服务器等)。 Is PJSIP OK to implement servers? PJSIP是否可以实施服务器?
I use PJSIP in client side and not problem. 我在客户端使用PJSIP,没有问题。
PJSIP OK to implement servers? PJSIP可以实现服务器吗?

Thanks 谢谢

According to the documentation, not directly. 根据文档,不直接。 Every connection is managed through one "object" called a conference bridge, which apparently is limited to 254 ports and a single thread. 每个连接都是通过一个称为会议桥的“对象”来管理的,该对象显然限制为254个端口和一个线程。 The documentation isn't very clear on this conference bridge (which is a shame, since it's the core object) so I'm not sure if each side of the call uses 1 full-duplex port or 2 half-duplex ports. 会议桥上的文档不是很清楚(很遗憾,因为它是核心对象),所以我不确定通话的每一端是使用1个全双工端口还是2个半双工端口。 Still, with just 128 connections in the best case, PJSIP isn't going to cut it for real servers. 不过,在最佳情况下,只有128个连接,PJSIP不会将其削减到真正的服务器上。 On a client, 128 connections obviously is sufficient. 在客户端上,显然128个连接就足够了。

PJSIP implements the whole SIP protocol. PJSIP实现了整个SIP协议。 So yes: it can also be used to implement a server. 是的:它也可以用于实现服务器。
The library comes with many samples, eg a proxy server. 该库附带许多示例,例如代理服务器。 You can start from there. 您可以从那里开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM