Hi, SK!

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.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 30.08.2017 12:14, SK wrote:
Hello

opensips 2.3 with mid_registrar module activated. Installed from CentOS repositories

This configuration from tutorial does not work:
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 2) /* 0 = mirror / 1 = ct / 2 = AoR */
modparam("mid_registrar", "outgoing_expires", 7200)
modparam("mid_registrar", "insertion_mode", 0) /* 0 = contact; 1 = path */

The softphone registeres OK, but mid_registrar cannot find any contacts registered and I see MYLOG INVITE mid_registrar not found in the logs.

this is the code:
if (is_method("INVITE|MESSAGE") && $si == "18.21.16.61" && $sp == 5060) {
     xlog("MYLOG INVITE mid_registrar looking up $ru $ci !\n");
     if (!mid_registrar_lookup("location")) {
          xlog("MYLOG INVITE mid_registrar not found $ru $ci \n");
           t_reply("404", "Not Found");
           exit;
         }
xlog("MYLOG INVITE mid_registrar after looking up $ru $ci !\n");
            t_relay();
            exit;
         }

if I change config to
modparam("mid_registrar", "mode", 1) /* 0 = mirror / 1 = ct / 2 = AoR */
modparam("mid_registrar", "outgoing_expires", 7200)
modparam("mid_registrar", "insertion_mode", 1) /* 0 = contact; 1 = path */

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.

$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:

Contact:: sip:[email protected]:5060 <http://sip:[email protected]:5060> Q=

Any help or hints on what I'm doing wrong is very much appreciated. Thanks.


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to