Hi,

The SQL procedure takes a param, rgroup, which is default (by default). That works fine.

In a real case scenario, having multiple rate groups, I wonder what's the best approach to rate CDRs based on the rate group a client belongs to?

Do you store the rate_group in the ACC table and then adjust 'kamailio_cdrs' and 'kamailio_rating' procedures to take into account the rate_group of a CDR? If so, does anybody have a working example?

Thanks.