I want to store RTPProxy statistics in $rtpstat variable (exported by RTPProxy module) into database. Currently I use app_python module to run a specific Python script with from_tag, to_tag, callid and $rtpstat as parameters. This module puts this information in a message queue which is red by another process. That process writes the data in the database. Is there a better, more efficient way to store arbitrary data like this into database in Kamailio?

Regards