In my configuration I have something like this:
#### USeR LOCation module loadmodule "usrloc.so" modparam("usrloc", "nat_bflag", "NAT") modparam("usrloc", "db_mode", 1) modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # CUSTOMIZE ME route{ force_rport(); if (nat_uac_test("23")) { if (is_method("REGISTER")) { fix_nated_register(); setbflag(NAT); } else { fix_nated_contact(); setflag(NAT); } } . . . onreply_route[handle_nat] { if (nat_uac_test("1")) fix_nated_contact(); #if ( isflagset(NAT) ) #rtpproxy_answer("ro"); xlog("incoming reply\n"); } Hopefully it can give you a direction to follow. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: users-boun...@lists.opensips.org <users-boun...@lists.opensips.org> em nome de Husnain Taseer <husnain.tas...@gmail.com> Enviado: sexta-feira, 5 de fevereiro de 2016 15:06 Para: users@lists.opensips.org Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in local_route Dear Users, I am facing the same issue as discussed in the below thread few years ago. http://opensips.org/pipermail/users/2009-March/003648.html I am setting $DLG_timeout for every call so after this amount of seconds BYE is generated by TM module and sent to both caller and callee. But if callee or caller are behind NAT then the contact IP address (in their respective contact fields in dialog table) is private because of which opensips is sending BYE to their private addresses which is not reaching them and call don't disconnects. Is there any solution available to handle this issue. Regards, Husnain Taseer VoIP Developer
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users