[Kamailio-Users] received=IP added in Via
catalina oancea
catalina.oancea at gmail.com
Fri Jul 17 14:01:10 CEST 2009
Ok if it's according to the rfc I guess I must accept it.
Thanks
Catalina
2009/7/17 Alex Balashov <abalashov at evaristesys.com>:
>
> Catalina,
>
> Klaus is right. See RFC 3261 18.2.1 ("Receiving Requests"):
>
> When the server transport receives a request over any transport, it
> MUST examine the value of the "sent-by" parameter in the top Via
> header field value. If the host portion of the "sent-by" parameter
> contains a domain name, or if it contains an IP address that differs
> from the packet source address, the server MUST add a "received"
> parameter to that Via header field value. This parameter MUST
> contain the source address from which the packet was received. This
> is to assist the server transport layer in sending the response,
> since it must be sent to the source IP address from which the request
> came.
>
> -- Alex
>
>> Hi!
>>
>> catalina oancea schrieb:
>>> No, actually the value in the received parameter is not equal to the
>>> IP in the Via. I looked in the code and this seems to be the intended
>>> behavior. It would be nice to be able to disable it, but I don't think
>>> there is one.
>>
>> Then it is standard conform. If the request is received from a different
>> address then advertised, this parameter must be added.
>>
>> This is because SIP requires to send the response to the IP address from
>> which the request was received.
>>
>> regards
>> klaus
>>
>>>
>>> Thanks anyway
>>> Catalina
>>>
>>>
>>> 2009/7/16 Klaus Darilion <klaus.mailinglists at pernau.at>:
>>>> catalina oancea wrote:
>>>>> Form what I found in
>>>>> http://lists.kamailio.org/pipermail/devel/2008-August/015080.html, it
>>>>> seems to me that it's a bug that kamailio adds received=IP parameter
>>>>> although force_rport was not called.
>>>> The bug was something else.
>>>>
>>>>>> Does anybody know how to disable the received=IP Via parameter that
>>>>>> is
>>>>>> added by default from kamailio? For the case I want to disable it in,
>>>>>> I have no NAT handling. Also, I have:
>>>>>> dns=no
>>>>>> rev_dns=no
>>>>
>>>> In this case "received" will only be added if the advertised IP is
>>>> different
>>>> than the IP from which the request was received. (according to RFC).
>>>>
>>>> So, you do not use rport but kamailio adds the received parameter and
>>>> the
>>>> value in the received parameter is identical to the IP in the Via?
>>>>
>>>> regards
>>>> klaus
>>>>
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Alex Balashov
> Evariste Systems
> Web : http://www.evaristesys.com/
> Tel : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
> Mobile : (+1) (678) 237-1775
>
>
>
More information about the Users
mailing list