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

2023-08-04 Thread rvg
changed user and passwd



August 4, 2023 at 12:40 PM, r...@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"  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, r...@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:  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 
> > >  
> > >  
> > >  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@lists.opensips.org
> > >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > > 
> > 
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2023-08-04 Thread rvg
Hi,

I chose the equivalent of 32 "*diff-ip-src-contact*" and "*private-contact*" 
later on in the script and it started working!

Thx all for the help.

Regards,

Ronald Geerligs



August 4, 2023 at 9:48 AM, "Răzvan Crainea"  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, r...@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:  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 
> >  
> >  
> >  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@lists.opensips.org
> >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2023-08-04 Thread rvg
Hi, I took a look at it but I did not do anything with it.


I read through the xml nathelper_admin.xml but there the same flags as in the 
doc.

In that case 

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?

if the call was nat_uac_test(4), it would now be nat_uac_test(*private-via*) ??

Where could I obtain this CSV?


Regards,

Ronald Geerligs

# 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 1:06 PM, "Răzvan Crainea"  wrote:


> 
> 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, r...@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"  >  
> > >
> >  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, r...@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:  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 
> >  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@lists.opensips.org 
> >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >  

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

2023-08-04 Thread Răzvan Crainea
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, r...@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" > 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, r...@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:  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 
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@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2023-08-04 Thread rvg
Hi.

cfg file attached and init.d/opensips34 attached.

Regards,

Ronald Geerligs





August 4, 2023 at 9:48 AM, "Răzvan Crainea"  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, r...@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:  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 
> >  
> >  
> >  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@lists.opensips.org
> >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>#
# OpenSIPS residential configuration script
# by OpenSIPS Solutions 
#
# This script was generated via "make menuconfig", from
#   the "Residential" scenario.
# You can enable / disable more features / functionalities by
#   re-generating the scenario with different options.#
#
# Please refer to the Core CookBook at:
#  https://opensips.org/Resources/DocsCookbooks
# for a explanation of possible statements, functions and parameters.
#


### Global Parameters #

/* uncomment the following lines to enable debugging */
#debug_mode=yes

log_level=4
xlog_level=3
stderror_enabled=yes
syslog_enabled=yes
syslog_facility=LOG_LOCAL6

udp_workers=4

/* uncomment the next line to enable the auto temporary blacklisting of 
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns 
   lookup failures (default disabled) */
#dns_try_ipv6=yes


#socket=udp:127.0.0.1:5060   # CUSTOMIZE ME
#socket=tcp:127.0.0.1:5060   # CUSTOMIZE ME

socket=udp:10.0.0.186:5060 as 129.146.82.194:5060   # CUSTOMIZE ME
socket=tcp:10.0.0.186:5060 as 129.146.82.194:5060   # CUSTOMIZE ME
alias=xsp2.rvgeerligs.nl



### Modules Section 

#set module path
mpath="/usr/local/lib64/opensips/modules/"

 SIGNALING module
loadmodule "signaling.so"

 StateLess module
loadmodule "sl.so"

 Transaction Module
loadmodule "tm.so"
modparam("tm", "fr_timeout", 5)
modparam("tm", "fr_inv_timeout", 30)
modparam("tm", "restart_fr_on_each_reply", 0)
modparam("tm", "onreply_avp_mode", 1)

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

2023-08-04 Thread rvg
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"  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, r...@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:  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 
> >  
> >  
> >  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@lists.opensips.org
> >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2023-08-03 Thread Răzvan Crainea

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, r...@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:  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 



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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users