Hi,

As per the RFC 3261 in section 18.1.2, On receiving a Response must 
check the Sent-By field of VIA header to that of configured in Request.
Are the below sent-by params of VIA header in Request and Response are 
same? Should UA discard the response?

Request contains sent-by IP and port:
Via: SIP/2.0/UDP *172.16.8.152:5060*;rport;branch=z9hG4bK1049024051049025018

Response contains *only sent-by IP*:
Via: SIP/2.0/UDP 
*172.16.8.152*;branch=z9hG4bK1049024051049025018;received=203.76.137.3;rport=31673

RFC 3261snippet
------------------------------------------------
*Section 18.1.2 Receiving Responses*
   When a response is received, the client transport examines the top 
Via header field value. If the value of the "sent-by" parameter in that 
header field value does not correspond to a value that the  client 
transport is configured to insert into requests, the response MUST be 
silently discarded.

*Section 18.1.1 Sending Requests*
 Before a request is sent, the client transport MUST insert a value of 
the "sent-by" field into the Via header field. This field contains an IP 
address or host name, and port.  The usage of an FQDN is RECOMMENDED. 
This field is used for sending responses under certain  conditions, 
described below. If the port is absent, the default value depends on the 
transport. It is 5060 for UDP, TCP and SCTP, 5061 for TLS.

*Section 20.42 Via*
Two Via header fields are equal if their sent-protocol and sent-by 
fields are equal, both have the same set of parameters, and *the values 
of all parameters are equal*.
--------------------------------------

Thanks and Regards,
Prashanth M E
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to