统一资源标识符(URI)

        USI指的是统一资源标识符。SIP使用多种URI。下表列出了常用的URI。

URI 方案

用法

规范

sip

SIP

RFC 326

sips

Secure SIP

RFC 3261

tel

Telephony

RFC 3966

pres

Presence

RFC 3861

im

Instant Messaging

RFC 3861

xmpp

XMPP (Jabber)

RFC 4622

h323

H.323

RFC 3508

http

Web

RFC 7540

https

Secure Web

RFC 2818

                                                                                     SIP中常用URI

 

        SIP使用URI描述大部分地址。对于SIP,URI方案要么是普通SIP URI的sip,要么是安全SIP URI的sips。安全SIP意味着使用这个URI所发的SIP消息将使用TLS加密保护。SIP URI必须包含主机名或IP地址。通常还包含一个用户部分,虽然这不是必须的。比如说,代理服务器的URI通常就没用户部分。URI可以包含参数。下表中列出了SIP URI的可用参数。在这个表中,URI表示任意有效的URI,而URN表示任何有效的URN。

SIP URI

                                 SIP URI 参数

 

以下是一些SIP URI实例:

sip:[email protected]

sip:[email protected];transport=tcp

sip:the%20great%[email protected]

sip:[email protected]

sip:192.0.3.4:44352

sip:proxy34.sipstation.com.example.com

sip:r3.example.com;lr

sip:+43321232;[email protected]

SIP URI还可以用于对电话号码进行编码。这时候,它携带user=phone参数。

相关文章: