[OpenSIPS-Users] Fwd: Mid_registrar wrong expires, and how to list saved contacts?

Алексей Якимкин ayakimkin at gmail.com
Thu Aug 18 16:04:54 UTC 2022


Hello,

I tried to set up the mid_registrar module.

--
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "working_mode_preset", "single-instance-no-db")
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "outgoing_expires", 7200)
modparam("mid_registrar", "default_expires", 1800)
...
if (is_method("REGISTER")) {
                mid_registrar_save("location");
                xdbg("mid_registrar_save location 112211  $retcode \n");
                switch ($retcode) {
                case 1:
                        add_path_received();
                        xlog("forwarding REGISTER to main registrar
($$ci=$ci)\n");
                        $ru = "sip:172.19.19.120:5060";
                        route(relay);
                        break;
                case 2:
                        xlog("absorbing REGISTER! ($$ci=$ci)\n");
                        break;
                default:
                        xlog("failed to save registration! ($$ci=$ci)\n");
                }
                exit;

        }
--

1. I use outgoing_expires 7200. UA makes Register with Expires: 60 every
60sec. Opensips forwards all Register requests.  And sometimes inserts
Expires: 60 in forwarded Register request.

2. To my mind opensips was set up to store contact fields in memory. How
can I list successful registered UAs from memory? Or I have to store
contacts to DB?

Maybe I did something wrong.

-- 
Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220818/6edd7f2d/attachment.html>


More information about the Users mailing list