
Asterisk::LCR::Route - Route objects for Asterisk::LCR

use Asterisk::LCR::Route;
my $rate = Asterisk::LCR::Route->new (
provider => 'someprovider',
connection_fee => 0,
first_increment => 30,
increment => 6,
rate => 10.125,
currency => 'EUR',
label => 'The Moon - Mobile Services',
);

Represents a rate, i.e. amounts of currency to pay, for a given destination prefix.
Note that this might not always be true.
For example:
+262 is supposed to be 'reunion island' but +262692 is 'reunion island mobiles'
For this reason, when looking for a rate for a given destination, LCR engines must find rates with the longest possible prefix that matches a given number.

Fee which might be applied for any successful call, regardless of its length.
Incompressible first length of time billed.
Incompressible subsequent lengths of time billed.
Currency which is used for this rate, i.e. EUR, USD, GBP...
Amounts of currency per minute
Provider which provides this rate.
Destination of this rate. This is a string, not an object.

Validates this object to avoid constructing objects which are in an inconsistent state.
returns 1 if the object validates, 0 otherwise.
Validate this object's 'connection_fee' attribute.
returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'connection_fee' attribute.
Returns the current object's 'connection_fee' attribute.
Validate this object's 'first_increment' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'first_increment' attribute.
Returns the current object's 'first_increment' attribute.
Validate this object's 'increment' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'increment' attribute.
Returns the current object's 'increment' attribute.
Validate this object's 'rate' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'rate' attribute.
Returns the current object's 'rate' attribute.
Validate this object's 'currency' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'currency' attribute.
Returns the current object's 'currency' attribute.
Validate this object's 'provider' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'provider' attribute.
Returns the current object's 'provider' attribute.
Validate this object's 'label' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'label' attribute.
Returns the current object's 'label' attribute.
Validate this object's 'prefix' attribute.
Returns 1 if the attribute validates, 0 otherwise.
Sets the current object's 'prefix' attribute.
Returns the current object's 'prefix' attribute.