Adding cdrstats metrics to email and log actions