On Tue, 2024-01-23 at 14:09 -0600, Marcin Groszek wrote:
> I am not sure what would be less resource hungry; $Ts$Tsm v
> get_accurate_time.
>
> get_accurate_time is a function v 2 core variables.
> I guess a config can be created to run 100 million of both operation
> and measuring resources use
On Tue, 2024-01-23 at 19:59 +, Ben Newlin wrote:
>
>
> A few people have mentioned this but I haven’t seen a response. Why
> do you have to do this conversion in the script? The call duration in
> ms is already included by default in every CDR. We are only talking
> about rounding here, why w
I am not sure what would be less resource hungry; $Ts$Tsm v
get_accurate_time.
get_accurate_time is a function v 2 core variables.
I guess a config can be created to run 100 million of both operation and
measuring resources used, cpu, ram and time to complete.
This only makes sense only if yo
less complex than
adding an entirely new field just so OpenSIPS can do the rounding.
Ben Newlin
From: Users on behalf of tre...@webon.co.za
Date: Tuesday, January 23, 2024 at 2:42 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] $DLG_lifetime but in ms
EXTERNAL EMAIL - Please
On Tue, 2024-01-23 at 09:25 -0600, Marcin Groszek wrote:
>
> If you are not calculating the cost of the call in the script it self
> you may create external script to go over your acc table and use
> "ms_duration" to adjust "duration"
>
> or use $Ts$Tsm at the beginning of the call, save it to
If you are not calculating the cost of the call in the script it self
you may create external script to go over your acc table and use
"ms_duration" to adjust "duration"
or use *$Ts**$Tsm *at the beginning of the call, save it to a dialog and
compare it with same value at the end of the call,
use math_ceil
1.4.5. math_ceil(number, result_var)
Truncates a number, always towards +infinity. This means that ceil(3.2)
= 4.0 and ceil(-2.9) = -2.0
1.10.3. $DLG_lifetime
Returns the duration (in seconds)...
On 1/23/2024 8:29 AM, tre...@webon.co.za wrote:
On Tue, 2024-01-23 at 05:44
On Tue, 2024-01-23 at 05:44 -0600, Marcin Groszek wrote:
> $avp(dlg_lifetime) is a read/ write variable and you can change its
> value before acc is written.
>
> To round up the duration using minimum billing block and increments
> you
> need to save them first in to a dialog.
>
> this is the l
$avp(dlg_lifetime) is a read/ write variable and you can change its
value before acc is written.
To round up the duration using minimum billing block and increments you
need to save them first in to a dialog.
this is the logic I use (opensips 3.1)
if (
On Thu, 2024-01-18 at 12:27 +0200, Răzvan Crainea wrote:
> HI, Trevor!
>
> Unfortunately there is currently no way to round up the value, but
> what
> is unclear is why you need the extra billed_duration, and not simply
> using the duration field.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIP
HI, Trevor!
Unfortunately there is currently no way to round up the value, but what
is unclear is why you need the extra billed_duration, and not simply
using the duration field.
Best regards,
Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www
Hi All,
I have a simple issue I need to solve but cant seem to fine a elegant
way of resolving.
I am using acc module + rate_cacher to do some simple billing.
I use $DLG_lifetime but this value seems to be a rounded to the nearest
second what I need is to round up to the nearest second similar
12 matches
Mail list logo