Download presentation
Presentation is loading. Please wait.
Published byRosalyn Willis Modified 5年之前
1
郑 昀 2005-05 应用开发事业部 神州泰岳 http://www.ultrapower.com.cn
SIP多方会话消息 之实例讲解 郑 昀 应用开发事业部 神州泰岳
2
Agenda SIP INVITE第一个用户 SIP INVITE第二个用户 SIP 第三个INVITE SIP 发送MESSAGE消息
3
SIP – INVITE第一个用户 目的:tom邀请第一个用户jerry加入会话 1 2 3 4
supported: 列举了UAC或UAS支持的扩展 Roster-Manager: “花名册管理员” 管理一个Session的用户登记列表 EndPoints: 列出当前会话中所有的接收方的SIP URI INVITE sip: :2185;transport=tcp;ms-received-cid=200 SIP/2.0 contact: via: SIP/2.0/TCP :9468;ms-received-port=3783;ms-received-cid=700 max-forwards: 70 from: “tom" to: call-id: 4517ca278efd43fa90361c0cc cseq: 1 INVITE Roster-Manager: EndPoints: “tom" supported: com.microsoft.rtc-multiparty content-type: application/sdp content-length: 133 1 SIP/ Trying cseq: 1 INVITE 2 SIP/ OK contact: cseq: 1 INVITE supported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK SIP/2.0 from: "tom" to: cseq: 1 ACK content-length: 0 4
4
SIP – INVITE第二个用户 目的:tom邀请第二个用户jerry加入会话 1 2 3 4
require: UAC通过Require字段列出的选项标签,告知UAS处理请求时需要支持的选项 Roster-Manager: 还是第一个发起会话的用户作为花名册管理员 EndPoints: 列出当前会话中三方的SIP URI INVITE sip: :2641;transport=tcp;ms-received-cid=400 SIP/2.0 contact: from: "tom" to: call-id: 4517ca278efd43fa90361c0cc cseq: 1 INVITE Roster-Manager: EndPoints: "tom" require: com.microsoft.rtc-multiparty content-type: application/sdp content-length: 133 1 SIP/ Trying cseq: 1 INVITE 2 SIP/ OK contact: cseq: 1 INVITE supported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK SIP/2.0 from: "tom" to: epid= b14;tag=6dba5f dd1d626b5b1a13 cseq: 1 ACK content-length: 0 4
5
SIP – 第三个INVITE 目的:vicky再邀请jerry加入会话 1 2 3 4
TriggeredInvite: 表明本次INVITE消息是被触发的,而不是vicky主动发起的 INVITE sip: :2185;transport=tcp;ms-received-cid=200 SIP/2.0 contact: via: SIP/2.0/TCP :8426;ms-received-port=2641;ms-received-cid=400 max-forwards: 70 from: to: call-id: 4517ca278efd43fa90361c0cc cseq: 1 INVITE TriggeredInvite: TRUE require: com.microsoft.rtc-multiparty 1 SIP/ Trying cseq: 1 INVITE 2 SIP/ OK contact: cseq: 1 INVITE supported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK SIP/2.0 from: "tom" to: cseq: 1 ACK content-length: 0 4
6
SIP – 发送MESSAGE消息 目的:tom写一个message,实际上先后向vicky和jerry发送消息 1 2 3 4
MESSAGE SIP/2.0 contact: cseq: 3 MESSAGE content-type: text/plain; charset=UTF-8; 1 2 SIP/ OK contact: cseq: 3 MESSAGE 3 MESSAGE SIP/2.0 contact: cseq: 4 MESSAGE content-type: text/plain; charset=UTF-8; SIP/ OK contact: cseq: 4 MESSAGE 4
7
我们为客户交付IT运营能力
Similar presentations