Andrey,
Have you attempted to address this problem with the use of ordinary
record_route() + the enable_double_rr option in the 'rr' module?
http://kamailio.org/docs/modules/4.3.x/modules/rr.html#idm10608
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/