opensips as load-balancer - configuration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

opensips as load-balancer - configuration

OpenSIPS - Users mailing list
Hi,

I recently started using opensips and installed 3.0 version by following the steps available at opensips.org. My requirement is just to set up Opensips as load-balancer between two backend sip servers (actually two freeswitch servers) which will be working as registrars and call routing servers. So my opensips will just be load balancing REGISTER and INVITEs to my two backend freeswitch servers.

After installing the opensips, I've tried route scripts mentioned on the following two links but none of them is working and calls are always failed with 404 not found.

https://www.opensips.org/Documentation/Tutorials-LoadBalancing-1-9
https://freeswitch.org/confluence/display/FREESWITCH/Enterprise+deployment+OpenSIPS

I am attaching my configuration details in the text file here. 

Can someone please help me further what exact or minimal configuration and routing script required at opensips side to accept my traffic and load balance as mentioned above? Also, can someone please let me know a good tutorial/link where basic call routing, endpoints definition or related information for opensips are explained and will be helpful for me to start off with the call testing. Thanks in advance

Regards



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

opensips-basic-lb-setup.txt (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: opensips as load-balancer - configuration

Pavel Eremin-3

ср, 18 дек. 2019 г. в 22:31, Abu Ibrahim via Users <[hidden email]>:
Hi,

I recently started using opensips and installed 3.0 version by following the steps available at opensips.org. My requirement is just to set up Opensips as load-balancer between two backend sip servers (actually two freeswitch servers) which will be working as registrars and call routing servers. So my opensips will just be load balancing REGISTER and INVITEs to my two backend freeswitch servers.

After installing the opensips, I've tried route scripts mentioned on the following two links but none of them is working and calls are always failed with 404 not found.


I am attaching my configuration details in the text file here. 

Can someone please help me further what exact or minimal configuration and routing script required at opensips side to accept my traffic and load balance as mentioned above? Also, can someone please let me know a good tutorial/link where basic call routing, endpoints definition or related information for opensips are explained and will be helpful for me to start off with the call testing. Thanks in advance

Regards


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: opensips as load-balancer - configuration

OpenSIPS - Users mailing list
In reply to this post by OpenSIPS - Users mailing list
 Hi Abu,

For first try putting some xlog debugging lines and see whats happening with your request.

For ex:

if(!t_relay()) {
xlog(" From $fu   DEST $du");
 sl_reply_error();
}
 
Put xlog every condition you have to get an idea whats happening when opensips executing the script for your request :) This was it'll give you more undestanding what could go wrong.

from my understanding you get 404 after t_relay(0 function so it appears opensips having issues sending the request to final destination ?
 
 
 
 
 
 
Distinguishing What && How !


On Wednesday, 18 December 2019, 11:00:50 pm GMT+5:30, Abu Ibrahim via Users <[hidden email]> wrote:


Hi,

I recently started using opensips and installed 3.0 version by following the steps available at opensips.org. My requirement is just to set up Opensips as load-balancer between two backend sip servers (actually two freeswitch servers) which will be working as registrars and call routing servers. So my opensips will just be load balancing REGISTER and INVITEs to my two backend freeswitch servers.

After installing the opensips, I've tried route scripts mentioned on the following two links but none of them is working and calls are always failed with 404 not found.

https://www.opensips.org/Documentation/Tutorials-LoadBalancing-1-9
https://freeswitch.org/confluence/display/FREESWITCH/Enterprise+deployment+OpenSIPS

I am attaching my configuration details in the text file here. 

Can someone please help me further what exact or minimal configuration and routing script required at opensips side to accept my traffic and load balance as mentioned above? Also, can someone please let me know a good tutorial/link where basic call routing, endpoints definition or related information for opensips are explained and will be helpful for me to start off with the call testing. Thanks in advance

Regards


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users