Question on getting RTP stats in bye message

Is there a way to get asterisk to publish RTP stats in the bye message?
I would like to parse theses to DB and get stats from them.

Thanks