Prison service apologises over the recording of calls