[OpenSIPS-Users] RFC 3581 "received=" on via when rport present in REGISTER request

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri May 28 08:58:41 CEST 2010


Iñaki Baz Castillo wrote:
> 2010/5/27 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>   
>> Hi Bobby,
>>
>> I checked the 1.6 version, and if RPORT is required or forced (from
>> script), automatically the RECEIVED param will be added (even if the same).
>>
>> So, what version are you using? and are you sure you call the
>> "force_rport()" in script ?
>>     
>
> It's strange as per the trace it seems to be using opensips 1.6.1 but
> in fact there is no "received" in the Via (but there is "rport").
> I remember reporting this long time ago and AFAIR it was commited
> still in OpenSer.
>   
That's what I remember. Also checking the code :

    if ( msg->via1->rport || (msg->msg_flags&FL_FORCE_RPORT) ||
    received_test(msg) ) { ADD_RECEIVED }

So, received it added if rport was present in VIA, if you did 
force_rport() in script or if the IPs are different


    if ((msg->msg_flags&FL_FORCE_RPORT)||
            (msg->via1->rport )){ ADD_RPORT}

For rport, it is added if rport was present in VIA, if you did 
force_rport() in script

So, I cannot see how rport would be present without received...


Regards,
Bogdan
>
>
>   
>>> SIP/2.0 200 OK.
>>> Via: SIP/2.0/UDP 1.2.3.4;branch=z9hG4bK057bee3c;rport=16513.
>>> From: <sip:user at 1.2.3.4
>>> <mailto:sip%3Auser at 1.2.3.4>>;tag=001c58f1032e006c28023bfc-599bbfde.
>>> To: <sip:user at 1.2.3.4
>>> <mailto:sip%3Auser at 1.2.3.4>>;tag=73928404c1df6c95e5850a715820bdcb.f5a7.
>>> Call-ID: 001c58f1-032e0004-19c5f689-5971526b at 192.168.0.13
>>> <mailto:001c58f1-032e0004-19c5f689-5971526b at 192.168.0.13>.
>>> CSeq: 119 REGISTER.
>>> Contact:
>>> <sip:user at 1.2.3.4:5060;transport=udp>;expires=45;received="sip:1.2.3.4:16513
>>> <http://1.2.3.4:16513>".
>>> Server: OpenSIPS (1.6.1-notls (x86_64/linux)).
>>> Content-Length: 0.
>>>       
>
>
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list