Billsec CDR Variables

anyone has used CDR(${billsec}) from an AGI script? it apears to return NULL . Should I use it after hangup?

Thanks