I want to show that $\displaystyle \int_{-\infty}^{\infty} \frac{\sinh ax}{\sinh \pi z} \cos bx \ dx = \frac{\sin a}{\cos a + \cosh b} \ -\pi < a < \pi $
So I let $f \displaystyle (z) = e^{ibx} \frac{\sinh az}{\sinh \pi z} $ and integrated under the rectangular contour with vertices at $R, R+ i, R + i$, and $-R$, and and an indentation at $z=i$ to avoid the simple pole.
I end up with $\displaystyle \text{PV} \left( \int_{-\infty}^{\infty} f(x) \ dx + e^{-b} \cos a \int_{-\infty}^{\infty} f(t) \ dt + i e^{-b} \sin a \int_{-\infty}^{\infty} e^{ibt} \frac{\cosh at}{\sinh \pi t} \ dt \right) = e^{-b} \sin a $
And if I equate real parts, $ \displaystyle (1+ e^{-b} \cos a) \int_{-\infty}^{\infty} \frac{\sinh ax}{\sinh \pi x} \cos bx \ dx - e^{-b}\sin a \int_{-\infty}^{\infty} \frac{\cosh at}{\sinh \pi t} \sin bt \ dt = e^{-b} \sin a$
Did I use wrong contour or the wrong function? Or is there a relationship between $\displaystyle \int_{-\infty}^{\infty} \frac{\sinh ax}{\sinh \pi x} \cos bx \ dx$ and $\displaystyle \int_{-\infty}^{\infty} \frac{\cosh at}{\sinh \pi t} \sin bt \ dt$?
