The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Asterisk::LCR::Comparer::XERAND - More advanced rate comparer for Asterisk::LCR

SUMMARY

This comparer is a bit cleverer than Asterisk::LCR::Comparer::Dummy.

It does currency conversion using Finance::Currency::Convert::XE, and then adjust cost per minute using a traffic simulator.

Currently the traffic simulator is a bit simplistic: it generates a call length between 0 and 200 seconds (to have an everage of 100 seconds call length).

In the future there will be a more sophisticated simulator capable of running rates against past traffic CDRs to measure real cost.

ATTRIBUTES

none.

METHODS