core: helper functions to get addr and port to be used in signaling from socket info
tm: use advertised addr/port if set for socket in rm rpc uac commands

- reported by Juha Heinanen