7
SIP SIP 多多多多多多 多多多多多多 多多多多多 多多多多多 多 多 多 多 2005-05 2005-05 多多多多多多多 多多多多多多多 多多多多 多多多多 http://www.ultrapower.com.cn http://www.ultrapower.com.cn

SIP 多方会话消息 之实例讲解

  • Upload
    lydie

  • View
    180

  • Download
    1

Embed Size (px)

DESCRIPTION

SIP 多方会话消息 之实例讲解. 郑 昀 2005-05 应用开发事业部 神州泰岳 http://www.ultrapower.com.cn. Agenda. SIP INVITE 第一个用户 SIP INVITE 第二个用户 SIP 第三个 INVITE SIP 发送 MESSAGE 消息. SIP – INVITE 第一个用户. 目的: tom 邀请第一个用户 jerry 加入会话 - PowerPoint PPT Presentation

Citation preview

Page 1: SIP 多方会话消息 之实例讲解

SIPSIP 多方会话消息多方会话消息之实例讲解之实例讲解郑 昀郑 昀2005-052005-05应用开发事业部应用开发事业部神州泰岳神州泰岳http://www.ultrapower.com.cnhttp://www.ultrapower.com.cn

Page 2: SIP 多方会话消息 之实例讲解

AgendaAgenda SIP INVITESIP INVITE 第一个用户第一个用户 SIP INVITESIP INVITE 第二个用户第二个用户 SIP SIP 第三个第三个 INVITEINVITE SIP SIP 发送发送 MESSAGEMESSAGE 消息消息

Page 3: SIP 多方会话消息 之实例讲解

SIP – INVITESIP – INVITE 第一个用户第一个用户INVITE sip:192.168.1.81:2185;transport=tcp;ms-received-cid=200 SIP/2.0contact: <sip:[email protected]:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>via: SIP/2.0/TCP 192.168.1.223:9468;ms-received-port=3783;ms-received-cid=700max-forwards: 70from: “tom" <sip:[email protected]>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682to: <sip:[email protected]>;epid=e1fb65a8b3call-id: 4517ca278efd43fa90361c0cc8949624cseq: 1 INVITERoster-Manager: sip:[email protected]: “tom" <sip:[email protected]>, <sip:[email protected]>supported: com.microsoft.rtc-multipartycontent-type: application/sdpcontent-length: 133

目的: tom 邀请第一个用户 jerry 加入会话supported: 列举了 UAC 或 UAS 支持的扩展Roster-Manager: “ 花名册管理员” 管理一个 Session 的用户登记列表EndPoints: 列出当前会话中所有的接收方的 SIP URI

11SIP/2.0 100 Tryingcseq: 1 INVITE

22

Tom Jerry

SIP/2.0 200 OKcontact: <sip:[email protected]:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 1 INVITEsupported: com.microsoft.rtc-multipartycontent-type: application/sdp 33ACK sip:[email protected]:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0from: "tom" <sip:[email protected]>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682to: <sip:[email protected]>;epid=e1fb65a8b3;tag=0f3997c0c7b24658812a0a565899f6bfcseq: 1 ACKcontent-length: 0

44

Page 4: SIP 多方会话消息 之实例讲解

SIP – INVITESIP – INVITE 第二个用户第二个用户INVITE sip:192.168.1.80:2641;transport=tcp;ms-received-cid=400 SIP/2.0contact: <sip:[email protected]:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>from: "tom" <sip:[email protected]>;tag=834b5a151baa44e2849acfafa5ebdd3e;epid=b048f84682to: <sip:[email protected]>;epid=0997132b14call-id: 4517ca278efd43fa90361c0cc8949624cseq: 1 INVITERoster-Manager: sip:[email protected]: "tom" <sip:[email protected]>, <sip:[email protected]>;epid=e1fb65a8b3, <sip:[email protected]>require: com.microsoft.rtc-multipartycontent-type: application/sdpcontent-length: 133

目的: tom 邀请第二个用户 jerry(vikey) 加入会话require: UAC 通过 Require 字段列出的选项标签,告知 UAS 处理请求时需要支持的选项Roster-Manager: 还是第一个发起会话的用户作为花名册管理员EndPoints: 列出当前会话中三方的 SIP URI

11SIP/2.0 100 Tryingcseq: 1 INVITE

22

Tom

SIP/2.0 200 OKcontact: <sip:[email protected]:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400>cseq: 1 INVITEsupported: com.microsoft.rtc-multipartycontent-type: application/sdp 33ACK sip:[email protected]:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400 SIP/2.0from: "tom" <sip:[email protected]>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682to: <sip:[email protected]>; epid=0997132b14;tag=6dba5f858604444591dd1d626b5b1a13cseq: 1 ACKcontent-length: 0

Vicky

44

Page 5: SIP 多方会话消息 之实例讲解

SIP – SIP – 第三个第三个 INVITEINVITE

INVITE sip:192.168.1.81:2185;transport=tcp;ms-received-cid=200 SIP/2.0contact: <sip:[email protected]:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400>via: SIP/2.0/TCP 192.168.1.80:8426;ms-received-port=2641;ms-received-cid=400max-forwards: 70from: <sip:[email protected]>;tag=aaa00d60672b403b8a5d799bcd1401bb;epid=0997132b14to: <sip:[email protected]>;epid=e1fb65a8b3call-id: 4517ca278efd43fa90361c0cc8949624cseq: 1 INVITETriggeredInvite: TRUErequire: com.microsoft.rtc-multiparty

目的: vicky 再邀请 jerry 加入会话TriggeredInvite: 表明本次 INVITE 消息是被触发的,而不是 vicky 主动发起的

11SIP/2.0 100 Tryingcseq: 1 INVITE

22SIP/2.0 200 OKcontact: <sip:[email protected]:2641;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 1 INVITEsupported: com.microsoft.rtc-multipartycontent-type: application/sdp 33ACK sip:[email protected]:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0from: "tom" <sip:[email protected]>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682to: <sip:[email protected]>;epid=e1fb65a8b3;tag=0f3997c0c7b24658812a0a565899f6bfcseq: 1 ACKcontent-length: 0

VickyJerry

44

Page 6: SIP 多方会话消息 之实例讲解

SIP – SIP – 发送发送 MESSAGEMESSAGE 消息消息MESSAGE sip:[email protected]:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400 SIP/2.0contact: <sip:[email protected]:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>cseq: 3 MESSAGEcseq: 3 MESSAGEcontent-type: text/plain; charset=UTF-8;

目的: tom 写一个 message ,实际上先后向 vicky 和 jerry 发送消息

SIP/2.0 200 OKcontact: <sip:[email protected]:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400>cseq: 3 MESSAGEcseq: 3 MESSAGE

Jerry

Vicky1122

33 MESSAGE sip:[email protected]:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0contact: <sip:[email protected]:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>cseq: 4 MESSAGEcseq: 4 MESSAGEcontent-type: text/plain; charset=UTF-8;

44

SIP/2.0 200 OKcontact: <sip:[email protected]:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 4 MESSAGEcseq: 4 MESSAGE

Tom

Page 7: SIP 多方会话消息 之实例讲解

我们为客户交付我们为客户交付 ITIT 运营能运营能力 力