@Den4t - as I said I expect to be related to presence of Contact header, not to Record-Route header -- it happens that both are set in your example, but processing is related to contact header.
Anyhow, till is sorted out how it should work, you can check if the request within dialog has Contact header (or Record-Route if really is that case) and the set that xavu.