Author |
Message |
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Wed Sep 07, 2011 8:48 am Post subject: Prevent multiple registrations |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
|
Back to top |
|
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Thu Sep 08, 2011 2:58 am Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
davi Brekeke Addict
Joined: 26 Jan 2011 Posts: 34
|
Posted: Thu Sep 08, 2011 10:44 am Post subject: |
|
|
> 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 |
|
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Thu Sep 08, 2011 11:52 pm Post subject: |
|
|
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 |
|
|