Im fancing some issues due to kamailio behind nat and thought double record route could help me .

But enabling that :

modparam("rr", "enable_double_rr", 1)

And later using

record_route_advertised_address("X.X.X.X:5060");

is giving me this error:

 w_record_route_advertised_address(): Double attempt to record-route

Off course, only a single Record Route is present..

What am i doing wrong?

Using Kamailio 4.3.4