There’s a 120 day waiting period when a number is disconnected. When it comes out depends on where it is in that aging. The aging process gives the old customer a chance to reclaim it if it was disconnected by mistake, and reduces the amount of wrong numbers for the new customer.
