Explaination of 180 ringing message in sip

4.4k views Asked by At

When Alice places a call to Bob, Bob sends a 180 ringing message to Alice. Then why does the from field contains the uri of Alice and to field contains the uri of Bob? I am referring to the RFC 3261.

F2 180 Ringing Bob -> Alice

SIP/2.0 180 Ringing

Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74bf9 ;received=192.0.2.101

From: Alice ;tag=9fxced76sl

To: Bob ;tag=8321234356

Call-ID: [email protected]

CSeq: 1 INVITE

Contact:

Content-Length: 0

3

There are 3 answers

0
Sherlin Swetha On BEST ANSWER

According to RFC 3261, From Header identifies the originator of the REQUEST. To Header indicates the recipient of the REQUEST. And so, there wont be any change in From and To headers while Response is received.

0
Artemy Vysotsky On

The same RFC contains the answer

8.2.6.2 Headers and Tags

The From field of the response MUST equal the From header field of the request. The Call-ID header field of the response MUST equal the Call-ID header field of the request. The CSeq header field of the response MUST equal the CSeq field of the request. The Via header field values in the response MUST equal the Via header field values in the request and MUST maintain the same ordering.

If a request contained a To tag in the request, the To header field in the response MUST equal that of the request. However, if the To header field in the request did not contain a tag, the URI in the To header field in the response MUST equal the URI in the To header field; additionally, the UAS MUST add a tag to the To header field in the response (with the exception of the 100 (Trying) response, in which a tag MAY be present). This serves to identify the UAS that is responding, possibly resulting in a component of a dialog ID. The same tag MUST be used for all responses to that request, both final and provisional (again excepting the 100 (Trying)). Procedures for the generation of tags are defined in Section 19.3.

0
Srikar Beechu On

I am no expert but my understanding is that, 180 ringing message headers contain from of Alice and to of Bob because it is a ring back, i.e if we place a call to person x, first we see there is a trying (signal searching/finding the callee), once the callee is in the signal range then you hear a ringing which according to me is the 180 ring back sent from callee signal to us to notify. However, as someone mentioned above it is still the from must be Alice and to must be Bob, as communication initiated was from Alice to Bob.

Kindly correct me if my answer is wrong.