Hi guys,

Setting the $du is optional, since a NULL $du will cause t_relay() to route out to the current $ru. Is OpenSIPS listening on an interface belonging to that private network? Are there any relevant error logs? Does the message get sent out at all, even if not received on the other side? Have you checked your firewall configurations on both boxes?

Best regards,

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

On 24.01.2018 10:15, Srigo Kanapathipillai wrote:
Hi,

In your case1, you have to put (destination uri) $du = "sip:192.168.100.100:5070 <http://192.168.100.100:5070/>";

Srigo
Sent from my iPhone

On 15 Jan 2018, at 11:27, Kirill Galinurov <[email protected] <mailto:[email protected]>> wrote:

Hi I try mid register module in Opensips 2.3

My very simple config is:

mhomed=1

listen=udp:10.23.96.193:5060 <http://10.23.96.193:5060>   # CUSTOMIZE ME
listen=udp:192.168.100.200:5060 <http://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 <http://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
_______________________________________________
Users mailing list
[email protected] <mailto:[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

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

Reply via email to