Audiocodec
Audiocodec
Audiocodec
Request
UAC Response UAS
Request
UAS Response
UAC
Basic SIP Call Flow
100 Trying
Ringing
180 Ringing
Ringback
200 OK (SDP) Off-hook
ACK
RTP / RTCP
On-hook BYE
200 OK
Basic Call
SIP Requests
Method Description
Used by UA to notify of its current IP address and the URI for which it
REGISTER
would like to receive calls
SIP Requests (cont.)
Method Description
Informational Redirection
Indicates status of call prior to Server has returned possible locations.
completion The client should retry request at
100 Trying another server.
180 Ringing 300 Multiple Choices
181 Call is being forwarded 301 Moved Permanently
182 Call Queued 302 Moved Temporarily
183 Session Progress 380 Alternative Service
Success
Request has succeeded
200 OK
202 Accepted
SIP Responses (cont.)
The request has failed due to an error The request has failed due to an error by
by the client. The client may retry the the server. The request may be
request if reformulated according to retried at another server.
response.
500 Server Internal Error
400 Bad Request 501 Not Implemented
401 Unauthorized 502 Bad Gateway
403 Forbidden 503 Service Unavailable
404 Not Found
405 Method not Allowed
Global Failure
407 Proxy Authentication Required
415 Unsupported Media The request has failed. The request
486 Busy Here should not be tried again at this or other
servers.
600 Busy Everywhere
603 Decline
604 Doesn’t Exist Anywhere
606 Not Acceptable
SIP Addressing
Responses
Header Description
Call-ID The Call-ID uniquely identifies a particular dialog between two UAs
Contains the name and the address of the originator of the request. Also
From
contains a tag, used to identify a particular call
v=0
o=AudiocodesGW 1725394110 1725393989 IN IP4 10.33.6.100
s=Phone-Call
c=IN IP4 10.33.6.100
t=0 0
m=audio 6000 RTP/AVP 8 96
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
a=sendrecv
INVITE
v=0
o=AudiocodesGW 1725394110 1725393989 IN IP4 10.33.6.100
s=Phone-Call
c=IN IP4 10.33.6.100
t=0 0
m=audio 6000 RTP/AVP 8 96
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
a=sendrecv
200 OK
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.33.6.100;branch=z9hG4bKac1725404454
From: <sip:[email protected]>;tag=1c1725402038
To: <sip:[email protected];user=phone>;tag=1c1534094691
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]>
Supported: em,timer,replaces,path,resource-priority
Server: Audiocodes-Sip-Gateway-MP-118 FXS_FXO/v.5.00A.043.001
Content-Type: application/sdp
Content-Length: 260
v=0
o=AudiocodesGW 1534112064 1534111943 IN IP4 10.33.6.101
s=Phone-Call
c=IN IP4 10.33.6.101
t=0 0
m=audio 6000 RTP/AVP 8 96
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
a=sendrecv
PRACK
PRACK
Early Media
Early Media
SIP Servers - Proxy
Media Session
SIP Servers - Registrar
SIP Registration
Call Flow with Proxy
SIP Proxy
SIP UA SIP UA
INVITE (SDP)
100 Trying
INVITE (SDP)
100 Trying
180 Ringing
180 Ringing
200 OK (SDP)
200 OK (SDP)
ACK
ACK
RTP / RTCP
BYE BYE
Call via Proxy
200 OK
200 OK
Chapter 2 – Student Notes