[OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-01 Thread Remco .
Hi all, I have a clustered OpenSIPS setup (using corosync with a virtual IP address). This has been working great over the last couple of years. I now want to add an extra IP address to the boxes, again floating a VIP over these interfaces. These interfaces will be used to communicate with PSTN ga

Re: [OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-01 Thread Bogdan-Andrei Iancu
Hello Remco, In mhomed, yes you let the kernel to pick the source IP based on the routing table - so this approach delegate the logic from OpenSIPS to the kernel. And it is up to ho well the network part is set. In the future I would like to add to the DR module the possibility to set the probing

Re: [OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-02 Thread Remco .
Hi Bogdan, Thanks for your reply. The feature of setting the probe interface for DR would be great. In the meantime, I studied the exact behavior of the IPaddr2 resource agent a bit more. It turns out it uses iproute2 to bind the address. The VIP is added as a secondary IP address to the interface

Re: [OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-04 Thread Bogdan-Andrei Iancu
Hi Remco, OK, if your approach does not work, keep in mind you can still use local_route to change the outbound socket for the probing OPTIONs. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 11/02/2013 02:50 PM, Remco . wrote: > Hi Bogdan, > >

Re: [OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-08 Thread Remco .
Hi Bogdan, The proposed solution works. Instead of modifying IPaddr2 is opted to go for IPsrcaddr (also included as resource agent with corosync / linux HA stack). This agent ensures the correct source IP address is used for the default route. For the other subnet / interface, I removed the static

Re: [OpenSIPS-Users] OpenSIPS mhomed=yes and shared IP address using corosync

2013-11-12 Thread Bogdan-Andrei Iancu
Hi Remco, Perfect, thanks for the update. Anyhow, I already started the work on the drouting and load-balancing module to allow you to set a certain interface for interacting with each destination/gateway. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.