- if ($part_pkg->fcc_voip_class == 1) {
- # VoIP OTT (connection not included)
- push @fcc_opts, 'is_voip' => 1, 'voip_ott' => 1,
- 'voip_sessions' => $sessions;
- } elsif ( $part_pkg->fcc_voip_class == 2) {
- # VoIP non-OTT; do not set is_broadband since the connection is not
- # necessarily general Internet access
- push @fcc_opts, 'is_voip' => 1,
- 'voip_sessions' => $sessions;
- } elsif ( $part_pkg->fcc_voip_class == 3 ) {
- # wholesale VoIP; apparently no longer reportable?
- } else {
- # local exchange telephone
- push @fcc_opts, 'is_phone' => 1,
- 'phone_lines' => $sessions;
+ if ( $sessions ) { # then this is a voice package of some kind
+ if ($part_pkg->fcc_voip_class == 1) {
+ # VoIP OTT (connection not included)
+ push @fcc_opts, 'is_voip' => 1, 'voip_ott' => 1,
+ 'voip_sessions' => $sessions;
+ } elsif ( $part_pkg->fcc_voip_class == 2) {
+ # VoIP non-OTT; do not set is_broadband since the connection is not
+ # necessarily general Internet access
+ push @fcc_opts, 'is_voip' => 1,
+ 'voip_sessions' => $sessions;
+ } elsif ( $part_pkg->fcc_voip_class == 3 ) {
+ # wholesale VoIP; apparently no longer reportable?
+ } else {
+ # local exchange telephone
+ push @fcc_opts, 'is_phone' => 1,
+ 'phone_lines' => $sessions;
+ }