Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Asterisk::LCR::Route 0.08

    Download button

    No screenshots available
    Downloads: 531  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jean-Michel Hiver | More programs
    Perl Artistic License / FREE
    October 2nd, 2007, 20:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (1)  Refer to a friend  Subscribe

    Asterisk::LCR::Route description

    Asterisk::LCR::Route contains route objects for Asterisk::LCR.

    Asterisk::LCR::Route contains route objects for Asterisk::LCR.

    SYNOPSIS

    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',
    );

    SUMMARY

    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.

    ATTRIBUTES

    connection_fee (numeric scalar)

    Fee which might be applied for any successful call, regardless of its length.

    first_increment (numeric scalar)

    Incompressible first length of time billed.

    increment (numeric scalar)

    Incompressible subsequent lengths of time billed.

    currency (scalar)

    Currency which is used for this rate, i.e. EUR, USD, GBP...

    rate (numeric scalar)

    Amounts of currency per minute

    provider (scalar)

    Provider which provides this rate.

    label (scalar)

    Destination of this rate. This is a string, not an object.

    METHODS

    $self->validate();

    Validates this object to avoid constructing objects which are in an inconsistent state.

    returns 1 if the object validates, 0 otherwise.

    $self->validate_connection_fee();

    Validate this object's 'connection_fee' attribute.
    returns 1 if the attribute validates, 0 otherwise.

    $self->set_connection_fee ($fee);

    Sets the current object's 'connection_fee' attribute.

    $self->connection_fee();

    Returns the current object's 'connection_fee' attribute.

    $self->validate_first_increment();

    Validate this object's 'first_increment' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_first_increment ($fee);

    Sets the current object's 'first_increment' attribute.

    $self->first_increment();

    Returns the current object's 'first_increment' attribute.

    $self->validate_increment();

    Validate this object's 'increment' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_increment ($fee);

    Sets the current object's 'increment' attribute.

    $self->increment();

    Returns the current object's 'increment' attribute.

    $self->validate_rate();

    Validate this object's 'rate' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_rate ($fee);

    Sets the current object's 'rate' attribute.

    $self->rate();

    Returns the current object's 'rate' attribute.

    $self->validate_currency();

    Validate this object's 'currency' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_currency ($fee);

    Sets the current object's 'currency' attribute.

    $self->currency();

    Returns the current object's 'currency' attribute.

    $self->validate_provider();

    Validate this object's 'provider' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_provider ($fee);

    Sets the current object's 'provider' attribute.

    $self->provider();

    Returns the current object's 'provider' attribute.

    $self->validate_label();

    Validate this object's 'label' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_label ($fee);

    Sets the current object's 'label' attribute.

    $self->label();

    Returns the current object's 'label' attribute.

    $self->validate_prefix();

    Validate this object's 'prefix' attribute.

    Returns 1 if the attribute validates, 0 otherwise.

    $self->set_prefix ($fee);

    Sets the current object's 'prefix' attribute.

    $self->prefix();

    Returns the current object's 'prefix' attribute.

    Requirements:

    · Perl

    What's New in This Release:

    · Added search_rates method to generic storage module
    · Tweaked the 'bin' script so that 'locale' is optional in the Dialer section
    · Added countries list in /contrib directory
    · Added ITSP-centric features such as rates generation & management



    Product's homepage

      


    TAGS:

    route objects | Asterisk::LCR objects | Perl module | Asterisk::LCR | route | objects

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM