| 1 | package Asterisk::LCR::Importer::PlainVoip; | ||
| 2 | use base qw /Asterisk::LCR::Importer/; | ||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | |||
| 7 | sub new | ||
| 8 | { | ||
| 9 | my $class = shift; | ||
| 10 | my $self = $class->SUPER::new (@_); | ||
| 11 | $self->{prefix_locale} = 'us'; | ||
| 12 | $self->{prefix_position} = '0'; | ||
| 13 | $self->{label_position} = '1'; | ||
| 14 | $self->{rate_position} = '4'; | ||
| 15 | $self->{first_increment_position} = '2'; | ||
| 16 | $self->{increment_position} = '3'; | ||
| 17 | $self->{connection_fee} = '0'; | ||
| 18 | $self->{currency} = 'USD'; | ||
| 19 | $self->{uri} = 'http://www.plainvoip.com/ratedump.php'; | ||
| 20 | $self->{separator} = '(?:,|(?<=\d)\/(?=\d))'; | ||
| 21 | return $self; | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 1; | ||
| 26 | |||
| 27 | |||
| 28 | __END__ |