参照IETF RFC 3261,规定联网系统中SIP消息的From、To头域中的SIP URI格式如下:

sip[s]:username@domain;uri-parameters

其中,用户名username的命名应保证在同一个SIP监控域内具有唯一性,宜采用6.1.1规定的ID统一编码;domain宜采用ID统一编码的前十位编码,扩展支持十位编码加“.spvmn.cn”后缀格式,或采用IP:port格式,port宜采用5060;uri-parameters可用于携带扩展参数。

SIP消息中其他头域的SIP URI取值符合IETF RFC 3261信令通信规定即可。


附录D 统一编码

200 中心信令控制服务器编码

202 媒体分发服务器编码

118 网络视频录像机(NVR)编码

注册报文用户名

Authorization: Digest username="64010000002020000001", realm="64010000", nonce="6fe9ba44a76be22a", uri="sip:64010000002000000001@172.18.16.5:5060", response="9625d92d1bddea7a911926e0db054968", algorithm=MD5

J.1注册信令消息示范
J.1.1 REGISTER sip:SIP服务器编码@目的域名或IP地址端口SIP/2.0
Via: SIP/2.0/UDP 源域名或IP地址端口
From: <sip:SIP设备编码@源域名>;tag=185326220
To: <sip:SIP设备编码@源域名>
Call-ID: ms1214-322164710-681262131542511620107-0@172.18.16.3
CSeq: 1 REGISTER
Contact: <sip:SIP设备编码@源IP地址端口>
Max-Forwards: 70
Expires: 3600
Content-Length: 0

J.1.2 SIP/2.0 401 Unauthorized
To: sip:SIP设备编码@源域名
Content-Length: 0
CSeq: 1 REGISTER
Call-ID: ms1214-322164710-681262131542511620107-0@172.18.16.3
From: <sip:SIP设备编码@源域名>;tag=185326220
Via: SIP/2.0/UDP源域名或IP地址端口
WWW-Authenticate: Digest realm="64010000",nonce="6fe9ba44a76be22a"
	
J.1.3 REGISTER sip: SIP服务器编码@目的域名或IP地址端口 SIP/2.0
Via: SIP/2.0/UDP 源域名或IP地址端口
From: <sip:SIP设备编码@源域名>;tag=185326220
To: <sip:SIP设备编码@源域名>
Call-ID: ms1214-322164710-681262131542511620107-0@172.18.16.3
CSeq: 2 REGISTER
Contact: <sip:SIP设备编码@源IP地址端口>
Authorization: Digest username="64010000002020000001", realm="64010000", nonce="6fe9ba44a76be22a", uri="sip:64010000002000000001@172.18.16.5:5060", response="9625d92d1bddea7a911926e0db054968", algorithm=MD5
Max-Forwards: 70
Expires: 3600
Content-Length: 0

J.1.4 SIP/2.0 200 OK
To: <sip:SIP设备编码@源域名>;tag=69113a2a
Contact: sip:SIP设备编码@源IP地址端口
Content-Length: 0
CSeq: 2 REGISTER
Call-ID: ms1214-322164710-681262131542511620107-0@172.18.16.3
From: <sip:SIP设备编码@源域名>;tag=185326220
Via: SIP/2.0/UDP源域名或IP地址端口
Date: 2010-11-02T15:01:26.115
Expires: 3600