Go to see a specialist to eliminate any infection first.
I had a bad cough last year,lasting for months.
It got worse during night and after I contacted cold environment.
My doctor let me have a blood test and finally diagnosed lung infection by Chlamydophila and prescribed 7 days' antibiotic. It worked well.