haproxy sed dst_ip address from haproxy  protocol
https://github.com/kamailio/kamailio/blob/master/src/core/tcp_main.c#L987-L993

How I can use this value inside set_advertised_address() function?

Like set_advertised_address(dst_ip)