Re: [OpenSIPS-Users] Load Balancer Question

2024-10-09 Thread Podrigal, Aron
Your probably missing a record route and server does not see the BYE? - Aron Podrigal On Wed, Oct 9, 2024 at 2:51 PM Alexander Perkins < alexanderhenryperk...@gmail.com> wrote: > Hi All. I have an interesting issue that I cannot seem to resolve. Here > goes - we have a load balancer in fron

[OpenSIPS-Users] Load Balancer Question

2024-10-09 Thread Alexander Perkins
Hi All. I have an interesting issue that I cannot seem to resolve. Here goes - we have a load balancer in front of two other opensips servers. When we route the calls to the load balancer, we notice the load count just keeps going up when we look at the opensips-cli -x mi lb_list command. It's li

Re: [OpenSIPS-Users] Load Balancer Probing Question

2024-04-18 Thread Bogdan-Andrei Iancu
Not really. The LB module uses internal unique ids for all the LB destinations it manages. So the probing replies will search back the LB destination based on this ID -> no chance to mismatch. Regards. Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com h

Re: [OpenSIPS-Users] Load Balancer Probing Question

2024-04-16 Thread Callum Guy via Users
If the backend servers are both the same instance then this seems to be the correct behaviour? I believe the probing is supposed to be a simple SIP response healthcheck which applies to the destination globally (i.e. 1.2.3.4 is offline), the groups are just a way of splitting up resources logicall

Re: [OpenSIPS-Users] Load Balancer Probing Question

2024-04-16 Thread Bogdan-Andrei Iancu
Hi, What OpenSIPS version you have? And as I understand, as configuration, you do permanent probing to the destinations and the disabling happens because of this probing ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.c

[OpenSIPS-Users] Load Balancer Probing Question

2024-04-11 Thread Alexander Perkins
Hi. I have an interesting issue. We have two OpenSIPS servers with load balancer (with two different group IDs in the lb table) and we have probing set correctly and we are using the event, E_LOAD_BALANCER_STATUS, to capture changes to servers that were probed. But we noticed that we have the sa

Re: [OpenSIPS-Users] Load Balancer add destination as probing status

2024-04-09 Thread John Sliney
#mi_lb_status From: Users on behalf of Johan De Clercq Sent: Tuesday, April 9, 2024 4:01 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Load Balancer add destination as probing status CAUTION: EXTERNAL Can you tell me how to disable a load

Re: [OpenSIPS-Users] Load Balancer add destination as probing status

2024-04-09 Thread Johan De Clercq
Can you tell me how to disable a load balancer destination via mi ? On Tue, 9 Apr 2024, 20:02 John Sliney, wrote: > Is there currently a way to add a destination to the load_balancer set > with a status of disabled but with probing enabled, like the dispatcher > table 'state' column allows? > >

[OpenSIPS-Users] Load Balancer add destination as probing status

2024-04-09 Thread John Sliney
Is there currently a way to add a destination to the load_balancer set with a status of disabled but with probing enabled, like the dispatcher table 'state' column allows? I have an osips working as a SIP ingress/egress for Kubernetes traffic and as Asterisk Pods are created they are added to

Re: [OpenSIPS-Users] Load balancer probing_method INVITE not sending contact header

2021-11-16 Thread Bogdan-Andrei Iancu
Schneur, As a note here, using INVITE as probing method is a bit dangerous, as an INVITE creates a session (what kind of session do you do here, as I guess there is no SDP), a session that has to be confirmed by ACK and closed by a BYE. Just saying you are twisting SIP ;) Regards, Bogdan-A

Re: [OpenSIPS-Users] Load balancer probing_method INVITE not sending contact header

2021-11-11 Thread Schneur Rosenberg
Hi, thank you very much that fixed the error but then it's complained with a 484 Address Incomplete, I fixed the RURI too and now it's working fine. Scott On Wed, Nov 10, 2021, 21:47 Schneur Rosenberg wrote: > No, I'll try and keep you posted. > > On Wed, Nov 10, 2021 at 9:39 PM Vasilios Tzanou

Re: [OpenSIPS-Users] Load balancer probing_method INVITE not sending contact header

2021-11-10 Thread Schneur Rosenberg
No, I'll try and keep you posted. On Wed, Nov 10, 2021 at 9:39 PM Vasilios Tzanoudakis wrote: > > Have you tried adding the extra contact header in local_route? > > Στις Τετ, 10 Νοε 2021, 21:18 ο χρήστης Schneur Rosenberg > έγραψε: >> >> Hi, I'm using load balancer with probing_method INVITE, i

