JAIN-SIP WebRTC signaling

核能气质少年 提交于 2019-12-12 04:59:40

问题


Are there any code example for this? I want to know what should be the flow in processRequest when an INVITE request is received.

I'm particularly interested in how you forward a request from an UA to another previously registered UA.


回答1:


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.

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.

The next hop must be the address advertised by the other party's Contact header. You aim towards this address in the request URI (or route header).



来源:https://stackoverflow.com/questions/27985127/jain-sip-webrtc-signaling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!