<div dir="ltr">Hello All,<div><br></div><div>I was hoping to get some insight on some capabilities of the relatively-new mid-registrar module.  I'm not sure if this is the best place for that, but I thought it might be a good place to start.  I'm hoping to use OpenSIPS as an SBC for remote users to handle far end NAT, extra security, etc., and it seems like mid-registrar would be ideal as part of that solution.  However, if it isn't a requirement to take registration load off of the main PBX/registrar, I'm not sure if it would be the best choice over just proxying REGISTERS (such as in this suggestion <a href="https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/">https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/</a>), or setting it up as a B2BUA (like this tutorial: <a href="https://www.opensips.org/Documentation/Tutorials-B2BUA">https://www.opensips.org/Documentation/Tutorials-B2BUA</a>), which seems to be the more frequently used implementation for an SBC for remote users.</div><div><br></div><div>In addition to the general usage scenarios, I have two specific questions about the mid-registrar module:</div><div><br></div><div>1. Would the mid-registrar module be useful for handling SUBSCRIBE/NOTIFY/PUBLISH messages between the remote user and the main registrar?  Any examples I've found and the module documentation seem to only cover registrations.</div><div><br></div><div>2. Is there a reason the mid-registrar can't store registrations in the database to handle restarts or crashes better?  And if so, are there any workarounds for this?  When I try to set:</div><div><br></div><div>  modparam("usrloc", "db_mode",   2)</div><div><br></div><div>I get the error message:</div><div><br></div><div>  ERROR:mid_registrar:mod_init: the 2.3 mid_registrar only works with usrloc 'db_mode = 0'!<br></div><div><br></div><div>Any help would be greatly appreciated!</div><div><br></div><div>Thanks,</div><div>Nate</div></div>