Re: uac_registrant clustering

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

Re: uac_registrant clustering

OpenSIPS - Users mailing list
Hi list!

Assuming that we have a cluster of:
 - 2 OpenSIPS nodes
 - 2 RTPEngines (each one on each OpenSIPS node)
 - separate Redis server for RTPEngines
 - Keepalived for Virtual IP
 - each OpenSIPS is configured to listen (I mean SIP traffic) on Virtual IP

My results after some research:

  When the node becomes backup, the Virtual IP is moved to Active one.
So, backup OpenSIPS does not have a working interface.
  In such a situation it does not send REGISTER messages (so, it's OK!),
and the 'opensipsctl fifo reg_list' command shows this:

root@deb-osips2:/etc/opensips# opensipsctl fifo reg_list
AOR:: sip:[hidden email] expires=180
        state:: REGISTER_TIMEOUT_STATE
        last_register_sent:: Wed Mar  6 12:46:00 2019
        registration_t_out:: Wed Mar  6 12:48:01 2019
        registrar:: sip:zzz.zzz.zzz.35
        binding:: sip:[hidden email]

And there's no any trash in log (which is also good). I changed
the log_level up to its maximum value.

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

Re: uac_registrant clustering

OpenSIPS - Users mailing list
This was for http://lists.opensips.org/pipermail/users/2018-November/040229.html

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

Re: uac_registrant clustering

Bogdan-Andrei Iancu-2
In reply to this post by OpenSIPS - Users mailing list
Hi Alexey,

There is work in progress for that - we added cluster sharing-tags
support in the module, Ovidiu still has to do some magic in the module
to trigger the register / un-register when the tag changes state.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 03/06/2019 10:01 AM, Alexey Kazantsev via Users wrote:

> Hi list!
>
> Assuming that we have a cluster of:
>   - 2 OpenSIPS nodes
>   - 2 RTPEngines (each one on each OpenSIPS node)
>   - separate Redis server for RTPEngines
>   - Keepalived for Virtual IP
>   - each OpenSIPS is configured to listen (I mean SIP traffic) on Virtual IP
>
> My results after some research:
>
>    When the node becomes backup, the Virtual IP is moved to Active one.
> So, backup OpenSIPS does not have a working interface.
>    In such a situation it does not send REGISTER messages (so, it's OK!),
> and the 'opensipsctl fifo reg_list' command shows this:
>
> root@deb-osips2:/etc/opensips# opensipsctl fifo reg_list
> AOR:: sip:[hidden email] expires=180
>          state:: REGISTER_TIMEOUT_STATE
>          last_register_sent:: Wed Mar  6 12:46:00 2019
>          registration_t_out:: Wed Mar  6 12:48:01 2019
>          registrar:: sip:zzz.zzz.zzz.35
>          binding:: sip:[hidden email]
>
> And there's no any trash in log (which is also good). I changed
> the log_level up to its maximum value.
>
> -----------------------------------------------
> BR, Alexey
> http://alexeyka.zantsev.com/
> _______________________________________________
> 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: uac_registrant clustering

Ovidiu Sas
The new feature is available in trunk.
To force a record to perform unique binding, simply add the following
two binding params to the record:
 * reg-id
 * +sip.instance

An example: ;reg-id=1;+sip.instance="<urn:uuid:11111111-AABBCCDDEEFF>"

Regards,
Ovidiu Sas


On Wed, Mar 6, 2019 at 4:20 PM Bogdan-Andrei Iancu <[hidden email]> wrote:

>
> Hi Alexey,
>
> There is work in progress for that - we added cluster sharing-tags
> support in the module, Ovidiu still has to do some magic in the module
> to trigger the register / un-register when the tag changes state.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>    https://www.opensips-solutions.com
> OpenSIPS Summit 2019
>    https://www.opensips.org/events/Summit-2019Amsterdam/
>
> On 03/06/2019 10:01 AM, Alexey Kazantsev via Users wrote:
> > Hi list!
> >
> > Assuming that we have a cluster of:
> >   - 2 OpenSIPS nodes
> >   - 2 RTPEngines (each one on each OpenSIPS node)
> >   - separate Redis server for RTPEngines
> >   - Keepalived for Virtual IP
> >   - each OpenSIPS is configured to listen (I mean SIP traffic) on Virtual IP
> >
> > My results after some research:
> >
> >    When the node becomes backup, the Virtual IP is moved to Active one.
> > So, backup OpenSIPS does not have a working interface.
> >    In such a situation it does not send REGISTER messages (so, it's OK!),
> > and the 'opensipsctl fifo reg_list' command shows this:
> >
> > root@deb-osips2:/etc/opensips# opensipsctl fifo reg_list
> > AOR:: sip:[hidden email] expires=180
> >          state:: REGISTER_TIMEOUT_STATE
> >          last_register_sent:: Wed Mar  6 12:46:00 2019
> >          registration_t_out:: Wed Mar  6 12:48:01 2019
> >          registrar:: sip:zzz.zzz.zzz.35
> >          binding:: sip:[hidden email]
> >
> > And there's no any trash in log (which is also good). I changed
> > the log_level up to its maximum value.
> >
> > -----------------------------------------------
> > BR, Alexey
> > http://alexeyka.zantsev.com/
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


--
VoIP Embedded, Inc.
http://www.voipembedded.com

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