A Generalized Stochastic Knapsack Problem with Application in Call Admission Control