<div dir="ltr">Hi,<div><br></div><div>I'm trying to implement Opensips with mid_registrar module in front of Asterisk</div><div>from manual:</div><div><pre class="gmail-programlisting" style="background-color:rgb(254,254,238);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt">if (is_method("REGISTER")) {
mid_registrar_save("location");
switch ($retcode) {
case 1:
xlog("L_INFO", "forwarding REGISTER to main registrar...\n");
$ru = "sip:<a href="http://10.0.0.3:5070">10.0.0.3:5070</a>";
if (!t_relay()) {
send_reply(500, "Server Internal Error 1");
}
break;
case 2:
xlog("L_INFO", "REGISTER has been absorbed!\n");
break;
default:
xlog("L_ERR", "mid-registrar error!\n");
send_reply(500, "Server Internal Error 2");
}
exit;
}</pre></div><div>Is there any way to check the status for REGISTER messages from main registrar?</div><div><br></div><div>thank you</div><div>Andrei</div><div><br></div></div>