1 / 7

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

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

lydie
Download Presentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Agenda • SIP INVITE第一个用户 • SIP INVITE第二个用户 • SIP 第三个INVITE • SIP 发送MESSAGE消息

  3. SIP – INVITE第一个用户 目的:tom邀请第一个用户jerry加入会话 supported: 列举了UAC或UAS支持的扩展Roster-Manager: “花名册管理员” 管理一个Session的用户登记列表EndPoints: 列出当前会话中所有的接收方的SIP URI INVITE sip:192.168.1.81:2185;transport=tcp;ms-received-cid=200 SIP/2.0 contact: <sip:tom@add.ultrapower.com.cn: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=700 max-forwards: 70 from: “tom" <sip:tom@add.ultrapower.com.cn>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682 to: <sip:jerry@add.ultrapower.com.cn>;epid=e1fb65a8b3 call-id: 4517ca278efd43fa90361c0cc8949624 cseq: 1 INVITE Roster-Manager: sip:tom@add.ultrapower.com.cn EndPoints: “tom" <sip:tom@add.ultrapower.com.cn>, <sip:jerry@add.ultrapower.com.cn> supported: com.microsoft.rtc-multiparty content-type: application/sdp content-length: 133 1 SIP/2.0 100 Tryingcseq: 1 INVITE 2 SIP/2.0 200 OKcontact: <sip:panqi@add.ultrapower.com.cn:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 1 INVITEsupported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK sip:jerry@add.ultrapower.com.cn:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0from: "tom" <sip:tom@add.ultrapower.com.cn>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682 to: <sip:jerry@add.ultrapower.com.cn>;epid=e1fb65a8b3;tag=0f3997c0c7b24658812a0a565899f6bf cseq: 1 ACK content-length: 0 4

  4. SIP – INVITE第二个用户 目的:tom邀请第二个用户jerry(vikey)加入会话 require: UAC通过Require字段列出的选项标签,告知UAS处理请求时需要支持的选项Roster-Manager: 还是第一个发起会话的用户作为花名册管理员EndPoints: 列出当前会话中三方的SIP URI INVITE sip:192.168.1.80:2641;transport=tcp;ms-received-cid=400 SIP/2.0 contact: <sip:tom@add.ultrapower.com.cn:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>from: "tom" <sip:tom@add.ultrapower.com.cn>;tag=834b5a151baa44e2849acfafa5ebdd3e;epid=b048f84682 to: <sip:vicky@add.ultrapower.com.cn>;epid=0997132b14 call-id: 4517ca278efd43fa90361c0cc8949624cseq: 1 INVITERoster-Manager: sip:tom@add.ultrapower.com.cn EndPoints: "tom" <sip:tom@add.ultrapower.com.cn>, <sip:jerry@add.ultrapower.com.cn>;epid=e1fb65a8b3, <sip:vicky@add.ultrapower.com.cn> require: com.microsoft.rtc-multiparty content-type: application/sdp content-length: 133 1 SIP/2.0 100 Tryingcseq: 1 INVITE 2 SIP/2.0 200 OKcontact: <sip:vicky@add.ultrapower.com.cn:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400>cseq: 1 INVITEsupported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK sip:vicky@add.ultrapower.com.cn:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400 SIP/2.0from: "tom" <sip:tom@add.ultrapower.com.cn>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682 to: <sip:vicky@add.ultrapower.com.cn>; epid=0997132b14;tag=6dba5f858604444591dd1d626b5b1a13 cseq: 1 ACK content-length: 0 4

  5. SIP – 第三个INVITE 目的:vicky再邀请jerry加入会话 TriggeredInvite: 表明本次INVITE消息是被触发的,而不是vicky主动发起的 INVITE sip:192.168.1.81:2185;transport=tcp;ms-received-cid=200 SIP/2.0 contact: <sip:vicky@add.ultrapower.com.cn: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=400 max-forwards: 70 from: <sip:vicky@add.ultrapower.com.cn>;tag=aaa00d60672b403b8a5d799bcd1401bb;epid=0997132b14 to: <sip:jerry@add.ultrapower.com.cn>;epid=e1fb65a8b3 call-id: 4517ca278efd43fa90361c0cc8949624 cseq: 1 INVITE TriggeredInvite: TRUE require: com.microsoft.rtc-multiparty 1 SIP/2.0 100 Tryingcseq: 1 INVITE 2 SIP/2.0 200 OKcontact: <sip:jerry@add.ultrapower.com.cn:2641;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 1 INVITEsupported: com.microsoft.rtc-multiparty content-type: application/sdp 3 ACK sip:jerry@add.ultrapower.com.cn:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0from: "tom" <sip:tom@add.ultrapower.com.cn>;tag=82c18ee5fbe4429da6d5ec3653563251;epid=b048f84682 to: <sip:jerry@add.ultrapower.com.cn>;epid=e1fb65a8b3;tag=0f3997c0c7b24658812a0a565899f6bf cseq: 1 ACK content-length: 0 4

  6. SIP – 发送MESSAGE消息 目的:tom写一个message,实际上先后向vicky和jerry发送消息 MESSAGE sip:vicky@add.ultrapower.com.cn:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400 SIP/2.0 contact: <sip:tom@add.ultrapower.com.cn:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>cseq: 3 MESSAGEcontent-type: text/plain; charset=UTF-8; 1 2 SIP/2.0 200 OKcontact: <sip:vicky@add.ultrapower.com.cn:2641;maddr=192.168.1.80;transport=tcp;ms-received-cid=400>cseq: 3 MESSAGE 3 MESSAGE sip:jerry@add.ultrapower.com.cn:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200 SIP/2.0 contact: <sip:tom@add.ultrapower.com.cn:3783;maddr=192.168.1.223;transport=tcp;ms-received-cid=700>cseq: 4 MESSAGEcontent-type: text/plain; charset=UTF-8; SIP/2.0 200 OKcontact: <sip:jerry@add.ultrapower.com.cn:2185;maddr=192.168.1.81;transport=tcp;ms-received-cid=200>cseq: 4 MESSAGE 4

  7. 我们为客户交付IT运营能力

More Related