简体   繁体   English

JAIN-SIP WebRTC信令

[英]JAIN-SIP WebRTC signaling

Are there any code example for this? 是否有任何代码示例? I want to know what should be the flow in processRequest when an INVITE request is received. 我想知道收到INVITE请求时processRequest的流程是什么。

I'm particularly interested in how you forward a request from an UA to another previously registered UA. 我对如何将一个UA的请求转发到另一个先前注册的UA尤其感兴趣。

Check out https://svn.java.net/svn/jsip~svn/trunk/src/test/unit/gov/nist/javax/sip/stack/WebsocketSelfTest.java the WebsocketServer class should be enough to get you started to write a simple client-server. 查看https://svn.java.net/svn/jsip~svn/trunk/src/test/unit/gov/nist/javax/sip/stack/WebsocketSelfTest.java WebsocketServer类应该足以使您开始编写一个简单的客户端服务器。

Forwarding just means you act as client repeating the server side of things. 转发只是意味着您充当客户端重复服务器端。 You can do B2BUA like this https://svn.java.net/svn/jsip~svn/trunk/src/examples/websocket/B2BUA.java or a proxy which is less robust and doesn't works so well with websockets. 您可以像这样https://svn.java.net/svn/jsip~svn/trunk/src/examples/websocket/B2BUA.java来执行B2BUA,也可以使用健壮性较低且不适用于websockets的代理。

The next hop must be the address advertised by the other party's Contact header. 下一个跃点必须是另一方的Contact头广告的地址。 You aim towards this address in the request URI (or route header). 您的目标是请求URI(或路由标题)中的该地址。

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

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