Hi All.  I am trying to access the billmsec from lua, but not being very successful at it.  Here's what I've done so far:

freeswitch.consoleLog("info", "Billable Duration: " .. session:getVariable("variable_billmsec"));

However, when I look at the cli, I get an error because it is nil.  I am calling this script from the api_hangup_hook.

Any suggestions?

Thank you,
Alex