On 01 Apr 2016, at 22:37, Bruno Emer <brunoemer@gmail.com> wrote:

Now, I have just one more question about my scenario: when I register a user, is there a way to create something like a "custom field" on the location? To explain better: If possible, I can add something like a custom header that says if the user is registered from a phone device or the web interface, then I can perform the loop and replace only the oldest contact using that device...

Specific devices should have a unique instance-ID in the contact header so you can separate them. otherwise it’s guesswork.
This is part of many SIP standards and used by more and more SIP stacks.

/O