[Spce-user] LCR not working

Richard Fuchs rfuchs at sipwise.com
Thu Mar 26 11:36:49 EDT 2015


On 26/03/15 11:32 AM, Mark van Herpen wrote:
> Hi Richard, others,
> 
> On 03/26/2015 03:59 PM, Richard Fuchs wrote:
> 
>> The billing_fees table is already joined into this query, so you don't
>> see a separate query for it. The reason the peers apparently aren't
>> sorted is because the sorting is based on the init_rate, and all of your
>> init_rates are zero. Is this intentional?
> 
> Well, this is intentional because there are no call-setup costs for any
> of the peers.
> 
> But, after your reply I saw this in the Handbook, that the Follow Rate
> and Follow Interval both default to the Init Rate and Init Interval...
> 
> So I changed the init rate to the same as the follow_rate and it works :-D \o/
> 
> Concluding, if peers don't have any call-setup costs it's still needed
> to configure the init rates, the same as the follow rates if there is no
> setup cost, in order to get LCR to work properly?

With the current code base, yes. The init rate isn't really the call
setup cost, it's rather the cost of the first "tick" incurred. So unless
the first minute (or whatever interval is used) is actually completely
free, there should always be something in the init rate.

Cheers



More information about the Spce-user mailing list