Hello Duarte,

you are using the uac module to store the From and To in the headers. Do you see some error messages in the kamailio log during the forwarding? The Route header uses the multi-line format with comma-separator, but this is allowed.

Cheers,

Henning

Am 25.07.19 um 12:51 schrieb Duarte Rocha:
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

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services