use Net::VoIP_Innovations 3;
- my $handle = Net::VoIP_Innovations->new(
+ my $voip_innovations = Net::VoIP_Innovations->new(
'login' => 'tofu',
- 'password' => 'beast',
- 'debug' => 1,
+ 'password' => 'beast', #secret
);
- #DID functions
+
+ ##
+ # DID functions
+ ##
+
#auditDIDs
#queryDID
#reserveDID
#configDID
#releaseDID
- #911 Functions
+
+ ###
+ # 911 Functions
+ ###
+
#insert911
+ my $response = $voip_innovations->insert911(
+ 'did' => '4155551212',
+ 'address1' => '1234 Test Lane',
+ 'address2' => '',
+ 'city' => 'Testington',
+ 'state' => 'CA',
+ 'zip' => '95454',
+ 'plusFour' => '',
+ 'callerName' => 'Joe Caller',
+ );
+ if ( $response->{'responseCode'} != 100 ) {
+ die $response->{'responseMessage'};
+ }
+
#update911
+ my $response = $voip_innovations->update911(
+ 'did' => '4155551212',
+ 'address1' => '1234 Test Lane',
+ 'address2' => '',
+ 'city' => 'Testington',
+ 'state' => 'CA',
+ 'zip' => '95454',
+ 'plusFour' => '',
+ 'callerName' => 'Joe Caller',
+ );
+ if ( $response->{'responseCode'} != 100 ) {
+ die $response->{'responseMessage'};
+ }
+
#remove911
+ my $response = $voip_innovations->remove911(
+ 'did' => '4155551212',
+ );
+ if ( $response->{'responseCode'} != 100 ) {
+ die $response->{'responseMessage'};
+ }
+
- #Locator Functions
+ ###
+ # Locator Functions
+ ###
...
=item password (secret) (required)
-=item debug
-
=back
=cut
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = ref($_[0]) ? shift : { @_ };
- $self->{'debug'} ||= 0;
bless($self, $class);
}
automatically be notified of progress on your bug as I make changes.
-
-
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
=back
-=head1 ACKNOWLEDGEMENTS
-
-
=head1 COPYRIGHT & LICENSE
Copyright 2008-2014 Freeside Internet Services, Inc. (http://freeside.biz/)
rating, invoicing, credit card and electronic check processing, integrated
trouble ticketing, and customer signup and self-service web interfaces.
-http://freeside.biz/freeside/
+L<http://freeside.biz/freeside/>
=cut