[OpenSIPS-Users] I need help to fix my AOR and little bit of understanding .
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri May 8 15:08:06 UTC 2026
Hi Sasmita,
Yes, give it a try by using the serialize_branches() and next_branches()
functions
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 5/5/26 10:32, Sasmita Panda via Users wrote:
> Hi All ,
>
> With opensips 3.4 , if I have 2 registered contacts in the database
> and I want to perform serial forking during lookup, even if both
> contacts have the same q value.
> Then how will I do this?
>
> serialize_branches(1, 1);
> Will this work?
> */
> /*
> # Serial forking: serialize branches one at a time regardless
> of q-value.
> # keep_order=1 (2nd arg) is REQUIRED when contacts have equal
> q-values
>
> This is what I found while searching for a solution.Do let me know ,
> if I am in the right track or not .
> */
> /*
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> On Wed, Apr 22, 2026 at 3:17 PM Sasmita Panda <spanda at 3clogic.com> wrote:
>
> you mean the global parameter of registrar module .
> modparam("registrar", "max_contacts", 1)
>
> This will keep 1 AOR per contact. AOR is address of record which
> is the combination of user at IP (user at 20.0.0.1). In my case for
> every registration the IP address changes with every registration.
> So, OpenSIPS is considering this a different AOR and is saving
> multiple contacts.
> */
> /*
> */
> /*
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> On Wed, Apr 22, 2026 at 1:12 PM Richard Robson
> <richard at rikrobson.co.uk> wrote:
>
> Have you tried to limit the number with max_contacts()
> parameter ? if you set the value to 1 it should only keep one
> AOR per contact. If that doesn't do what you want you are
> going to have to set up some logic to do a lookup foir a
> previous registration and manage the contacts that way,
> probably with a is_contact_registered function.
>
> there are plenty of optoins in the register module
>
> https://opensips.org/docs/modules/3.6.x/registrar.html
>
>
> Richard
>
> On 22/04/2026 08:24, Sasmita Panda via Users wrote:
>> Hi ,
>>
>> I am using opensips 3.4 .
>>
>> While saving the contact I have called the save unction as
>> below .
>> if(!save("location","max-contacts=1,force-registration,path-lazy"))
>> sl_reply_error();
>>
>> My requirement was to save a single contact for a username.
>> If there will be multiple registration then over ride the
>> older one with the latest one .
>>
>> After this, I can see my calls getting forked between 2
>> contacts . I can see that the IP addresses of both contacts
>> are different, but the username part is the same.
>> user at 10.0.0.1:45670 <http://user@10.0.0.1:45670>
>> user at 10.0.0.2:58095 <http://user@10.0.0.2:58095>
>>
>> This means the system saves both contacts for the user.
>> Consequently, during lookup, it finds 2 contacts and
>> simultaneously forks the call to both destinations.
>>
>> In my case, the request comes from the ALB, which has a
>> dynamic IP. Also the call id can be different. If I open
>> multiple browser tabs and register the same user from both
>> tabs, the registration will originate with different IPs and
>> call IDs.
>>
>> How I will save single contact in this case ?
>>
>>
>> */Thanks & Regards/*
>> /Sasmita Panda/
>> /Senior Network Testing and Software Engineer/
>> /3CLogic , ph:07827611765/
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20260508/7ae443c6/attachment.html>
More information about the Users
mailing list