There are now rpc commands to get the call details using various filters. I guess for the moment it offers the foundation for external call controllers/billing systems to be built independently of Kamailio. If someone wants a different approach, just submit a PR.