配置 Rtcomm Gateway
Rtcomm Gateway 添加将会话启动协议 (SIP) 与 Rtcomm WebRTC 端点连接的功能以交换音频和视频流。
关于此任务
如果您需要联合 Rtcomm 网络与不同供应商的网络,那么 Rtcomm Gateway (GW) 非常有用。另一网络可能是由 WebRTC 端点组成的网络(此网络使用另一方法发送信号),也可能是由基于 IP 的音频 (VOIP) 设备组成的不同网络,甚至是公共交换电话网 (PSTN)。只要另一网络提供支持广泛接受的 SIP 协议的边缘 GW 元素,这类联合就是可行的。
Rtcomm Gateway 支持 Interactive Connectivity Establishment (ICE) for SIP(基于 RFC 5245)和 Trickle ICE for SIP(基于 IETF 草稿)。此草稿仍标记为“进行中的工作”,所以根据此草稿进度,此实现未来可能更改。
过程
示例
在此示例中,入局 WebRTC 消息将发送至可能充当代理或注册器的外部 SIP 端点,例如,1.2.23.2:5063。
<rtcomm messageServerHost="<brokerhostname>" messageServerPort="<brokerhostport>"
<gateway sipContainer="false" externalPR="1.2.23.2:5063" allowFromSipEndpointRef="webrtc2, webrtc"></gateway>
</rtcomm>
入局 SIP 消息可在 “webrtc” 和 “webrtc2” SIP 端点上。在以下示例中,“webrtc”
将使用缺省端口(设置为 5060 和 localhost)。
<sipEndpoint id="webrtc"></sipEndpoint>
<sipEndpoint id="webrtc2" sipTCPPort="5067" sipUDPPort="5067" sipTLSPort="5068" host="*"></sipEndpoint>