<div dir="ltr">Hi Francos, <div><br><div>If both of the servers don&#39;t have to be active all the time then maybe a LinuxHA or VIP based approach, but I feel that its not the case. <br><br>I&#39;d suggest to get help from the two mi functions of uac_registrant module, one to monitor and other to reload. <br><br></div><div>I assume both servers have their own database, <br><br>- Create a monitoring script which monitors the active registering server and <a href="http://www.opensips.org/html/docs/modules/2.1.x/uac_registrant.html#id258196">monitor the states</a> , <br>- If you detect failures then remove entry from that server&#39;s database and send reload. <br>- Add the registration data into other server and send the reload command. <br>- Keep doing this in loop.(maybe cronjob every 3 minutes)<br><br>That&#39;s something that I think can help you out since uac_registrant module keeps sending registration attempts internally on its own, hence it is only logical to control it from outside.</div><div><br></div><div>Regards,</div><div>Sammy</div><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 11:01 AM, Francjos <span dir="ltr">&lt;<a href="mailto:35633@heb.be" target="_blank">35633@heb.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have to configure my two opensips servers so that one and only one can<br>
register at a provider via a sip trunk. The provider allows one registration<br>
pre account, so the two opensips can&#39;t register at the same time.<br>
I know that in order opensips server to register at a proviver, i must use<br>
the uac_registrant module.<br>
<br>
My questions are these:<br>
<br>
Which mechanism can i use so that (and how to configure it) , if one of the<br>
two servers fails, the other is aware of the event?<br>
<br>
Once the other is aware ot the event, how can this last directly register to<br>
the provider via the same and UNIQUE sip trunk?<br>
<br>
I realy realy need help.<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Two-opensips-servers-and-one-sip-trunk-tp7602012.html" rel="noreferrer" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Two-opensips-servers-and-one-sip-trunk-tp7602012.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>