Let's have Bohr-Sommerfeld quantization for one-dimensional case: $$ \int \limits_{a}^{b} p(x)dx ~=~ \pi \hbar (n + \nu ). $$ Here $p(x) = \sqrt{2m(E - U)}$, $a, b$ are turning points, and the area which isn't located at interval $(a, b)$ is classically forbidden. I know that when we don't have infinite wells at $a, b$, i.e. the wave-function isn't equal to zero out of the range $(a, b)$, we have $\nu = \frac{1}{2}$, when we have infinite well in, for example, point $a$, $\nu = \frac{3}{4}$, and finally in case when there are two wells, we have $\nu = 1$.
I know that in the first case $\nu = |\varphi_{1} - \varphi_{2}|$ is combined as result of matching of function out of $(a, b)$, $\frac{1}{\sqrt{p}}e^{-|\int pdx|}$ and solution in $(a, b)$, $$ \frac{C_{1}}{\sqrt{p}}e^{i \int pdx + i\varphi_{1}} + \frac{C_{2}}{\sqrt{p}}e^{-i \int pdx + i\varphi_{2}}, $$ after bypassing of turning points. But what to do in the second and third cases, when function is equal to zero outside at least on one side of the rangle?