<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Le 15/11/2017 à 17:30, Olivier a écrit :<br>
<blockquote type="cite"
cite="mid:CAPeT9jhkryUsw-U7U12eLB0wf85ZSp40Pw_Pd=ssMMGCbQXSjQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello,<br>
<br>
</div>
I've seen that Asterisk stores in ASTDB entries like:<br>
/SIP/Registry/spa3102 : <a
href="http://192.168.64.207:5060" moz-do-not-send="true">192.168.64.207:5060</a>:<a
href="http://3600:7013:sip:spa3102@192.168.64.207:5060"
moz-do-not-send="true">3600:7013:sip:spa3102@192.168.64.207:5060</a><br>
</div>
<div><br>
1. My understanding is that any peer that sent to Asterisk
a REGISTER message has such entry set. So having these
entries present avoid for a starting Asterisk the need to
way for incoming REGISTER messages which can be as long as
30mn to come in my use case.<br>
Is it roughly correct or am I missing something ?<br>
</div>
<div><br>
</div>
2. When configuring a passive Asterisk node (waiting for an
active node to be manually shutdown), is it safe to copy
such SIP/Registry entries from one node to another ?<br>
</div>
Both active and passive nodes will get Debian's packaged
Asterisk 13.14.1.<br>
<br>
</div>
<div>3. How is best to set such SIP/Registry entries ?<br>
</div>
<div>Using SQLite load command when asterisk is not running and
asterisk -rx "database put SIP/Registry ..." when asterisk is
running ?<br>
<br>
<br>
</div>
<div>Cheers<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
I did something like this in the past. We had a cluster of two nodes
sharing a virtual IP address. The whole AstDb file was just copied
from the active to the passive node, with a protocol like rsync or
something similar.<br>
It worked well. Then, is it totally safe ? We did not encounter any
particular issue during our tests or in our production environments.
Still, you may find theoretical edge cases which could be
problematic. For example, copying the file is not an atomic
operation, so what happens if Asterisk starts but the file has not
been entirely copied ?<br>
</body>
</html>