SIP Server Ѻ椹Ҩ йʹͧǡѺ SIP Server š¹ Ѻ÷ʹҡҤ š¹ʺóҡ÷ӧҹ ѭҵҧ

SIP was originally designed by Henning Schulzrinne and Mark Handley in 1996. In November 2000, SIP was accepted as a 3GPP signaling protocol and permanent component of the IP Multimedia Subsystem (IMS) design for IP-based streaming multimedia services in cellular systems. the most recent version of the specification is RFC 3261 from the IETF Network operating cluster printed in June 2002.

The free software community started[when?] to produce a lot of and a lot of of the SIP technology needed to create each finish points similarly as proxy and registrar servers resulting in a commodification of the technology, that has accelerated world adoption. As an example, the open supply community at SIPfoundry actively develops a range of SIP stacks, shopper applications and SDKs, additionally to entire non-public branch exchange (IP PBX) solutions that compete within the market against principally proprietary IP PBX implementations from established vendors.

The National Institute of Standards and Technology (NIST), Advanced Networking Technologies Division provides a public domain implementation of the JAVA commonplace for SIP[4] that is a reference implementation for the quality. The stack will work in proxy server or user agent situations and has been utilized in various industrial and analysis comes. It supports RFC 3261 in full and variety of extension RFCs as well as RFC 3265 (Subscribe / Notify) and RFC 3262 (Provisional Reliable Responses) etc.

SIP  text-based protocol 㹡ҧҧ褹ͧҹ͢ (call setup & signaling) µѹͧ stateless (㹢зⵤҧ H.323  stateful դѺ͹) ҧ SIP  㹡 initiate session 㹡մͧ͢ 㹡ҧ͹๤ҧõѾ ͧҡ SIP ⵤдѺ application layer (ͧͧ OSI Network Stack) ѹö麹 network/transport protocol   ҹǻ ( TCP  UDP) ҹк͢Ͷ 

 SIP ੾Скͧҹ ͵ Ѻ觢šѹѧ䧵 Ѻⵤ蹷ͧա ǹǡѺ SIP



SIP ⵤŷ Create, Modify  Terminate Session 㹡õԴ աù Internet Telephone Call, Multimedia Distribution,  Multimedia Conference ⵤŹ͡Ẻ Henning Schulzrinne ҡԷ Mark Handley ҡԷ͹͹㹻 1996 (..2539) ͹Ȩԡ¹ 2000 (..2543) ѺѺҡ 3GPP Сǹ˹觢ͧʶһѵ¡ IMS (IP Multimedia Subsystem), Voice over IP ֧ H.323  

IMS ǤԴǡѺʶһѵ¡ͧԡ IP Multimedia  ǹ˹㹡þѲ͢Ͷͧ͢ GSM Ҩҡ 3GPP R5 ʹԸ Internet Services ҹ GPRS աûѺا 3GPP, 3GPP2,  TISPAN ͺ֧ Wireless LAN, CDMA2000,  Fix Line ¹ⵤŢͧ IETF   SIP

SIP ѡɳз令

Ҵ С˹ԸյԴ§ 6 ԸŴѺ͹
դ öҹѺ UDP, TCP, ATM   
繢ͤöҹ
͡Ẻⵤ

SIP client  TCP  UDP  5060 ͡Ѻ SIP server  SIP    SIP Ѻ駤¡ԡ Voice  Video call öѺҹѺк蹷ͧԴ Session ֧ Event Subscription  Notification  Ҿ§öⵤ Session ͡ҡѹ  RTP (Real-time Transport Protocol)

RTP ˹ٻẺ packet 㹡Ҿ§ҹԹ ١Ѳ Audio-Video Transport Working Group ͧ IETF վá㹻 1996 (..2539)  RTP վ TCP  UDP ҵðҹ㹡  UDP Ţ㹡о UDP ŢѴ RTP Control Protocol (RTCP) Ţѡҧ 16384-32767 RTP öѺ觢áẺ real-time  Ҿ§ ⵤ SIP 㹡õ駤¡ԡ

SIP ⵤŷѭҳе駤к IP öҹѺкѾ PSTN (Public Switched Telephone Network)  ҵðҹ SIP к SIP §ҧѭҳе駤 ҧá SIP öҹк͢  Proxy Server  User Agent 觨͹Ѻ÷ӧҹͧѾ  ع, Ѿ·ҧ§, ѧ§ͺѺѭҳҧ

SIP кѾդö㹢鹵͹͡ҡ ҡ Signalling System 7 (SS7)  SS7 ⵤŷٹ, ѺкٹѺ͹, ҹѺͧ١· (Ѿҹ) SIP ⵤẺ Peer-to-Peer Ѻ͢·Ѻ͹ͧ١դö٧

 VoIP ⵤѭҳ  SIP ҧͧѡ㹡Ẻ IP ҡкäҤ SIP ҵðҹͧ IETF з H.323 ⵤŢͧ ITU 觷ͧͧáõԡѹ

