[OpenSIPS-Users] opensips v 3.3 to 3.4 on Oracle cloud ARM

Răzvan Crainea razvan at opensips.org
Fri Aug 4 10:06:50 UTC 2023


The migration document[1] clearly states to "Check the module docs for 
the flags parameters of the fix_nated_sdp() and nat_uac_test() functions 
for the mapping between the old and new flag names." Did you do that? 
You might have missed the fact that the nat_uac_test() function no 
longer receives arguments as integers, they have to be strings. Please 
check the 3.4 documentation[2].

[2] https://opensips.org/docs/modules/3.4.x/nathelper.html#func_nat_uac_test

PS: please do not attach files in a mailing list message

Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www.siphub.com

On 8/4/23 12:40, rvg at rvgeerligs.nl wrote:
> Hi.
> 
> cfg file attached and init.d/opensips34 attached.
> 
> Regards,
> 
> Ronald Geerligs
> 
> 
> 
> August 4, 2023 at 9:48 AM, "Răzvan Crainea" <razvan at opensips.org 
> <mailto:razvan at opensips.org?to=%22R%C4%83zvan%20Crainea%22%20%3Crazvan%40opensips.org%3E>> wrote:
> 
>     Hi, Ronald!
> 
>     Usage of nat_uac_test has been changed between 3.3 and 3.4 [1]. Did you
>     update your function according to the 3.4 syntax? Can you paste the
>     snippet you are using?
> 
>     [1] https://www.opensips.org/Documentation/Migration-3-3-0-to-3-4-0
>     <https://www.opensips.org/Documentation/Migration-3-3-0-to-3-4-0>
> 
>     Best regards,
> 
>     Răzvan Crainea
>     OpenSIPS Core Developer / SIPhub CTO
>     http://www.opensips-solutions.com/
>     <http://www.opensips-solutions.com/> / https://www.siphub.com/
>     <https://www.siphub.com/>
> 
>     On 8/3/23 19:15, rvg at rvgeerligs.nl <mailto:rvg at rvgeerligs.nl> wrote:
> 
>         Hi ,
>         I compiled v 3.3 all is working. Compiled 3.4 and I get the
>         errors below.
>         I looked at the source 3.4, also at the source in version 3.3.5
>         (nathelper and nattraversal) but I could not simply replace the 3.4
>         source with the 3.3 source.
>         This looks like a compiler setting or a programm issue.
>         Please advice,
>         Ronald Geerligs
>         ---
>         error from logfile:
>         DBG:core:trace_prot_bind: <proto_hep> has no bind api function
>         2023-08-03T12:20:09.298662+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:core:init_xlog: failed to load trace protocol!
>         2023-08-03T12:20:09.298686+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:core:count_module_procs: modules require 1 extra processes
>         2023-08-03T12:20:09.298712+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:core:init_pkg_stats: setting stats for 18 processes
>         2023-08-03T12:20:09.298741+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:core:fix_actions: fixing force_rport,
>         /etc/opensips/opensips34.cfg:169
>         2023-08-03T12:20:09.298769+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:core:fix_actions: fixing nat_uac_test,
>         /etc/opensips/opensips34.cfg:170
>         2023-08-03T12:20:09.298796+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         ERROR:core:fix_cmd: Param [1] expected to be a string or variable
>         2023-08-03T12:20:09.298826+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         ERROR:core:fix_actions: Failed to fix command <nat_uac_test>
>         2023-08-03T12:20:09.298851+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         ERROR:core:fix_actions: fixing failed (code=-6) at
>         /etc/opensips/opensips34.cfg:170
>         2023-08-03T12:20:09.298879+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         CRITICAL:core:fix_expr: fix_actions error
>         2023-08-03T12:20:09.298905+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         ERROR:core:main: failed to fix configuration with err code -6
>         2023-08-03T12:20:09.298936+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         INFO:core:cleanup: cleanup
>         2023-08-03T12:20:09.298962+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         DBG:presence_xml:destroy: start
>         2023-08-03T12:20:09.298991+00:00 xsp2
>         /usr/local/sbin/opensips[52802]:
>         NOTICE:presence:destroy: destroy module ...
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>         <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
> 
> 
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list