[OpenSIPS-Users] Request for Assistance: Issue with Load Balancing in OpenSIPS Container Deployment

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jan 15 16:58:27 UTC 2025


Hi,

Something tells me you are calling the balancer for a re-INVITE 
(in-dialog INVITE, having a "tag" param in TO hdr).

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 15.01.2025 15:30, Vineeth Chigullapally wrote:
> Hi Razvan, Please check the below link to view the logs and lb 
> configuration.
>
> https://drive.google.com/drive/folders/1GNRAfjGjfM0VRRIodpIVYp79wj53By0n?usp=drive_link 
>
>
> regards
> Vineeth
>
> On Mon, 13 Jan 2025 at 21:34, Răzvan Crainea <razvan at opensips.org> wrote:
>
>     Hi, Vineeth!
>
>     The dialog structure cannot be created - I suspect you are not
>     calling
>     the lb_start method for other methods than INVITE? Can you upload
>     somewhere the full debugging logs?
>     Also, have you tried creating the dialog from the script, before
>     calling
>     lb_start?
>
>     Best regards,
>
>     Răzvan Crainea
>     OpenSIPS Core Developer / SIPhub CTO
>     http://www.opensips-solutions.com / https://www.siphub.com
>
>     On 1/13/25 5:29 AM, Vineeth Chigullapally wrote:
>     > Hi
>     >
>     > I hope this email finds you well. I am currently working on
>     configuring
>     > load balancing for one of my OpenSIPS instances, which is
>     deployed as a
>     > Docker container. The objective is to route traffic evenly
>     between two
>     > target servers, proc1 and proc2. However, I am encountering an
>     issue during
>     > the load-balancing process.
>     >
>     > Below are the log messages that I am observing:
>     >
>     > opensips_lb     | Jan  9 12:40:08 [13]
>     DBG:load_balancer:lb_route: initial
>     > call of LB - found requested 1/1 resource [sip]
>     > opensips_lb     | Jan  9 12:40:08 [13] ERROR:load_balancer:lb_route:
>     > initial call of LB - failed to create dialog
>     > opensips_lb     | Jan  9 12:40:08 [13] DBG:tm:t_newtran:
>     transaction on
>     > entrance=0xffffffffffffffff
>     >
>     > I have followed
>     > https://opensips.org/Documentation/Tutorials-LoadBalancing-1-9 for
>     > configuration but cannot identify the root cause of the issue.
>     It seems
>     > that the load balancer is unable to create a dialog, which might be
>     > preventing the traffic from being routed correctly.
>     >
>     > Could you please provide your insights, suggestions, or possible
>     solutions
>     > to resolve this issue? If any additional details, such as
>     configuration
>     > files or environment specifics, are needed, I will be happy to
>     share them.
>     >
>     > Thank you for your time and assistance. Looking forward to your
>     suggestions.
>     >
>     > Best regards
>     >
>     > C Vineeth
>     >
>     >
>     > Hi
>     >
>     > I hope this email finds you well. I am currently working on
>     configuring
>     > load balancing for one of my OpenSIPS instances, which is
>     deployed as a
>     > Docker container. The objective is to route traffic evenly
>     between two
>     > target servers, |proc1| and |proc2|. However, I am encountering
>     an issue
>     > during the load-balancing process.
>     >
>     > Below are the log messages that I am observing:
>     >
>     > opensips_lb     | Jan  9 12:40:08 [13] DBG:load_balancer:lb_route:
>     > initial call of LB - found requested 1/1 resource [sip]
>     > opensips_lb     | Jan  9 12:40:08 [13]
>     ERROR:load_balancer:lb_route:
>     > initial call of LB - failed to create dialog
>     > opensips_lb     | Jan  9 12:40:08 [13] DBG:tm:t_newtran:
>     transaction on
>     > entrance=0xffffffffffffffff
>     >
>     > I have followed https://opensips.org/Documentation/Tutorials-
>     > LoadBalancing-1-9 <https://opensips.org/Documentation/Tutorials-
>     > LoadBalancing-1-9> for configuration but cannot identify the
>     root cause
>     > of the issue. It seems that the load balancer is unable to create a
>     > dialog, which might be preventing the traffic from being routed
>     correctly.
>     >
>     > Could you please provide your insights, suggestions, or possible
>     > solutions to resolve this issue? If any additional details, such as
>     > configuration files or environment specifics, are needed, I will be
>     > happy to share them.
>     >
>     > Thank you for your time and assistance. Looking forward to your
>     suggestions.
>     >
>     > Best regards
>     >
>     > C Vineeth
>     >
>     >
>     > _______________________________________________
>     > 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/20250115/c9d40970/attachment-0001.html>


More information about the Users mailing list