<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">Hi, </span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">In your case1, you have to put (destination uri) $du = "sip:<a href="http://192.168.100.100:5070/">192.168.100.100:5070</a>"; </span></div><div id="AppleMailSignature"><br></div>Srigo<br>Sent from my iPhone</div><div><br>On 15 Jan 2018, at 11:27, Kirill Galinurov <<a href="mailto:k.galinurov@gmail.com">k.galinurov@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi I try mid register module in Opensips 2.3 <div><br></div><div>My very simple config is:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">mhomed=1
</span><br>
<br>listen=udp:<a href="http://10.23.96.193:5060">10.23.96.193:5060</a> # CUSTOMIZE ME
<br>listen=udp:<a href="http://192.168.100.200:5060">192.168.100.200:5060</a> # CUSTOMIZE ME
<br>
<br><br>
</span><span style="font-family:monospace"><span style="color:rgb(0,0,0)"> if (is_method("REGISTER"))
</span><br> {
<br>mid_registrar_save("location");
<br> switch ($retcode) {
<br> case 1:
<br> xlog("L_INFO", "forwarding REGISTER to main registrar...\n");
<br> $ru = "sip:<a href="http://192.168.100.100:5070">192.168.100.100:5070</a>";
<br> if (!t_relay()) {
<br> send_reply("500", "Server Internal Error 1");
<br> }
<br> <br> break;
<br> case 2:
<br> xlog("L_INFO", "REGISTER has been absorbed!\n");
<br> break;
<br> default:
<br> xlog("L_ERR", "mid-registrar error!\n");
<br> send_reply("500", "Server Internal Error 2");
<br> }<br><br></span></div><div><span style="font-family:monospace">But REGISTER message is'nt </span><font face="monospace"> relayed to 192.168.100.100</font><span style="font-family:monospace"> </span></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Users mailing list</span><br><span><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></span><br><span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span><br></div></blockquote></body></html>