<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi, SK!</tt></p>
<p><tt>Can you please run "opensips -V" and post the output? If
you're running 2.3.1, there is a good chance it's the initial
release (Jul 5). Since then, quite a few fixes have went into
the module. Moreover, yesterday we bumped the minor release to
2.3.2, so I would suggest updating to this version and redoing
your tests.</tt></p>
<p><tt>Best regards,</tt><br>
</p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 30.08.2017 12:14, SK wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG7C_Amrc_Rx9rX3iXek9u8axMxPLkGowH-UtnznUVPSzNTNTA@mail.gmail.com">
<div dir="ltr">Hello
<div><br>
</div>
<div>opensips 2.3 with mid_registrar module activated. Installed
from CentOS repositories</div>
<div><br>
</div>
<div>This configuration from tutorial does not work:</div>
<div>
<div>loadmodule "mid_registrar.so"</div>
<div>modparam("mid_registrar", "mode", 2) /* 0 = mirror / 1 =
ct / 2 = AoR */</div>
<div>modparam("mid_registrar", "outgoing_expires", 7200)</div>
<div>modparam("mid_registrar", "insertion_mode", 0) /* 0 =
contact; 1 = path */</div>
<div><br>
</div>
<div>The softphone registeres OK, but mid_registrar cannot
find any contacts registered and I see MYLOG INVITE
mid_registrar not found in the logs. </div>
<div><br>
</div>
<div>this is the code: </div>
<div>
<div>if (is_method("INVITE|MESSAGE") && $si ==
"18.21.16.61" && $sp == 5060) {</div>
<div> xlog("MYLOG INVITE mid_registrar looking up $ru
$ci !\n");</div>
<div> if (!mid_registrar_lookup("location")) {</div>
<div> xlog("MYLOG INVITE mid_registrar not found
$ru $ci \n");</div>
<div> t_reply("404", "Not Found");</div>
<div> exit;</div>
<div> }</div>
<div> xlog("MYLOG INVITE mid_registrar after
looking up $ru $ci !\n");</div>
<div> t_relay();</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>if I change config to </div>
<div>
<div>modparam("mid_registrar", "mode", 1) /* 0 = mirror / 1
= ct / 2 = AoR */</div>
<div>modparam("mid_registrar", "outgoing_expires", 7200)</div>
<div>modparam("mid_registrar", "insertion_mode", 1) /* 0 =
contact; 1 = path */</div>
</div>
<div><br>
</div>
<div>It can find the contact, but does not populate $ru and
does not send INVITE to softphone with t_relay() failing to
a loop, sending back one 100 Trying and finishing the loop
with Too Many Hops error.</div>
<div><br>
</div>
<div>$ru keeps being the same, but as I understand it should
be changed to the actual Contact which I clearly see in the
location record when do opensipsctl ul show:</div>
<div><br>
</div>
<div>Contact:: <a href="http://sip:0044018503@10.1.8.16:5060"
moz-do-not-send="true">sip:0044018503@10.1.8.16:5060</a>
Q=<br>
</div>
<div><br>
</div>
<div>Any help or hints on what I'm doing wrong is very much
appreciated. Thanks. </div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>