Interior solution
The interior solution must stay finite for all radii r
Exterior solution
The exterior solution must fulfill a harder constraint: the Sommerfeld radiation condition. If the function diverges near r=0, this is can be accepted. However, far-enough away, the solutions must decay with 1/r and their phase propagation must accord to the free-field wave length.