100% found this document useful (1 vote)
1K views4 pages

Difference Between SIP REFER and (RE) INVITE

The REFER method is used to transfer a call to a third party, while the INVITE method is used to change session media information, such as placing a call on hold or retrieving a held call. Specifically, REFER transfers a call by having the transferring party send a REFER request with information about the third party to the transferred-to party. INVITE changes session parameters by having one party send an INVITE to the other with updated session description protocol (SDP) information specifying the desired media configuration, such as changing from sendrecv to sendonly to place a call on hold.

Uploaded by

SK_shivam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views4 pages

Difference Between SIP REFER and (RE) INVITE

The REFER method is used to transfer a call to a third party, while the INVITE method is used to change session media information, such as placing a call on hold or retrieving a held call. Specifically, REFER transfers a call by having the transferring party send a REFER request with information about the third party to the transferred-to party. INVITE changes session parameters by having one party send an INVITE to the other with updated session description protocol (SDP) information specifying the desired media configuration, such as changing from sendrecv to sendonly to place a call on hold.

Uploaded by

SK_shivam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Difference between SIP REFER and (RE)INVITE

What is this and when it is used? When I started working in SIP environment, it was
confusing to me, as well.

But after reading RFC3261, it became clear to me. Simply said, REFER method is used for
transferring a call and INVITE is used to change session media information.

Refer to the example below to understand it more clearly.

REFER – Example

Suppose Alice and Bob are on call and Alice wants to transfer call to Carol, Alice will send
REFER to Bob with Carol information.
REFER sips:bob@client.biloxi.example.com SIP/2.0
Via: SIP/2.0/TLS client.biloxi.example.com:506;branch=z9hG4bKnashds8
Max-Forwards: 70
From: Alice <sips:alice@atlanta.example.com>;tag=1234567
To: Bob <sips:bob@biloxi.example.com>;tag=314159
Call-ID: 12345601@atlanta.example.com
CSeq: 101 REFER
Refer-To: <sips:carol@chicago.example.com>
Referred-By: <alice@atlanta.example.com>
Contact: <sips:alice@client.atlanta.example.com>
Content-Length: 0

(RE)INVITE – Example

If Bob wants to session media information, then INVITE is sent again with updated
information. Consider, call on hold as an example for this.

In this scenario, Alice calls Bob, then Bob places the call on hold.Bob then takes the call off
hold, then Alice hangs up the call.
F1 INVITE Alice -> Proxy 1

      INVITE sips:bob@biloxi.example.com SIP/2.0


      Via: SIP/2.0/TLS client.atlanta.example.com:5061;branch=z9hG4bK74bf9
      Max-Forwards: 70
      From: Alice <sips:alice@atlanta.example.com>;tag=1234567
      To: Bob <sips:bob@biloxi.example.com>
      Call-ID: 12345601@atlanta.example.com
      CSeq: 1 INVITE
      Contact: <sips:alice@client.atlanta.example.com>
      Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
      Supported: replaces
      Content-Type: application/sdp
      Content-Length: ...
      v=0
      o=alice 2890844526 2890844526 IN IP4 client.atlanta.example.com
      s=
      c=IN IP4 client.atlanta.example.com
      t=0 0
      m=audio 49170 RTP/AVP 0
      a=rtpmap:0 PCMU/8000

F10 INVITE Bob -> Proxy 1


INVITE sips:alice@client.atlanta.example.com SIP/2.0
Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashds7
Route: <sips:ss1.example.com;lr>
Max-Forwards: 70
From: Bob <sips:bob@biloxi.example.com>;tag=314159
To: Alice <sips:alice@atlanta.example.com>;tag=1234567
Call-ID: 12345601@atlanta.example.com
CSeq: 1 INVITE
Contact: <sips:bob@client.biloxi.example.com>;+sip.rendering="no"
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: ...

v=0
o=bob 2890844527 2890844528 IN IP4 client.biloxi.example.com
s=
c=IN IP4 client.biloxi.example.com
t=0 0
m=audio 3456 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=sendonly

Here, you can see Bob changed SDP session attribute as ‘sendonly’ to place the call on hold
and to retrieve the call, this will be changed to ‘sendrecv’.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy