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

rvg at rvgeerligs.nl rvg at rvgeerligs.nl
Fri Aug 4 09:13:44 UTC 2023


Hi Răzvan,

The error happens at the if (nat_uac_test(23)), fix_nated_register(); This part of the 3.4 cfg file is the same as in the 3.3 cfg file. It was generated with osipsconfig in the 3.4 sbin directory, after compilation.

I did not do anything with the nathelper or nat_traversal .c files.


Regards,

Ronald Geerligs

--- from cfg file:



# 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");



}



}






August 4, 2023 at 9:48 AM, "Răzvan Crainea" <razvan at opensips.org> 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
> 
> Best regards,
> 
> Răzvan Crainea
> OpenSIPS Core Developer / SIPhub CTO
> http://www.opensips-solutions.com/ / https://www.siphub.com/
> 
> On 8/3/23 19:15, 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
> >  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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230804/3bae577d/attachment-0001.html>


More information about the Users mailing list