+sub countrycode2country {
+ my $cc = shift;
+
+ #exceptions to the below
+ return 'North America (NANPA)' if $cc eq '1';
+ #return 'Algeria' if $cc eq '214';
+ return 'Ascension Island' if $cc eq '247';
+ return 'Satellite / Maritime / Universal Personal' if $cc eq '87'; #? or 870..
+ return 'Inmarsat' if $cc eq '870';
+ return 'Global Mobile Satellite System' if $cc eq '881';
+ return 'International Networks' if $cc eq '882';
+ return 'International Networks' if $cc eq '883';
+
+ code2country(
+ Number::Phone::Country::phone2country("+$cc")
+ );
+}
+