A means for precise experimental characterization of the dielectric susceptibility of an atomic gas inside and optical cavity is important for design and operation of quantum light matter interfaces, particularly in the context of quantum information processing. Here we present a numerically optimised theoretical model to predict the spectral response of an atom-filled cavity, accounting for both homogeneous and inhomogeneous broadening at high optical densities. We investigate the regime where the two broadening mechanisms are of similar magnitude, which makes the use of common approximations invalid. Our model agrees with an experimental implementation with warm caesium vapour in a ring cavity. From the cavity response, we are able to extract important experimental parameters, for instance the ground state populations, total number density and the magnitudes of both homogeneous and inhomogeneous broadening.