Thanks for your query.Based on the facts that you have posted it appears that you have Chronic Epididymititis,and you have been taking antibiotics since last 6months but not getting cured completely.
Considering the duration of your problem there are chances of it being a Tubercular Epididymitis
.This can be confirmed only on biopsy
and histopathological examination.
Please discuss this possibility with your treating physician and consult qualified Urologist