We study the thermoelastic contact of two isotropic semiinfinite bodies with periodic system of grooves on the surface of one of these bodies in the presence of heat-permeable media in the intercontact gaps. We reduce the formulated contact problem to a system of nonlinear singular integrodifferential equations for the height of gaps and the jump of temperature between their surfaces, which is solved numerically. With regard for the directional effect of the heat flow, we analyze the influence of the thermomechanical load and thermal conductivity coefficient of the filler on the contact parameters of the analyzed system.