SIP öӧҹѺⵤ¨ҧѭҳ Session ͧõԴ SIP зӧҹ繾Тͧ Session Description Protocol (SDP) ͸Ժ´ͧҷ  Ţ쵷, Codec ͧ

SIP Ф¡Ѻ HTTP  Ѻ觢ҷҹ, ʺ͡ʶҹШФ  ѹ ҧ SIP ⵤẺ stateless öǨͺԴҴöҡⵤẺ stateful ⵤẺ stateless 觤ҧ ͧʹҤ觡͹˹Ҥͤ 㹢зⵤẺ stateful еͧաúѹ֡ʶҹСš¹ʹ

ǹСͺͧ͢ SIP

Hardware ͹ѺѾҹ  SIP  RTP 㹡 ҧк Electronic Numbering (ENUM)  DUDi 㹡ŧŢѾ SIP Address ¡ SIP к͢

ҧ㹻Ѩغѹ SIP   Microsoft Windows Messenger, iChat AV, AIM ͧ Apple  SIP  Proxy ػó͢ͷӧҹẺ peer-to-peer ͹к

SIP Request

RFC 3261 (SIP)  6 Ẻ 

INVITE  client ͧҧ session ͵Դ
ACK  client ѺõͺѺҡ INVITE ҷ˹
BYE ͵ͧش 觼мѺö͹ѹ
CANCEL صԡä ö¡ԡ·Ѻ
OPTIONS ǨͺسѵԢͧ Server
REGISTER к Address ͧ To  SIP Server
RFC 3262 Ͷ㹡õͺѺͧ SIP

PRACK
RFC 3265 

SUBSCRIBE  Event ͧ Notification ҡ
NOTIFY ˵ءó
SIP Response

1xx šõͺѺ

100 ѧ
180 ѧ¡ (ring)
181 ѧ forward
182 ѧҤ
183 ׺˹Ңͧ session
2xx ѺõͺѺ

200 OK
202 ŧ
3xx Redirect

300 µ͡
301 繡ö
302 繡êǤ
305  Proxy
380 ԡ
4xx õͺѺ

400  Request ١ͧ
401 ѺԷ Ѻ registrar ҹ ǹ Proxy  407
402 ͧԹ (ʧǹ͹Ҥ)
403 ͹
404 辺 ռ͹
405 ͹حҵԸչ
406 öѺ
407 ѺԷԨҡ Proxy
408  öҼҷ˹
410 öԴͼ  ҹ
413  Request Թ
414 Request-URI Թ
416 ʹѺʹع URI Ẻ
420 Server ⤵ SIP 
421 ͧâ
423 ǧҹԹ
479 ö URI 
480 ԴԡêǤ
481 Դ
482 Դǹ loop
483 ҡԹ
484 Address ١ͧ
485 Ѻʹ
486 ҧ
487 صԡͧ
488 Ѻ
489 ˵ءó١ͧ
491 صԡͧ
493 ١ öʹ S/MIME 
494 ͧäʹ
5xx server ջѭ

500 server ջѭ
501 ѧԴԸչ
502 Gateway ١ͧ
503 öԡ
504 ҵԴ Server
505 Server ʹѺʹع⤵ SIP 蹹
513 ͤԹ
6xx 

600 觵ʹ
603 Ѻ
604 ʹ
606 Ѻ
  

INFO 觢 Session State
REFER Ѻ call transfer
MESSAGE ͤͧ
UPDATE 觢 Session State ¹ʶҹС÷ӧҹ
ҧ SIP Request

REGISTER sip: seberino@switch-2.nufone.net SIP/2.0
Via: SIP/2.0/UDP 66.159.194.51:5060
CSeq: 3363 REGISTER
To: sip: seberio@switch-2.nufone.net 
Expires: 900
Call-ID: 401507385@66.159.194.51 
User-Agent: Shtoom/0.3alpha0
Contact: <sip: seberino@66.159.194.51 :5060>
Contact-Length: 0

ҧ Perl

use Net::SIP; 
 
  # create new agent 
  my $ua = Net::SIP::Simple->new( 
                outgoing_proxy => '192.168.0.10', 
                registrar => '192.168.0.10', 
                domain => 'example.com', 
                from => 'me', 
                auth => [ 'me','secret' ], 
  ); 
 
  # Register agent 
  $ua->register; 
 
  # Invite other party, send anncouncement once connected 
  $ua->invite( 'you', 
                init_media => $ua->rtp( 'send_recv', 'announcement.pcmu-8000' ), 
                asymetric_rtp => 1, 
  ); 
 
  # Mainloop 
  $ua->loop;