[OpenSIPS-Devel] [ opensips-Bugs-3415264 ] recieved=x.x.x.x added to wrong via header

SourceForge.net noreply at sourceforge.net
Thu Sep 29 15:33:59 CEST 2011


Bugs item #3415264, was opened at 2011-09-29 11:39
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3415264&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Morten Tryfoss (mtryfoss)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: recieved=x.x.x.x added to wrong via header

Initial Comment:
Hi!

It seems like 'recived' is added to the wrong header when the dialog contains multiple comma separated Via-headers. It's just appended to the end of the line.

Example:
Via: SIP/2.0/TCP 10.3.8.20:5060;branch=z9hG4bK0440914511a92062ea12e98d4, SIP/2.0/TCP 10.3.8.19:5062;branch=z9hG4bKaad385d13b702b61ee38b3118;rport=4108;received=80.239.13.209

The correct would be:
Via: SIP/2.0/TCP 10.3.8.20:5060;branch=z9hG4bK0440914511a92062ea12e98d4;rport=4108;received=80.239.13.209, SIP/2.0/TCP 10.3.8.19:5062;branch=z9hG4bKaad385d13b702b61ee38b3118

It's working ok when you have one Via pr line:
Via: SIP/2.0/UDP 172.50.1.8;branch=z9hG4bK6257.ce0c3755.0;i=1;received=85.19.212.117
Via: SIP/2.0/TCP 172.50.1.9:5060;received=172.50.1.9;branch=z9hG4bK397aee9f;rport=39350

Regards,
Morten Tryfoss

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2011-09-29 16:33

Message:
Hi Morten,

Just tried a small test :

U 127.0.0.1:36445 -> 127.0.0.1:5060
  MESSAGE sip:600 at 127.0.0.6;kk=q SIP/2.0
  Via: SIP/2.0/TCP 10.3.8.20:5060;branch=z9hG4bK0440914511a92062ea12e98d4,
SIP/2.0/TCP 10.3.8.19:5062;branch=z9hG4bKaad385d13b702b61ee38b3118
  ...
 
#
U 127.0.0.1:5060 -> 127.0.0.6:5060
  MESSAGE sip:600 at 127.0.0.6;kk=q SIP/2.0
  Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bK7218.b5582ab096480158f0068e6fe2b7eba3.0
  Via: SIP/2.0/TCP
10.3.8.20:5060;rport=36445;received=127.0.0.1;branch=z9hG4bK0440914511a92062ea12e98d4,
SIP/2.0/TCP 10.3.8.19:5062;branch=z9hG4bKaad385d13b702b61ee38b3118

And as you can see, the rport and received were inserted to the right body
part.

Could you upload a full message trace (in and out) showing the problem you
reported ?

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3415264&group_id=232389



More information about the Devel mailing list