Be careful when using $Tsm. I read a thread the other day that was just talking about it and that it returns <meta http-equiv="content-type" content="text/html; charset=utf-8">milliseconds since midnight, not epoch. So if that is true you will need to somehow handle calls that cross midnight for duration at least and start/answer/end of call if including the precision in those timestamps.<div>

I&#39;d be interested to see what you find.</div><div>What I&#39;ve seen with sub second accounting is for rounding purposes where for example billing in 6 second increments and it is always rounded up. So a call 6.001 seconds would be charged for 12 seconds.<br>

<br></div><div>Dave</div><div><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 6:35 AM, Brett Nemeroff <span dir="ltr">&lt;<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div class="im">On Wed, Jan 19, 2011 at 8:32 AM, Andrew Philp <span dir="ltr">&lt;<a href="mailto:andrew.philp@just-tek.com" target="_blank">andrew.philp@just-tek.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div bgcolor="#FFFFFF"><div>We are looking to use this for billing directly and for most of our customers are billed on a hundredth of a second. </div><div><br></div><div>Does this make sense?<br><br></div></div></blockquote>



<div><br></div></div><div>Sure it does, but I&#39;ve never heard of sub second billing. The ACC module is probably not going to help you for this need presently. I believe $Tsm returns milliseconds. You may be able to manually account for the calls with that. </div>



<div>-Brett</div><div><br></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>