|
|
|
|
|
|
INVITE SIP:UAB@example.com SIP/2.0 Via: SIP/2.0/UDP 10.20.30.40:5060 From: UserA <SIP:UAA@example.com>;tag=589304 To: UserB <SIP:UAB@example.com> Call-ID: 8204589102@example.com CSeq: 1 INVITE Contact: <SIP:UserA@10.20.30.40> Content-Type: application/sdp Content-Length: 141 v=0 o=UserA 2890844526 2890844526 IN IP4 10.20.30.40 s=Session SDP c=IN IP4 10.20.30.40 t=3034423619 0 m=audio 49170 RTP/AVP 0 a=rtpmap:0 PCMU/8000
SIP/2.0 200 OK Via: SIP/2.0/UDP pc33.atlanta.com ;branch=z9hG4bKhjhs8ass877;received=192.0.2.4 To: <sip:carol@chicago.com>;tag=93810874 From: Alice <sip:alice@atlanta.com>;tag=1928301774 Call-ID: a84b4c76e66710 CSeq: 63104 OPTIONS Contact: <sip:carol@chicago.com> Contact: <mailto:carol@chicago.com> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE Accept: application/sdp Accept-Encoding: gzip Accept-Language: en Supported: foo Content-Type: application/sdp Content-Length: 274 [sdp payload deleted]
1. ACK - confirm responses.
2. BYE - leave a session.
3. CANCEL - abandon request.
4. INVITE - initiate a session.
5. OPTIONS - information access.
6. REGISTER - bind party data.
Call-ID - identify a session.
CSeq - order SIP messages within a call.
VIA - hop-by-hop message route.
Supported - extensions provided by SIP server.
Require - extensions needed by session.
INFO - session information (rfc 2976).
PRACK - provisional acknowledgment (rfc 3262).
SUBSCRIBE - register interest in events (rfc 3265).
NOTIFY - event-occurrence notification (rfc 3265).
UPDATE - session set-up data (rfc 3311).
MESSAGE - instant messaging (rfc 3428).
REFER - forward to another server (rfc 3515).
sip:user:password@host:port;uri-parameters?headers
sip
- protocol
user - user name or number, optional.
password - optional, depricated.
host - user home (SIP domain locaton).
port - user agent port, optional.
uri-parameters - optional
headers - header fields, optional.
sip:alice@atlanta.com sip:alice@192.0.2.4 sip:alice:secretword@atlanta.com;transport=tcp sips:alice@atlanta.com?subject=Help&priority=urgent sip:+1-212-555-1212:1234@gateway.com;user=phone sips:1212@gateway.com sip:atlanta.com;method=REGISTER?to=bob%40atlanta.com