通过WebSocket将SIP转换为真正的SIP [英] SIP over websockets to true SIP

查看:1108
本文介绍了通过WebSocket将SIP转换为真正的SIP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一个sip服务器,用于从HTML sip客户端(使用sipml5制作)进行连接.在研究此操作的过程中,我遇到了可能对我有用的Web套接字上的sip,但是,我不确定通过web-sockets的sip连接到兼容服务器的用户代理是否能够成功建立连接.使用不兼容的服务器对某人的呼叫(即,通过web-sockets从SIP呼叫到真正的SIP).

I'm trying to implement a sip server for connecting to from an HTML sip client(made using sipml5). During my research into doing this I've come across sip over web-sockets which might be useful to me, however, I am unsure if a user agent connecting through sip over web-sockets to a compatible server would then be able to successfully make a call to some one using an incompatible server(i.e. calling from SIP over web-sockets to true SIP).

我知道webrtc2sip可用于连接到旧网络,但我宁愿避免使用其他代理(如果可能的话).因此,是否可以在web-sockets上使用SIP连接到兼容的SIP服务器,然后在不使用gateway的情况下从此用户代理向不支持SIP的另一个用户进行呼叫?

I know webrtc2sip can be used for connecting to legacy networks but I would rather avoid using another proxy if at all possible. So, is it possible to connect to a compatible SIP server using SIP over web-sockets then make a call from this user agent to another that does not support SIP over web-sockets without using a gateway?

推荐答案

是的,Websockets上的SIP是草案,不是规范.而且我不知道支持该草案的许多SIP供应商.

You are right, SIP over Websockets is a draft, not specification. And I do not know many SIP vendors who support this draft.

可能的解决方案是真正的websocket-SIP网关.例如,Flashphoner Web呼叫服务器被实现为网关,该网关通过带浏览器的websockets起作用,并与SIP服务器一起通过SIP(TCP和UDP)起作用.因此,它与任何支持RFC3261-标准SIP规范的服务器兼容.

Possible solution is truly websocket-SIP gateway. For example Flashphoner Web Call Server is implemented as a gateway which works through websockets with browser and works via SIP(TCP and UDP) with SIP servers. Therefore it is compatible with any server that supports RFC3261 - standard SIP specification.

简短的信令方案是:

浏览器-[Websockets]-Web呼叫服务器-[SIP TCP,UDP]-任何SIP服务器

简短流传输方案:

浏览器-[WebRTC = SRTP,DTLS,ICE,STUN]-Web呼叫服务器-[RTP UDP]-任何SIP/RTP服务器

这篇关于通过WebSocket将SIP转换为真正的SIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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