Australia's Chris O'Connell has earned his place in the main draw at an ATP 250 tournament in Serbia.