Re: [OpenSIPS-Users] Load balancer probing_method INVITE not sending contact header

2021-11-10 Thread Vasilios Tzanoudakis
Have you tried adding the extra contact header in local_route? Στις Τετ, 10 Νοε 2021, 21:18 ο χρήστης Schneur Rosenberg < rosenberg11...@gmail.com> έγραψε: > Hi, I'm using load balancer with probing_method INVITE, it worked fine > for many years with my Asterisk and Freeswitch servers, I'm migrat

[OpenSIPS-Users] Load balancer probing_method INVITE not sending contact header

2021-11-10 Thread Schneur Rosenberg
Hi, I'm using load balancer with probing_method INVITE, it worked fine for many years with my Asterisk and Freeswitch servers, I'm migrating my asterisk server from chan_sip to pjsip and now asterisk is rejecting all the probing requests with a 400 Missing Contact header, I checked the modparams fo

Re: [OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Chandan PR
.x/load_balancer.html#event_E_LOAD_BALANCER_STATUS > > > > Ben Newlin > > > > *From: *Users on behalf of Chandan PR < > chandan...@webshar.org> > *Reply-To: *OpenSIPS users mailling list > *Date: *Wednesday, July 8, 2020 at 10:00 AM > *To: *OpenSIPS users mailling

Re: [OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Ben Newlin
list Date: Wednesday, July 8, 2020 at 10:00 AM To: OpenSIPS users mailling list Cc: Naveen Kumar Subject: [OpenSIPS-Users] Load Balancer Hooks Hi, Is it possible to add hooks to notify an endpoint * when a particular destination is disabled (via lb_disable()) * when a particular

[OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Chandan PR
Hi, Is it possible to add hooks to notify an endpoint - when a particular destination is disabled (via lb_disable()) - when a particular destination is enabled after a successful probing This is needed for us to slow down the requests to OpenSips when few destinations are down. Without thi

[OpenSIPS-Users] Load balancer stops to count load over time

2019-07-01 Thread Igor Pavlov
Hi all, I encountered a problem with load balancer module, it stops to count load over time, 5-6 hours or day may pass after restart. |opensipsctl fifo lb_list| always shows |load=0|, but at the same time balancer do his work correctly - it balance calls. Here is debug log: |Jun 30 10:57:34

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-06-03 Thread Bogdan-Andrei Iancu
Please keep the list CC'ed to the discussion. Thanks for the info, it seems to be an OpenSIPS bug - the anycast token is missing in the locally generated requests (like this OPTIONS). Could you open a bug report on the github tracker please ? Best regards, Bogdan-Andrei Iancu OpenSIPS Found

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-06-03 Thread Bogdan-Andrei Iancu
Hi Anton, That is an interesting combination - pinging via an anycast interface. Could you paste here the OPTIONS and its reply, to check if it is correctly built from the anycast perspective ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-05-28 Thread Kirill Galinurov
Hi Anton. You must correctly set cluster_sharing_tag (string) parameter in you config file. Please see https://opensips.org/html/docs/modules/3.0.x/load_balancer.html#param_cluster_sharing_tag ___ Users mailing list Users@lists.opensips.org http://lists

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-05-28 Thread Антон Ершов
opensips-cli -x mi lb_list { "Destinations": [ { "uri": "sip:10.7.0.201:5070", "id": 1, "group": 1, "enabled": "yes", "auto-reenable": "on" } ], "Resources": [ { "name": "PSTN", "

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-05-28 Thread Антон Ершов
node 1 loadmodule "load_balancer.so" modparam("load_balancer", "db_url", "postgres:// postgres:1q2w3e4r@10.3.0.1/opensips1") modparam("load_balancer", "probing_reply_codes", "501, 503, 403") modparam("load_balancer", "cluster_id", 1) modparam("load_balancer", "cluster_sharing_tag", "node_SKN") mod

Re: [OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-05-27 Thread Alexey Kazantsev via Users
Hello Anton, you'd better show here the load_balancer part of your config, as it has some parameters regarding to working in the cluster. >Понедельник, 27 мая 2019, 17:17 +05:00 от Антон Ершов : > >Hello friends! > I'm testing new features of opensips 3. And I discovered the following > situati

[OpenSIPS-Users] Load Balancer cluster Opensips 3.0

2019-05-27 Thread Антон Ершов
Hello friends! I'm testing new features of opensips 3. And I discovered the following situation. Configured cluster module in Anycast Сonfiguration. Load balanser module has cluster_sharing_tag. The lb module sends "options" to the host from the common address, but the answer goes to the neares

Re: [OpenSIPS-Users] Load-Balancer Module - status destinations in database?

2017-01-24 Thread Johan De Clercq
as far as I know, you can only do this with mi. As the status depends on probing, in my opinion, it doesn't make sense to store this in a db. BR, Johan. 2017-01-25 1:16 GMT+01:00 Mundkowsky, Robert : > Is there a way to get the status (enabled or disabled) of load balancer > destinations in data

[OpenSIPS-Users] Load-Balancer Module - status destinations in database?

2017-01-24 Thread Mundkowsky, Robert
Is there a way to get the status (enabled or disabled) of load balancer destinations in database? Or is lb_list MI only way? This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individu

Re: [OpenSIPS-Users] Load Balancer - Checking Node Health

2017-01-11 Thread Chandan PR
Thanks a lot Razvan. Will try them and keep the group posted about the results. On Wed, Jan 11, 2017 at 2:01 PM, Răzvan Crainea wrote: > Hi, Chandan! > > Is there any way you could monitor the endpoints? If so, you can use the > load balancer pinging, that will automatically disable the end poin

Re: [OpenSIPS-Users] Load Balancer - Checking Node Health

2017-01-11 Thread Răzvan Crainea
Hi, Chandan! Is there any way you could monitor the endpoints? If so, you can use the load balancer pinging, that will automatically disable the end point when it is not responding, and monitor the state over MI. If there is no way you monitor the endoints, you could: 1. Check the tm transact

[OpenSIPS-Users] Load Balancer - Checking Node Health

2017-01-10 Thread Chandan PR
Hi, Recently one of our endpoints stopped responding and due to which nearly almost all of the calls ended up in 486. Is there any functions we can use to monitor the response codes per node over a duration so that we can raise an alert to take corrective actions in such cases. *The version of O

Re: [OpenSIPS-Users] Load Balancer - Delay in clearing dialogs

2016-08-17 Thread Chandan PR
Thanks for the input Bogdan. We found that the problem was due to some calls failing to get the response. Since we had the dialog timeout of 6 hours, which was not in sync with application logic, we were sending more calls than available destinations. We have updated the dialog timeout in par wi

Re: [OpenSIPS-Users] Load Balancer - Delay in clearing dialogs

2016-08-17 Thread Bogdan-Andrei Iancu
Hi Chandan, Could you check what is the status of the calls (see the "State" field) ? I guess the call are listed in state 5 (terminated) - and this is the reason why you do not see them as counted by LB. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutio

[OpenSIPS-Users] Load Balancer - Delay in clearing dialogs

2016-08-16 Thread Chandan PR
Hi Guys, Opendsips Version : 1.9.x We have configured the load balancer with 8 ports. When the calls are ongoing, the lb_list shows the load balancer is running full. root@Dev-Chandan-Opensips-LB:/usr/local/opensips/sbin# ./opensipsctl fifo lb_list Destination:: sip:192.168.248.62:5060 id=152 g

Re: [OpenSIPS-Users] Load Balancer

2015-06-29 Thread Matt Broad
Hi Bogdan, thanks for the reply. The issue was that the Opensips box could not contact the FS box using the FS external IP address. I have solved the issue by making some changes to the firewall. I have added a loop back (?) so that the Opensips box can contact the FS box using it's external IP a

Re: [OpenSIPS-Users] Load Balancer

2015-06-29 Thread Bogdan-Andrei Iancu
Hi Matt, There is something bogus in your setup. If FS is advertising the public IP, why is it not able to receive traffic on that IP (the ACK from OpenSIPS). You need to make a consistent setup in there in terms of used and routable IPs. Now, the 200 OK (to INVITE) is sent by FS via the ext

[OpenSIPS-Users] Load Balancer

2015-06-24 Thread Matt Broad
Hi, I have the following setup (the IP addresses are made up but should give an indication): 1 x opensips server with load balancer module - IP 192.168.0.1 2 x freeswitch servers - IP 192.168.0.2 & 192.168.0.3 All 3 servers have seperate external IP address routing to their internal IP via our f

Re: [OpenSIPS-Users] load balancer

2015-01-22 Thread Matt Broad
Thanks for the reply Bogdan-Andrei, I will give that a go and see if it helps :) thanks Matt On 19 January 2015 at 18:28, Bogdan-Andrei Iancu wrote: > Hello Matt, > > In OpenSIPS you need to use the onreply route to get access to those 200 > OK replies (from FreeSwitch). In there use > fix_n

Re: [OpenSIPS-Users] load balancer

2015-01-19 Thread Bogdan-Andrei Iancu
Hello Matt, In OpenSIPS you need to use the onreply route to get access to those 200 OK replies (from FreeSwitch). In there use fix_nated_sdp("2","FS_public_ip") to rewrite the IP in the SDP: http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id293864 Regards, Bogdan-Andrei Ianc

[OpenSIPS-Users] load balancer

2015-01-19 Thread Matt Broad
Hi, I was looking for some guidance on using the load balancer in a NAT environment. I have the following setup (the IP addresses are made up but should give an indication): 1 x opensips server with load balancer module - IP 192.168.0.1 2 x freeswitch servers - IP 192.168.0.2 & 192.168.0.3 All

Re: [OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread bluerain
Oh yes, I figured out, I just forgot to remove the thread. It seems the database "data type" matters in this case. If that field in the DB table is varchar (I am using MSSQL) avp variable under load balancer module will not work. You have to use one of the "interger" data type in order for this

Re: [OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread campusvtv
Hello, theoretically you can use a variable (OpenSIPs 1.11.X): "grp- group id for the destinations; the destination may be grouped in several groups you can you for different scenarios; this can be a number or a variable containing a numerical value." Are you sure $avp(GroupID) contain a num

[OpenSIPS-Users] Load Balancer Group ID with AVP variable

2014-12-09 Thread bluerain
Is it possible to use avp variable instead? I've tried, it seems not working, I have to put some numeric value for it to work. Or is my syntax wrong somewhere? load_balance("$avp(GroupID)","PSTN") -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Load-Bal

Re: [OpenSIPS-Users] Load balancer setup

2014-10-31 Thread Matt Broad
usiness.com] > *Sent:* 22 October 2014 08:42 > *To:* users@lists.opensips.org > *Subject:* [OpenSIPS-Users] Load balancer setup > > Hi, > > > I was looking for some guidance on using the load balancer in a NAT > environment. > > I have the following setup (the IP addresses are m

Re: [OpenSIPS-Users] Load balancer setup

2014-10-30 Thread Kenny Watson
[OpenSIPS-Users] Load balancer setup Hi, I was looking for some guidance on using the load balancer in a NAT environment. I have the following setup (the IP addresses are made up but should give an indication): 1 x opensips server with load balancer module - IP 192.168.0.1 2 x freeswitch se

Re: [OpenSIPS-Users] Load balancer setup

2014-10-29 Thread Matt Broad
Hi, just seeing if anyone had any ideas? thanks Matt On 22 October 2014 08:42, matt wrote: > Hi, > > > I was looking for some guidance on using the load balancer in a NAT > environment. > > I have the following setup (the IP addresses are made up but should give > an indication): > > 1 x opens

[OpenSIPS-Users] Load balancer setup

2014-10-22 Thread matt
Hi, I was looking for some guidance on using the load balancer in a NAT environment. I have the following setup (the IP addresses are made up but should give an indication): 1 x opensips server with load balancer module - IP 192.168.0.1 2 x freeswitch servers - IP 192.168.0.2 & 192.168.0.3 All

Re: [OpenSIPS-Users] Load balancer problem

2014-08-27 Thread Anshuman S Rawat
ay, August 26, 2014 10:44 PM To: OpenSIPS users mailling list; ara...@3clogic.com Subject: Re: [OpenSIPS-Users] Load balancer problem Hi, By "failing" you mean the "load_balance" function returns false in script ? Could you post the output of: opensipsctl fifo lb_li

Re: [OpenSIPS-Users] Load balancer problem

2014-08-26 Thread Bogdan-Andrei Iancu
Hi, By "failing" you mean the "load_balance" function returns false in script ? Could you post the output of: opensipsctl fifo lb_list Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 26.08.2014 15:04, Anshuman S Rawat wrote: Hi, I

[OpenSIPS-Users] Load balancer problem

2014-08-26 Thread Anshuman S Rawat
Hi, I am trying to use the load_balancer module for load balancing requests between 2 OpenSIPS instances but my load_balance() function is failing for reasons I couldn't figure out. My load balancer table looks like this. ++--+-+---+--

[OpenSIPS-Users] Load balancer module: lb_count_call - what if I don't know the group id

2014-05-08 Thread Ali Pey
Hello, In load balancer module, I can use lb_count_call(ip,port,grp,resources) to add the current call to the resource of the specified server. What if I don't know the group id, that this server belongs to, if I pass -1, would it add the call to the right group? Thanks, Ali

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-20 Thread Tuomas Kaikkonen
nSIPS users mailling list Subject: Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE? Your script has a bit of a brutal approach on the routing :) , also it seems to contain really old syntax or functions - in current versions things can be done in a much simpler way ;). S

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-20 Thread Bogdan-Andrei Iancu
@opensips.org] <mailto:[mailto:bog...@opensips.org]> *Sent:* Tuesday, March 19, 2013 8:01 AM *To:* OpenSIPS users mailling list *Cc:* Tuomas Kaikkonen *Subject:* Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE? Hi Tuomas, The LB modules is only for CALLs - it unde

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-20 Thread Bogdan-Andrei Iancu
Ave, Suite 200, Seattle, WA 98121 Tel: (206) 812-0732 *From:*Tuomas Kaikkonen *Sent:* Tuesday, March 19, 2013 10:43 AM *To:* 'Bogdan-Andrei Iancu'; OpenSIPS users mailling list *Subject:* RE: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE? Bogdan, What I am tryin

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-20 Thread Bogdan-Andrei Iancu
ensips.org] *Sent:* Tuesday, March 19, 2013 8:01 AM *To:* OpenSIPS users mailling list *Cc:* Tuomas Kaikkonen *Subject:* Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE? Hi Tuomas, The LB modules is only for CALLs - it understands by +1 load only a call. You cannot use it for

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-19 Thread Tuomas Kaikkonen
: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Tuomas Kaikkonen Sent: Tuesday, March 19, 2013 4:49 PM To: OpenSIPS users mailling list; Bogdan-Andrei Iancu Subject: Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE? Trying dispatcher

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-19 Thread Tuomas Kaikkonen
2-0732 From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Tuomas Kaikkonen Sent: Tuesday, March 19, 2013 10:43 AM To: Bogdan-Andrei Iancu; OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-19 Thread Tuomas Kaikkonen
n Software Developer | Twisted Pair Solutions 3131 Elliott Ave, Suite 200, Seattle, WA 98121 Tel: (206) 812-0732 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Tuesday, March 19, 2013 8:01 AM To: OpenSIPS users mailling list Cc: Tuomas Kaikkonen Subject: Re: [OpenSIPS-Users] Load Balancer

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-19 Thread Bogdan-Andrei Iancu
Hi Tuomas, The LB modules is only for CALLs - it understands by +1 load only a call. You cannot use it for REGISTERsAnyhow REGISTERs and INVITEs are as apples and onions :)...so you cannot put them in the same basket. if you could provide more details on what you are trying to achieve, m

Re: [OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-19 Thread Muhammad Shahzad
Load balancer depends on SIP address only for routing, so just about any SIP server and just about any SIP method, you can use this module for load balancing. However, you need to plan carefully how on-net calls and presence will work in such an architecture! Thank you. On Mon, Mar 18, 2013 at 5

[OpenSIPS-Users] Load Balancer module for REGISTER as well as INVITE?

2013-03-18 Thread Tuomas Kaikkonen
Can the Load Balancer module be configured to balance REGISTERs as well as the INVITES so that the above mentioned setup would work? OR is the Load Balancer module just useful for balancing RTP Proxy / media server resources for INVITEs? I'm new to the Load Balancer module of OpenSIPs. I am runn

Re: [OpenSIPS-Users] Load Balancer Issue

2012-11-21 Thread Bogdan-Andrei Iancu
Nilanjan, The caller script is broken - in ACK, is should be ROUTE hdrs where you have the RECORD-ROUTE ones :) .ACK should look like: U 2012/11/01 11:19:02.006514 X.X.X.23:5080 -> X.X.X.206:5060 ACK sip:X.X.X.5:5070;transport=UDP SIP/2.0. Route: ,. Via: SIP/2.0/UDP X.X.X.23:5080;branch=z9hG

Re: [OpenSIPS-Users] Load Balancer between two OpenSIPs server. Redis Cluster [HOWTO]

2012-11-12 Thread Vlad Paiu
Hello, Very nice tutorial, thank you. Important to note that you can use other backends as well, such as Cassandra in 1.8, or for the future release 1.9 you'll also be able to use CouchBase or MongoDB in a similar fashion. Best Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solut

[OpenSIPS-Users] Load Balancer between two OpenSIPs server. Redis Cluster [HOWTO]

2012-11-10 Thread Bakko
Hello list, I written the first draft about Load Balancer between two Opensips Servers in a Redis Cluster. I'm sorry if the HowTo is in Spanish, but my English is not very good. http://www.voztovoice.org/?q=node/585 Thank you Bogdan for your help and

Re: [OpenSIPS-Users] Load Balancer Issue

2012-11-10 Thread Nilanjan Banerjee
Hi Bogdan, You were spot on. Fixed the ROUTE headers for ACK and BYE in the sipp scenario and everything just worked perfectly. Thanks a lot for bearing with me with your continued support. Much appreciate it. Nilanjan. On Fri, Nov 9, 2012 at 11:07 PM, Bogdan-Andrei Iancu wrote: > ** > Nilan

Re: [OpenSIPS-Users] Load Balancer Issue

2012-11-09 Thread Nilanjan Banerjee
Hi Bogdan, Thanks for your reply. The answer to both your questions is yes. Sample of OK and ACK at the caller as follows: # U 2012/11/01 11:19:02.006375 X.X.X.206:5060 -> X.X.X.23:5080 SIP/2.0 200 OK. Record-Route: , . Via: SIP/2.0/UDP X.X.X.23:5080;branch=z9hG4bK-31168-1-0. From: sipp ;tag=31

Re: [OpenSIPS-Users] Load Balancer Issue

2012-11-09 Thread Bogdan-Andrei Iancu
Hi Nilanjan, Check in the trace if : 1) the 200 OK getting back to the caller has 2 RR headers (one from Proxy and one from LB). 2) the ACK from caller (before LB) has 2 Route headers, one pointing to LB, next to Proxy. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www

Re: [OpenSIPS-Users] Load Balancer Issue

2012-11-09 Thread Nilanjan Banerjee
Hi Bogdan, Thanks a lot for your suggestion and sorry for the delay in getting back with this...I tried the following configuration as you have suggested for the Load Balancer and the Proxy: __ Load Balancer: __ route{ if (!mf_process_maxfwd_header("3")) {

Re: [OpenSIPS-Users] Load Balancer Issue

2012-10-25 Thread Bogdan-Andrei Iancu
Hi Nil, Seems the problem is in the proxy, where you do not do RR at all. Try Proxy: route{ if (!has_totag()) { # initial request record_route(); } else { # sequential request -> obey Route indication

Re: [OpenSIPS-Users] Load Balancer Issue

2012-10-22 Thread Nilanjan Banerjee
Thanks Bogdan for taking time to respond to my post. I think you have guessed it right, I am using the sample routing script given in the Load Balancer (LB) tutorial and that is most likely sending the ACK and BYE messages directly to Client 2 bypassing the Proxy. The routing code snippets I am usi

Re: [OpenSIPS-Users] Load Balancer Issue

2012-10-21 Thread Bogdan-Andrei Iancu
Hi Nil, I wild guess is you are not correctly do "loose_route" on the LB, so instead of following the Route (to OpenSIPS Proxy), it goes directly to end destination in RURI (Client 2). Of course, I assume that all parties (LB + Proxy) do record_route() for the call, right ? Regards, Bogda

[OpenSIPS-Users] Load Balancer Issue

2012-10-20 Thread Nilanjan Banerjee
Hello, I am trying to build the following setup using OpenSIPS load balancer and the proxy functionality: Client 1 (sipp) <> OpenSIPS Load Balancer <> OpenSIPS Proxy <> Client 2 (sipp) At the client ends I am using the following commands: Client 1: sipp -sn uac -rsa [Load Balancer

Re: [OpenSIPS-Users] Load balancer

2012-03-29 Thread Miha
*To:* OpenSIPS users mailling list *Sent:* Thursday, March 29, 2012 2:40 PM *Subject:* [OpenSIPS-Users] Load balancer Hi, I installed and configured opensips. Now I fould like to use as loadbalancer between Freeswitchs. I have fallow tutorial as is written on http://www.opensips.org

Re: [OpenSIPS-Users] Load balancer

2012-03-29 Thread Faisal Rehman
: [OpenSIPS-Users] Load balancer Hi, I installed and configured opensips. Now I fould like to use as loadbalancer between Freeswitchs. I have fallow tutorial as is written on http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing. Why modules are can not be loaded if

[OpenSIPS-Users] Load balancer

2012-03-29 Thread Miha
Hi, I installed and configured opensips. Now I fould like to use as loadbalancer between Freeswitchs. I have fallow tutorial as is written on http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing. Why modules are can not be loaded if when I was having default config all module

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-27 Thread Tushar Jain
HI Robert, Here I forwarding the OPensips LB table content,it may help- mysql> select * from load_balancer; ++--+---+---++-+ | id | group_id | dst_uri | resources | probe_mode | description | ++---

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-27 Thread Tushar Jain
Hi Robert, Thanks for looking into my problem, here I am pasting my opensips.cfg file- ### Global Parameters # debug=6 log_stderror=no log_facility=LOG_LOCAL0 fork=yes children=4 port=5060 listen=udp:x.x.x.x:5

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-13 Thread Tushar Jain
Hi, I tried to debug, and found that after some calls resources for both the sip servers are to be 0 (selected for LB set with free=0 (max=0)) though max resource should be 5 and 4 respectively as set in database mysql> select * from load_balancer; ++--+---+--

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-12 Thread Tushar Jain
Hi Robert, Here is the routing part which I used for load balancing- route[1] { load_balance("2","sip"); } # LB function returns negative if no suitable destination (for requested resources) is found, # or if all destinations are full if ($retcode<0) {

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-12 Thread Tushar Jain
Hi Robert, Thanks for looking into my problem, here I am pasting my opensips.cfg file- ### Global Parameters # debug=6 log_stderror=no log_facility=LOG_LOCAL0 fork=yes children=4 port=5060 listen=udp:x.x.x.x:5060

Re: [OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-12 Thread Robert Thomas
Can you please share your opensips.cfg file On Sun, Jun 12, 2011 at 10:20 AM, Tushar Jain wrote: > I am trying to make opensips's load balancer work with 2 sip server(voip > switch). load balancer module was able to locate the sip servers and their > resources but as soon as resources of the firs

[OpenSIPS-Users] Load balancer not able to send the calls to second sip server

2011-06-12 Thread Tushar Jain
I am trying to make opensips's load balancer work with 2 sip server(voip switch). load balancer module was able to locate the sip servers and their resources but as soon as resources of the first voip server exhausts I start getting error "call failed service full" and opensips start connecting cal

[OpenSIPS-Users] Load Balancer looses Load on Reboot

2011-06-05 Thread Robert Thomas
Hi, We are implementing a Active, Standby redundancy setup for out load balancer using pacemaker. We have dialog support on our config file, and db_mode setup to 1 ( realtime ) to keep the ongoing dialogs in the database. I can restart opensips ( using the init.d / not sure why my opensipsctl re

Re: [OpenSIPS-Users] Load Balancer Failing on search_body - Looks okay?

2011-04-14 Thread Alan Frisch
Bogdan, That is correct... however, I replaced the search_body with codec_exists and seems to be fine for now. Perhaps over this weekend, I'll run some tests with the old config and see what pops up in the logs. AF On Wed, Apr 13, 2011 at 9:58 AM, Bogdan-Andrei Iancu wrote: > Hi Alan, > > So i

Re: [OpenSIPS-Users] Load Balancer Failing on search_body - Looks okay?

2011-04-13 Thread Bogdan-Andrei Iancu
Hi Alan, So if I understand correctly, the load_balance() function fails and you send the 503 from the script ? if so, do you get anything relevant in logs (about the failure)? try to set debug=6 to get more info (not recommended if a production system). Regards, Bogdan On 04/11/2011 05:22

Re: [OpenSIPS-Users] Load Balancer Failing on search_body - Looks okay?

2011-04-10 Thread Alan Frisch
FYI I mashed up the IPs in the SDP for privacy reasons... so that's why they look weird. :) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

[OpenSIPS-Users] Load Balancer Failing on search_body - Looks okay?

2011-04-10 Thread Alan Frisch
For some odd reason my OpenSIPs load_balancer module seems to fail with certain clients. Works fine with Asterisk and some other servers, but have had the occasional client get a 503 returned to it. In this case, it's a SIP application for an Android phone... I get a "bug - cannot find request res

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-12-01 Thread Bill W.
Hey Bogdan, Thanks so much for your help. For the benefit of the group, I eventually came up with a work-around for this. I use the following in opensips.cfg listen=udp:probe-internal:5090 listen=udp:probe-external:5090 Then in the hosts file on machine A I put: 10.0.10.1 probe-internal 66.180.

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-24 Thread Bogdan-Andrei Iancu
Bill W. wrote: Hello Bogdan, Okay I've been researching this more. I am not a programmer, but it looks like get_out_socket and find_si in forward.c and socket_info.c are just comparing ip addresses, and when opensips is trying to probe an interface on the same machine, but is not bound to that

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-24 Thread Bogdan-Andrei Iancu
Hi Bill, hmm...that's a tough one as, again, the kernel, when routing to destination 10.0.10.1 seas as alternatives both .2 and .3 local interfaces, but for whatever reason (kernel specific), .3 is used (default ? first configured?)... And how the auto detection is done in opensips, you cann

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-22 Thread Bill W.
Hello Bogdan, Okay I've been researching this more. I am not a programmer, but it looks like get_out_socket and find_si in forward.c and socket_info.c are just comparing ip addresses, and when opensips is trying to probe an interface on the same machine, but is not bound to that IP, then source I

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-14 Thread Bogdan-Andrei Iancu
Hi Bill, is your opensips actually listening (configured as listener in .cfg) on a interface in the private network (where the probing needs to be done) ?? Regards, Bogdan Bill W wrote: Hey Bogdan, I enabled the mhomed=1 parameter, and now I'm getting a bunch of errors in the logs. ERROR

Re: [OpenSIPS-Users] Load balancer probe _mode=1 bug?

2010-11-14 Thread Bogdan-Andrei Iancu
Hi Bill, Perfect! I backported the fix to 1.6 also. Thanks and regards, Bogdan Bill W wrote: Hey Bogdan, Looks like your patch is working. My probe interval was set to 15 seconds, but I increased it to 60 for testing. The disabling, probing, and re-enabling appear to be working correctly

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-12 Thread Bill W
Hi Bogdan, Thanks so much for explaining how interface selection works. Unfortunately the other interfaces all have daemons listening on port 5060 and are in production and I can't simply reallocate IPs. So for the error messages below, is the problem that opensips is trying to send out a pa

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-12 Thread Bogdan-Andrei Iancu
Hi Bill, I was strictly speaking about the mhomed=1 case. Opensips doing detection (based on default IP routing rules from kernel) "sees" that it should use first available interface (as returned by kernel)..it cannot simply pick up all possible and see which one is also listening on. in yo

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-11 Thread Bill W
Hey Bogdan, I think we're confusing two issues. The first issue was when mhomed=0, it was trying to options ping the internal interface with an external IP, which clearly won't work, as you described below. The second issue is when I set mhomed=1, opensips is cannot options ping anything at

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-11 Thread Bogdan-Andrei Iancu
It looks to me more like a misconfiguration on network level for the machine ...Opensips tries to detect the interface with the default route to the destination IP (the info id provided by kernel)..So if the kernel "sees" 66.180.205.11 as default interface for reaching a private IP.does loo

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-11 Thread Bill W
Ahhh, I see what's going on. Opensips is trying to probe from a different IP on that interface instead of the IP alias opensips bound to. For example, on the public interface I have IP 66.180.205.11 Then I have an IP alias of 66.180.205.3 on that same interface: eth0 66.180.205.11 eth0:0 66

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-11 Thread Bogdan-Andrei Iancu
Hi Bill, could you try the attached patch along mhomed option? the patch will simply print what is the IP opensips is trying to use for the outgoing probes Regards, Bogdan Bill W wrote: Hey Bogdan, Yes, I have 3 listen= lines; two with public IPs and one with a private IP. When I re

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-10 Thread Bill W
Hey Bogdan, Yes, I have 3 listen= lines; two with public IPs and one with a private IP. When I remove the mhomed=1 then things work as intended except for the probing. I can proxy traffic correctly on all interfaces. When I enable mhomed=1, then I get the errors below. Thanks, Bill On 11/

Re: [OpenSIPS-Users] Load balancer probing from incorrect interface

2010-11-08 Thread Bill W
Hey Bogdan, I enabled the mhomed=1 parameter, and now I'm getting a bunch of errors in the logs. ERROR:tm:t_uac: no socket found ERROR:load_balancer:lb_do_probing: probing failed ERROR:core:get_out_socket: no socket found ERROR:tm:uri2sock: no corresponding socket for af 2 Thoughts? Bill On

  1   2   >