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
Prevent multiple registrations
Moderator: Brekeke Support Team
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
Prevent multiple registrations
Last edited by tschaikowskinksi on Thu Sep 08, 2011 2:28 am, edited 1 time in total.
Use "$registered" flag.
You can find it in the document.
http://www.brekeke-sip.com/download/bss ... min_en.pdf
You can find it in the document.
http://www.brekeke-sip.com/download/bss ... min_en.pdf
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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
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
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
Thats right, I have tested it thanks for the info!! Even with four registrations I got the call.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.
Thanks for the help!