Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Prevent multiple registrations
Author Message
tschaikowskinksi
Brekeke Member


Joined: 11 Apr 2011
Posts: 23

PostPosted: Wed Sep 07, 2011 8:48 am    Post subject: Prevent multiple registrations Reply with quote

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/networkpatterns.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
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Sep 07, 2011 10:43 am    Post subject: Reply with quote

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

http://www.brekeke-sip.com/download/bss/v2_x/bss_admin_en.pdf
Back to top
View user's profile
tschaikowskinksi
Brekeke Member


Joined: 11 Apr 2011
Posts: 23

PostPosted: Thu Sep 08, 2011 2:58 am    Post subject: Reply with quote

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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Sep 08, 2011 10:18 am    Post subject: Reply with quote

http://wiki.brekeke.com/wiki/Restrict-registration-only-from-single-UA
Back to top
View user's profile
davi
Brekeke Addict


Joined: 26 Jan 2011
Posts: 34

PostPosted: Thu Sep 08, 2011 10:44 am    Post subject: Reply with quote

> 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.
Back to top
View user's profile
tschaikowskinksi
Brekeke Member


Joined: 11 Apr 2011
Posts: 23

PostPosted: Thu Sep 08, 2011 11:52 pm    Post subject: Reply with quote

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!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1