With the code above, if one line goes straight to voicemail (i.e. cellphone with no reception), that's a pick up. Hence the second line doesn't have a chance to ring yet.
The solution is to hold the call in a queue, then call each line and use 'voicemail' detection. See details here
More coding for me to do :) so long.