Re: [OpenSIPS-Users] OpenSIPS2.4 HA and Dialog Replication

2019-09-09 Thread Sharad Kumar
Thanks. It worked
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS2.4 HA and Dialog Replication

2019-08-21 Thread Steve Kumar
Thanks, it worked.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS2.4 HA and Dialog Replication

2019-08-21 Thread Ben Newlin
You need to allow binding to non-local sockets on each machine.

# echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind

Ben Newlin

From: Users  on behalf of Steve Kumar 

Reply-To: OpenSIPS users mailling list 
Date: Wednesday, August 21, 2019 at 8:12 PM
To: "users@lists.opensips.org" 
Subject: [OpenSIPS-Users] OpenSIPS2.4 HA and Dialog Replication

Hi,
Need some help from smart folks.

I have setup a HA between 2 nodes. So this is the current setup  and these are 
the problems I am getting ->


So I have installed keepalived and only node has floating IP at one time.
I have enabled clusterer module and both nodes can see each other and ping each 
other.
And I have also setup the dialog replication

Problems ->
Where I define my listeners in opensips script I define first Virtual IP listen 
and then local IP. But other opensips node doesn't have VIP so it's opensips 
fails when I start the service, you know understand what I am saying.
This are the listeners on first active node ->
# Proto Bin Listeners
listen = bin:10.10.10.236:<http://10.10.10.236:>

# Virtual / HA IP
listen=udp:10.10.10.111:5060<http://10.10.10.111:5060> as X.X.X.X:5060
listen=tcp:10.10.10.111:5060<http://10.10.10.111:5060> as X.X.X.X:5060

# Administrative IP
listen=udp:10.10.10.236:5060<http://10.10.10.236:5060> as X.X.X.X.:5060
listen=tcp:10.10.10.236:5060<http://10.10.10.236:5060> as X.X.X.X:5060

You can see this node has VIP -> 10.10.10.111

But other backup node in HA doesn't have VIP so opensips service was failing to 
start, so what I did I removed that VIP listener from other node and I started 
the openSIPS service.But now I am getting problem in dialog replication because 
other node is not accepting dialogs because active node is sending dialog from 
VIP 10.10.10.111 and other node is not accepting. I am getting this error.

ERROR:dialog:dlg_replicated_created dialog doesn't match caller's listening 
socket udp:10.10.10.111:5060<http://10.10.10.111:5060>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS2.4 HA and Dialog Replication

2019-08-21 Thread Steve Kumar
Hi,
Need some help from smart folks.

I have setup a HA between 2 nodes. So this is the current setup  and these
are the problems I am getting ->


So I have installed keepalived and only node has floating IP at one time.
I have enabled clusterer module and both nodes can see each other and ping
each other.
And I have also setup the dialog replication

Problems ->
Where I define my listeners in opensips script I define first Virtual IP
listen and then local IP. But other opensips node doesn't have VIP so it's
opensips fails when I start the service, you know understand what I am
saying.
This are the listeners on first active node ->
# Proto Bin Listeners
listen = bin:10.10.10.236:

# Virtual / HA IP
listen=udp:10.10.10.111:5060 as X.X.X.X:5060
listen=tcp:10.10.10.111:5060 as X.X.X.X:5060

# Administrative IP
listen=udp:10.10.10.236:5060 as X.X.X.X.:5060
listen=tcp:10.10.10.236:5060 as X.X.X.X:5060

You can see this node has VIP -> 10.10.10.111

But other backup node in HA doesn't have VIP so opensips service was
failing to start, so what I did I removed that VIP listener from other node
and I started the openSIPS service.But now I am getting problem in dialog
replication because other node is not accepting dialogs because active node
is sending dialog from VIP 10.10.10.111 and other node is not accepting. I
am getting this error.

ERROR:dialog:dlg_replicated_created dialog doesn't match caller's listening
socket udp:10.10.10.111:5060
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users