diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm b/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm index 8e59657058..713ab4db98 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm @@ -69,6 +69,7 @@ sub resource_from_item { delete $r->{$f}; } $r->{id} = int($r->{id}); + $r->{num_lines} = int($r->{num_lines}); foreach my $f(qw/can_private can_shared can_blf/) { $r->{$f} = JSON::Types::bool($r->{$f}); }