In this paper we first present a model to analyze the average and standard deviation of the delay in a 802.11e EDCA WLAN under voice traffic. Next, based on this model, we compute the optimal configuration of the EDCA parameters. Specifically, with our optimal configuration we aim at admitting as many voice calls as possible while meeting a given quality criterion for the average delay and its typical deviation. Simulation results confirm the effectiveness of our optimal configuration.