使用 DNS 过程查找 SIP 服务器
会话启动协议 (SIP) 可使用域名服务器 (DNS) 过程,以便客户机能够解析 SIP 统一资源标识 (URI)。
关于此任务
WebSphere® Application Server 支持 RFC 3263 标准。这允许通过 DNS 将 SIP URI 解析为要联系的下一中继段的 IP 地址、端口和传输协议。
注: 在主服务器发生故障的情况下,SIP 不支持使用服务器的 DNS 过程向备份客户机发送响应。
完成以下步骤来将 WebSphere Application Server 配置为支持 RFC 3263 标准。
过程
- 启动 WebSphere Application Server。
- 在管理控制台中,展开服务器,然后单击 。
- 在一般属性下面,选中启用通过 DNS NAPTR 记录查找 SIP 服务器复选框,然后填写首选 DNS 服务器名称和次要 DNS 服务器名称字段。
- 单击应用以保存更改。
- 重新启动 WebSphere Application Server。
下一步做什么
必须配置 DNS 服务器以使 RFC 3263 支持对 SIP 容器有效。以下示例是 BIND 数据库文件,用于在 DNS 服务器上配置 RFC 3263 支持。
; Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
; Copyright (C) 2001 Internet Software Consortium.
;
; Permission to use, copy, modify, and distribute this software for any
; purpose with or without fee is hereby granted, provided that the above
; copyright notice and this permission notice appear in all copies.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
; PERFORMANCE OF THIS SOFTWARE.
; $Id: include.db,v 1.2.206.1 2004/03/06 10:22:13 marka Exp $
; Test $INCLUDE current domain name and origin semantics
example.com. 43200 IN SOA ns.example.com. email.example.com. ( 2003032001 10800 3600 604800 86400 )
;
example.com. 43200 IN NS ns.example.com.
;
ns.example.com. 43200 IN A 10.0.0.20
sipserver1.example.com. 43200 IN A 10.0.0.21
sipserver2.example.com. 43200 IN A 10.0.0.22
sipserver3.example.com. 43200 IN A 10.0.0.23
;
router.example.com. 43200 IN CNAME sipserver3
;
sipserver1.example.com. 43200 IN AAAA fec0:0:0:0:0:0:0:abcd
sipserver2.example.com. 43200 IN AAAA fec0:0:0:0:0:0:0:abba
;
_sip._udp.example.com. 43200 IN SRV 2 0 5060 sipserver1.example.com.
_sip._udp.example.com. 43200 IN SRV 2 0 5060 sipserver2.example.com.
_sip._tcp.example.com. 43200 IN SRV 1 4 5060 sipserver1.example.com.
_sip._tcp.example.com. 43200 IN SRV 1 2 5060 sipserver2.example.com.
_sips._tcp.example.com. 43200 IN SRV 0 1 5061 sipserver1.example.com.
_sips._tcp.example.com. 43200 IN SRV 0 0 5061 sipserver2.example.com.
;
example.com. 43200 IN NAPTR 0 0 "s" "SIPS+D2T" "" _sips._tcp.example.com.
example.com. 43200 IN NAPTR 1 0 "s" "SIP+D2T" "" _sip._tcp.example.com.
example.com. 43200 IN NAPTR 2 0 "s" "SIP+D2U" "" _sip._udp.example.com.