Session Initiation Protocol (SIP) Speaker: Ni-Ya Li Date: 2010/07/15
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 2018/7/23
What Is SIP? (cont’d) SIP addressing (Uniform Resource Indicator) sip:linear@ms11.voip.edu.tw (SIP-URI) SIP request methods REGISTER, {INVITE, BYE, CANCEL, ACK}, OPTIONS SIP request syntax INVITE linear@ms11.voip.edu.tw SIP/2.0 SIP response status code 100 Trying, 200 OK, 302 Moved temporarily, 403 Forbidden 2018/7/23
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 2018/7/23
SIP Call Flow (UA to UA) 2018/7/23
Three Types of Server Proxy server Registrar Redirect 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 2018/7/23
Proxy Server 2018/7/23
Redirect Server 2018/7/23
Registrar 2018/7/23
SIP Call through Proxy Server Conversation 2018/7/23
Call Forking INVITE INVITE INVITE OK CANCEL OK Conversation 2018/7/23
SIP Method - OPTIONS Determine the ability of UA 2018/7/23
SIP - Instant Message (IM) Defined in RFC 3428 MESSAGE method 2018/7/23
Review A signaling protocol use port 5060 Client/Server architecture Addressing way Response status code Six request methods Three proxies Call flow Call forking Instant message (IM) 2018/7/23
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 2018/7/23
X-Lite / Linphone Speaker: Ni-Ya Li
X-Lite 2018/7/23
Show Menu 2018/7/23
Account Setting (cont’d) 2018/7/23
Account Setting (cont’d) 2018/7/23
Account Setting (cont’d) 2018/7/23
Register Successfully 2018/7/23
Make A Call 2018/7/23
Terminate A Call 2018/7/23
Add A Contact User 2018/7/23
Add A Contact User (cont’d) 2018/7/23
Send Instant Message 2018/7/23
Send Instant Message (cont’d) 2018/7/23
Send Instant Message (cont’d) 2018/7/23
Linphone 2018/7/23
Account Setting 2018/7/23
Account Setting (cont’d) 2018/7/23
Account Setting (cont’d) 2018/7/23
Register Successfully 2018/7/23
Make A Call 2018/7/23
Terminate A Call 2018/7/23
Add A Contact User 2018/7/23
Send Instant Message 2018/7/23
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 2018/7/23
Exercise X-Lite/Linphone 擇一安裝 註冊上163.22.21.194,帳號/密碼是您的學號 開啟Wireshark,並且撥打一通電話給您隔壁的同學,由封包觀察SIP如何建立通話 同上,這次改送一則即時訊息給您隔壁的同學 2018/7/23