[OpenSIPS-Users] "received=" parameter in Via
Alex Massover
alex at jajah.com
Wed Aug 13 09:26:13 CEST 2008
Hi Bogdan!
You wrote: "So, received is mandatory only if rport is present."
The issue is when rport is present and IP address is identical to the IP in Via, OpenSIPS doesn't add "received".
--
Best Regards,
Alex Massover
VoIP R&D TL
Jajah Inc.
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
Sent: Wednesday, August 13, 2008 12:26 AM
To: Alex Massover
Cc: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] "received=" parameter in Via
Hi Alex,
My understanding of the text
"In fact, the server MUST insert a "received" parameter
containing the source IP address that the request came from, even if
it is identical to the value of the "sent-by" component. "
is related to
"If this Via header field value contains an "rport" parameter"
So, received is mandatory only if rport is present .
Regards,
Bogdan
Alex Massover wrote:
> Hi!
>
> OpenSIPS implement this logic:
>
> /* Via special params:
> * requests:
> * - if the address in via is different from the src_ip or an existing
> * received=something is found, received=src_ip is added (and any preexisting
> * received is deleted). received is added as the first via parameter if no
> * receive is previously present or over the old receive.
>
>
> But RFC 3581 says that:
> 4. Server Behavior
> The server behavior specified here affects the transport processing
> defined in Section 18.2 of SIP [1].
> When a server compliant to this specification (which can be a proxy
> or UAS) receives a request, it examines the topmost Via header field
> value. If this Via header field value contains an "rport" parameter
> with no value, it MUST set the value of the parameter to the source
> port of the request. This is analogous to the way in which a server
> will insert the "received" parameter into the topmost Via header
> field value. In fact, the server MUST insert a "received" parameter
> containing the source IP address that the request came from, even if
> it is identical to the value of the "sent-by" component. Note that
> this processing takes place independent of the transport protocol.
>
> As far as I understand it means that "received" should be added always.
>
>
> I'm trying to understand what is the reason for not adding "received" when ip address in Via is the same like src_ip?
>
> --
> Best Regards,
> Alex Massover
>
>
>
>
>
> ************************************************************************************
> This footnote confirms that this email message has been scanned by
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
> ************************************************************************************
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
More information about the Users
mailing list