I think this problem arises when the PBX for whatever reason lost the call and the phone sends a Re-INVITE. In SIP, a Re-INVITE and a INVITE look the same, but the problem is that the Request-URI actually is the phone's own number. That means for the PBX the phone calls its own number, which is the voicemail.