1 / 28

Session Initiation Protocol (SIP)

Session Initiation Protocol (SIP). Speaker: Yuan-Po Shen Date: 2012/07/16. What Is SIP?. A signaling protocol Create, modify, terminate a multimedia session For Voice over Internet Protocol (VoIP) communication, use port 5060 Defined in RFC (Request For Comments) 3261

vivi
Télécharger la présentation

Session Initiation Protocol (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. Session Initiation Protocol (SIP) Speaker: Yuan-Po Shen Date: 2012/07/16

  2. What Is SIP? • A signaling protocol • Create, modify, terminate a multimedia session • For Voice over Internet Protocol (VoIP) communication, use port 5060 • Defined in RFC (Request For Comments) 3261 • A client-server architecture • User Agent Server (UAS) • User Agent Client (UAC) • User Agent (UA) = UAS + UAC

  3. What Is SIP? (cont’d) • SIP addressing (Uniform Resource Indicator) • sip:Sampo@10.21.21.197(SIP-URI) • sip:Sampo@[2001:e10:6840:21:20c:29ff:fe13:b1d] • SIP request methods • REGISTER, {INVITE, BYE, CANCEL, ACK}, OPTIONS • SIP request syntax • INVITE Sampo@10.21.21.197 SIP/2.0 • SIP response status code • 100 Trying, 200 OK, 302 Moved temporarily, 403 Forbidden

  4. What Is SIP (cont’d) • Work with • Session Description Protocol (SDP) • c = connection information, ex: c = IN IP4 163.22.21.194 • m = media description, ex: m = audio 7078 RTP/AVP 0 • a = media attribute, ex: a = rtpmap:0 PCMU/8000/1 • Real-time Transport Protocol (RTP) SIP SDP RTP

  5. SIP Call Flow (UA to UA)

  6. Three Types of Server • Proxy server • Accept requests/responses and forward them onward • Registrar • Provide a server with an address at which the user can be reached for SIP sessions • Redirect server • Response with a alternative contact address Can be installed on the same device

  7. Proxy Server

  8. Registrar

  9. Redirect Server

  10. SIP Call through Proxy Server Conversation

  11. Call Forking INVITE INVITE INVITE OK CANCEL OK Conversation

  12. SIP - Instant Message (IM) • Defined in RFC 3428 • MESSAGE method

  13. References • http://xms.ipv6.club.tw/xms/index.php?view=content_show&id=1015 2009 lab orientation session • Daniel Collins, “Carrier Grade Voice over IP,” McGraw-Hill, September 2002 • “Session Initiation Protocol,” IETF RFC 3261, June 2002

  14. X-Lite / Linphone

  15. X-Lite

  16. Show Menu

  17. Account Setting (cont’d)

  18. Account Setting (cont’d)

  19. Account Setting (cont’d)

  20. Register Successfully

  21. Make A Call

  22. Terminate A Call

  23. Send Instant Message

  24. Send Instant Message (cont’d)

  25. Linphone

  26. References • http://www.counterpath.com/assets/files/191/X-Lite3.0_UserGuide.pdf X-Lite user guide • http://www.linphone.org/index.php/eng/getting_started Linphone startup guide

  27. Exercises • 分別以IPv4透過X-Lite註冊以及使用IPv6透過Linphone註冊SIP Server: • IPv4:10.21.21.197 • IPv6: 2001:e10:6840:21:20c:29ff:fe13:b1d • 通話並且用Wireshark抓下封包觀察封包內容

  28. http://voip.com.ncnu.edu.tw/Summer2012/sip/oi_x-lite_win32_41_63214exe.exehttp://voip.com.ncnu.edu.tw/Summer2012/sip/oi_x-lite_win32_41_63214exe.exe • http://voip.com.ncnu.edu.tw/Summer2012/sip/linphone-3.5.2-setup.exe

More Related