Daniel-Constantin Mierla writes:
I haven't studied exactly the algorithm, but from what I understood, the contacts have to be sorted also by reg-id. What is not clear yet for me is if Q values still plays a role.
i googled a bit and looks like relationship between q value sip.instance/reg ids is a mess. more mess comes from so called permanent registrations (for example a voicemail server registration at lower q value) that may or may not have sip.instance/reg-ids.
-- juha