Town will entertain the Cherries at Gay Meadow in the week beginning September 27th.
Bournemouth are sitting tenth in League One, having lost only once this season. Town will have home advantage in the competition which saw them visit Wembley in 1996.
Last time the two sides met, Bournemouth were triumphant, despatching the Shrews 2-1 in the infamous relegation season 02/03.
With Town in need of a boost to their season, the understated cup competition could be the way to get it.