<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hi Luke,</p>
<p><br>
</p>
<p>If you're in a position to migrate astdb along with the
instance. So what we have is astdb in ramdisk, upon *clean*
asterisk shutdown we copy that to a clustered filesystem, and
prior to startup clone that back onto ramdisk.</p>
<p><br>
</p>
<p>This works for chan_sip at least.</p>
<p><br>
</p>
<p>You can presumably make periodic backups of the astdb onto
clustered media if you're trying to protect against a crash.<br>
</p>
<p><br>
</p>
<p>Entire system is set up to not have to worry about the ephemeral
nature of astdb, so even if we lose it completely everything will
recover within 10 minutes, which (for us) is an acceptable risk
for the complete failure use-case.<br>
</p>
<p><br>
</p>
<p>Kind Regards,<br>
Jaco<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>On 2021/10/25 17:02, Luke Escudé wrote:<br>
</p>
<blockquote type="cite"
cite="mid:SA0PR18MB3647D87D2D23E189B6BD499CBE839@SA0PR18MB3647.namprd18.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span
style="margin:0px;font-size:12pt;color:black;background-color:rgb(255,
255, 255)">Strange question, but we have a pretty valid use
case:</span>
<div
style="margin:0px;font-size:12pt;color:black;background-color:rgb(255,
255, 255)">
<br>
</div>
<div
style="margin:0px;font-size:12pt;color:black;background-color:rgb(255,
255, 255)">
Is there a way to "tell" asterisk where a registered device is
located? Basically force-register the device, so that Asterisk
thinks the device has registered the "normal" way?</div>
<div
style="margin:0px;font-size:12pt;color:black;background-color:rgb(255,
255, 255)">
<br>
</div>
<div
style="margin:0px;font-size:12pt;color:black;background-color:rgb(255,
255, 255)">
Use case: Our cluster of Asterisks will move Asterisk
instances around various datacenters to maximize uptime,
quality, etc. Whenever Asterisk starts back up, it has no
knowledge of devices registered during its previous existence.
So, our SIP Proxy will iterate through all registrations and
proxy the REGISTER packets to Asterisk. However I am looking
for a better way to do this, like reaching directly into the
AstDB or something to "put" the devices in memory.</div>
<span style="margin:0px;font-size:15px;font-family:"Segoe
UI", "Segoe UI Web (West European)",
"Segoe UI", -apple-system, "system-ui",
Roboto, "Helvetica Neue", sans-serif;color:rgb(32,
31, 30);background-color:rgb(255, 255, 255)"></span><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div style="">
<p style="color:rgb(0,0,0); font-family:Calibri,sans-serif;
font-size:12pt; margin:0in 0in 0.0001pt">
<br>
</p>
<div dir="ltr" style="color:rgb(0,0,0);
font-family:Calibri,Helvetica,sans-serif; font-size:12pt;
margin:0px; background-color:rgb(255,255,255)">
</div>
<p style="color:rgb(0,0,0); font-family:Calibri,sans-serif;
font-size:12pt; text-align:start;
background-color:rgb(255,255,255); margin:0px">
<br>
</p>
<p style="text-align:start;
background-color:rgb(255,255,255); margin:0px"><span
style="margin:0px"><b style="color:rgb(0,0,0);
font-family:Calibri,sans-serif; font-size:16px"><span
style="margin:0px; font-family:Arial,sans-serif;
color:black">Luke </span></b><span style=""><font
face="Arial, sans-serif" color="#000000"><b>Escudé</b></font></span><br>
</span></p>
<p style="color:rgb(0,0,0); font-family:Calibri,sans-serif;
font-size:12pt; text-align:start;
background-color:rgb(255,255,255); margin:0px">
<br>
</p>
<br>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>