<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div>Hi, I took a look at it but I did not do anything with it.</div><div><br></div><div><br></div><div>I read through the xml nathelper_admin.xml but there the same flags as in the doc.</div><div><br></div><div>In that case </div><div><br></div><div>nat_uac_test(23)  should use flag 23 and I can't find what flag that is. It says that a CSV file can be provided?</div><div><br></div><div>if the call was nat_uac_test(4), it would now be nat_uac_test(<i style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span style="font-size: 16px;">private-via</span></i>) ??</div><div><br></div><div>Where could I obtain this CSV?</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Ronald Geerligs</div><div><br></div><pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;"># initial NAT handling; detect if the request comes from behind a NAT
        # and apply contact fixing
        force_rport();
        if (nat_uac_test(23)) {
                if (is_method("REGISTER")) {
                        fix_nated_register();
                        setbflag("NAT");
                } else {
                        fix_nated_contact();
                        setflag("NAT");
                }
        }</pre><div><br></div><div><br></div><div><br></div><div><br></div><p>August 4, 2023 at 1:06 PM, "Răzvan Crainea" <<a href="mailto:razvan@opensips.org?to=%22R%C4%83zvan%20Crainea%22%20%3Crazvan%40opensips.org%3E" target="_blank" tabindex="-1">razvan@opensips.org</a>> wrote:</p><blockquote><div>The migration document[1] clearly states to "Check the module docs for </div><div>the flags parameters of the fix_nated_sdp() and nat_uac_test() functions </div><div>for the mapping between the old and new flag names." Did you do that? </div><div>You might have missed the fact that the nat_uac_test() function no </div><div>longer receives arguments as integers, they have to be strings. Please </div><div>check the 3.4 documentation[2].</div><div><br></div><div>[2] <a href="https://opensips.org/docs/modules/3.4.x/nathelper.html#func_nat_uac_test" target="_blank">https://opensips.org/docs/modules/3.4.x/nathelper.html#func_nat_uac_test</a></div><div><br></div><div>PS: please do not attach files in a mailing list message</div><div><br></div><div>Best regards,</div><div><br></div><div>Răzvan Crainea</div><div>OpenSIPS Core Developer / SIPhub CTO</div><div><a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com/</a> / <a href="https://www.siphub.com/" target="_blank">https://www.siphub.com/</a></div><div><br></div><div>On 8/4/23 12:40, <a href="mailto:rvg@rvgeerligs.nl">rvg@rvgeerligs.nl</a> wrote:</div><blockquote><div>Hi.</div><div> </div><div> cfg file attached and init.d/opensips34 attached.</div><div> </div><div> Regards,</div><div> </div><div> Ronald Geerligs</div><div> </div><div> </div><div> </div><div> August 4, 2023 at 9:48 AM, "Răzvan Crainea" <razvan@opensips.org </div><div> <mailto:razvan@opensips.org?to=%22R%C4%83zvan%20Crainea%22%20%3Crazvan%40opensips.org%3E>> wrote:</div><div> </div><div>     Hi, Ronald!</div><div> </div><div>     Usage of nat_uac_test has been changed between 3.3 and 3.4 [1]. Did you</div><div>     update your function according to the 3.4 syntax? Can you paste the</div><div>     snippet you are using?</div><div> </div><div>     [1] <a href="https://www.opensips.org/Documentation/Migration-3-3-0-to-3-4-0" target="_blank">https://www.opensips.org/Documentation/Migration-3-3-0-to-3-4-0</a></div><div>     <https://www.opensips.org/Documentation/Migration-3-3-0-to-3-4-0></div><div> </div><div>     Best regards,</div><div> </div><div>     Răzvan Crainea</div><div>     OpenSIPS Core Developer / SIPhub CTO</div><div>     <a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com/</a></div><div>     <http://www.opensips-solutions.com/> / <a href="https://www.siphub.com/" target="_blank">https://www.siphub.com/</a></div><div>     <https://www.siphub.com/></div><div> </div><div>     On 8/3/23 19:15, <a href="mailto:rvg@rvgeerligs.nl">rvg@rvgeerligs.nl</a> <mailto:rvg@rvgeerligs.nl> wrote:</div><div> </div><div>         Hi ,</div><div>         I compiled v 3.3 all is working. Compiled 3.4 and I get the</div><div>         errors below.</div><div>         I looked at the source 3.4, also at the source in version 3.3.5</div><div>         (nathelper and nattraversal) but I could not simply replace the 3.4</div><div>         source with the 3.3 source.</div><div>         This looks like a compiler setting or a programm issue.</div><div>         Please advice,</div><div>         Ronald Geerligs</div><div>         ---</div><div>         error from logfile:</div><div>         DBG:core:trace_prot_bind: <proto_hep> has no bind api function</div><div>         2023-08-03T12:20:09.298662+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:core:init_xlog: failed to load trace protocol!</div><div>         2023-08-03T12:20:09.298686+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:core:count_module_procs: modules require 1 extra processes</div><div>         2023-08-03T12:20:09.298712+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:core:init_pkg_stats: setting stats for 18 processes</div><div>         2023-08-03T12:20:09.298741+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:core:fix_actions: fixing force_rport,</div><div>         /etc/opensips/opensips34.cfg:169</div><div>         2023-08-03T12:20:09.298769+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:core:fix_actions: fixing nat_uac_test,</div><div>         /etc/opensips/opensips34.cfg:170</div><div>         2023-08-03T12:20:09.298796+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         ERROR:core:fix_cmd: Param [1] expected to be a string or variable</div><div>         2023-08-03T12:20:09.298826+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         ERROR:core:fix_actions: Failed to fix command <nat_uac_test></div><div>         2023-08-03T12:20:09.298851+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         ERROR:core:fix_actions: fixing failed (code=-6) at</div><div>         /etc/opensips/opensips34.cfg:170</div><div>         2023-08-03T12:20:09.298879+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         CRITICAL:core:fix_expr: fix_actions error</div><div>         2023-08-03T12:20:09.298905+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         ERROR:core:main: failed to fix configuration with err code -6</div><div>         2023-08-03T12:20:09.298936+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         INFO:core:cleanup: cleanup</div><div>         2023-08-03T12:20:09.298962+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         DBG:presence_xml:destroy: start</div><div>         2023-08-03T12:20:09.298991+00:00 xsp2</div><div>         /usr/local/sbin/opensips[52802]:</div><div>         NOTICE:presence:destroy: destroy module ...</div><div>         _______________________________________________</div><div>         Users mailing list</div><div>         <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:Users@lists.opensips.org></div><div>         <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div><div>         <http://lists.opensips.org/cgi-bin/mailman/listinfo/users></div><div> </div><div> </div><div>     _______________________________________________</div><div>     Users mailing list</div><div>     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:Users@lists.opensips.org></div><div>     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div><div>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users></div><div> </div><div> </div><div> </div><div> _______________________________________________</div><div> Users mailing list</div><div> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></div><div> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></blockquote><div><br></div><div>_______________________________________________</div><div>Users mailing list</div><div><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></div><div><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></blockquote><div><br></div></body></html>