=cut
-our $VERSION = '0.03';
+our $VERSION = '0.04';
our $AUTOLOAD;
use Net::Vitelity;
my $vitelity = Net::Vitelity->new(
- 'login' => $your_login,
- 'pass' => $your_pass,
+ 'login' => $your_login,
+ 'pass' => $your_pass,
+ 'apitype' => 'api', #api, fax or lnp
);
=head1 METHODS
#XXX md5 encrypt pass
- my $URL_API = 'http://64.74.178.105/api.php';
- my $URL_FAX = 'http://64.74.178.105/fax.php';
+ my $URL_API = 'http://api.vitelity.net/api.php';
+ my $URL_FAX = 'http://api.vitelity.net/fax.php';
+ my $URL_LNP = 'http://api.vitelity.net/lnp.php';
my $url = $URL_API;
$url = $URL_FAX if $self->{apitype} eq 'fax';
+ $url = $URL_FAX if $self->{apitype} eq 'lnp';
my $response = $ua->post($url, {
login => $self->{login},
http://freeside.biz/
-Development sponsored by Voice Carrier LLC. If you need a hosted or on-site
-PBX, please visit http://www.voicecarrier.com/
-
=head1 COPYRIGHT & LICENSE
-Copyright 2009-2012 Freeside Internet Services, Inc.
+Copyright 2009-2017 Freeside Internet Services, Inc.
All rights reserved.
This program is free software; you can redistribute it and/or modify it