<div dir="ltr">Then you might be missing this before the api_hangup_hook:<div><br></div><div><action application="set" data="session_in_hangup_hook=true"/><br><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 3, 2022 at 3:43 PM John Covici <<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think its not available there, its only in the csv that you get<br>
after the call is done, so it may be in your database, if you create<br>
one.<br>
<br>
On Tue, 03 May 2022 13:23:56 -0400,<br>
Joel Serrano wrote:<br>
> <br>
> [1 <multipart/alternative (7bit)>]<br>
> [1.1 <text/plain; UTF-8 (7bit)>]<br>
> Have you tried with:<br>
> <br>
> freeswitch.consoleLog("info", "Billable Duration: " ..<br>
> session:getVariable("billmsec"));<br>
> <br>
> <br>
> On Tue, May 3, 2022 at 9:53 AM Alexander Perkins <<br>
> <a href="mailto:alexanderhenryperkins@gmail.com" target="_blank">alexanderhenryperkins@gmail.com</a>> wrote:<br>
> <br>
> > Hi All. I am trying to access the billmsec from lua, but not being very<br>
> > successful at it. Here's what I've done so far:<br>
> ><br>
> > freeswitch.consoleLog("info", "Billable Duration: " ..<br>
> > session:getVariable("variable_billmsec"));<br>
> ><br>
> > However, when I look at the cli, I get an error because it is nil. I am<br>
> > calling this script from the api_hangup_hook.<br>
> ><br>
> > Any suggestions?<br>
> ><br>
> > Thank you,<br>
> > Alex<br>
> > _________________________________________________________________________<br>
> ><br>
> > The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
> > services.<br>
> > Build your next product on our scalable cloud platform.<br>
> ><br>
> > Join our online community to chat in real time<br>
> > <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> ><br>
> > Professional FreeSWITCH Services<br>
> > <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> > <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> > <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> > <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> ><br>
> > FreeSWITCH-users mailing list<br>
> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> [1.2 <text/html; UTF-8 (quoted-printable)>]<br>
> [2 <text/plain; utf-8 (base64)>]<br>
> _________________________________________________________________________<br>
> <br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
> <br>
> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> <br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> <br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
-- <br>
Your life is like a penny. You're going to lose it. The question is:<br>
How do<br>
you spend it?<br>
<br>
John Covici wb2una<br>
<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>