Jean-Michel Hiver > Asterisk-LCR-0.08 > Asterisk::LCR::Comparer::XERAND

Download:
Asterisk-LCR-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

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 ^