Greetings, 

When a in-dialog request has Route headers, Kamailio will remove the Route Header with it's address when routing the packet. 
This works perfectly for me in every situation. However, in one of the calls I found a weird behaviour in the removal.

 
So, this is the scenario : 

Kamailio has two IP's 1.1.1.209 and 1.1.1.205. This is BYE request received in the on 1.1.1.209

The header Route looks like this when it arrives at 1.1.1.209 :
 
Route : <sip:1.1.1.209;r2=on;lr;ftag=5AE0303037363132017D0E65;tbk_i=2_2_Y;tbk_o=128_11_Y;vsf=AAAAABgGBAMDAAUBBQECA3ByAwMcHwIdHQsWHwUMOA--;vst=AAAAABgHDQgBAwsIBQECdnIDAxwfAh0aBB4cAgU5;did=8f5.67c2>,<sip:1.1.1.205;r2=on;lr;ftag=5AE0303037363132017D0E65;tbk_i=2_2_Y;tbk_o=128_11_Y;vsf=AAAAABgGBAMDAAUBBQECA3ByAwMcHwIdHQsWHwUMOA--;vst=AAAAABgHDQgBAwsIBQECdnIDAxwfAh0aBB4cAgU5;did=8f5.67c2>

It reaches 1.1.1.205 like this : 

Route : 

As you can see, the header is empty and it should contain the 1.1.1.205 URI. 

Is the header Router malformatted and creating this error ? 

Best Regards,

Duarte Rocha