[OpenSIPS-Users] Opensips mid registar module 2 interface configuration

Kirill Galinurov k.galinurov at gmail.com
Mon Jan 15 05:27:48 EST 2018


Hi I try mid register module in Opensips 2.3

My very simple config is:

mhomed=1

listen=udp:10.23.96.193:5060   # CUSTOMIZE ME
listen=udp:192.168.100.200:5060   # CUSTOMIZE ME


        if (is_method("REGISTER"))
       {
mid_registrar_save("location");
   switch ($retcode) {
       case 1:
           xlog("L_INFO", "forwarding REGISTER to main registrar...\n");
           $ru = "sip:192.168.100.100:5070";
           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");
   }

But REGISTER message is'nt  relayed to 192.168.100.100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180115/d7ad731b/attachment.html>


More information about the Users mailing list