Prevent multiple registrations

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Prevent multiple registrations

Post by tschaikowskinksi »

1. Brekeke Product Name and version: 2.4.8.6/286.3

2. Java version:1.6

3. OS type and the version:Linux

4. UA (phone), gateway or other hardware/software involved: phonerlite

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :6

6. Your problem:

how can I prevent users to do multiple registrations (some flag to set)? Is there a possibility to delete the old registration after a new one is established?

Thanks Marco
Last edited by tschaikowskinksi on Thu Sep 08, 2011 2:28 am, edited 1 time in total.
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

Use "$registered" flag.
You can find it in the document.

http://www.brekeke-sip.com/download/bss ... min_en.pdf
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

When I use the same user (from same IP) and do a re-register brekeke knows it's the same user and simply deletes the old reg and replaces it with the new one. -> right fine

I figured out, that this issue only occur when I was registered and change my IP address. That meas that the register request comes from an other IP as the previous one. Then Brekeke does another registration (I have then two of them and cannot get any incoming call).


I've had a look at the documentation and I know the $registered flag. But how can I prevent that behavior?

I think it must work like the following:

- check if the user is already registered (that I can do by matching $registered)
- delete the old registration for that user in any case (don't know how to do that)

Any idea?

Thanks Marco
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

davi
Posts: 34
Joined: Wed Jan 26, 2011 4:34 pm

Post by davi »

> delete the old registration for that user in any case (don't know how to do that)

You don't have to care about it.

Even if there are old registration records with the same username, the SIP server always picks the latest record.
Old record will be deleted automatically after their expires.
tschaikowskinksi
Posts: 23
Joined: Mon Apr 11, 2011 8:10 am

Post by tschaikowskinksi »

davi wrote: Even if there are old registration records with the same username, the SIP server always picks the latest record.
Old record will be deleted automatically after their expires.
Thats right, I have tested it thanks for the info!! Even with four registrations I got the call.

Thanks for the help!
Post Reply