<div dir="ltr"><div dir="ltr">On Mon, Oct 25, 2021 at 11:50 AM Luke Escudé <<a href="mailto:luke@primevox.net">luke@primevox.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Strange question, but we have a pretty valid use case:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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.<br></div></div></blockquote><div><br></div><div>Not in a way that would result in things working as expected. You'd need to continue with the REGISTER approach. The REGISTER itself and that operation triggers events internally which then cause other things to occur. Altering the underlying store bypasses that. Endpoint state wouldn't be accurate for example. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>