Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread David Villasmil
Can we see your cfg ? On Mon, 16 Dec 2019 at 16:44, Mickael Hubert wrote: > Thanks for your help David, > I'm already in debug level: > log_level=4 > > UAC is not in location table, because it's IP2IP connection (without > registration) > > I did another test: > I try to activate "Pp" in dialog

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread Mickael Hubert
Thanks for your help David, I'm already in debug level: log_level=4 UAC is not in location table, because it's IP2IP connection (without registration) I did another test: I try to activate "Pp" in dialog creation to send OPTIONS to both sides (leg A and B) SIP client (tcp:192.168.10.203) -- my NA

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread David Villasmil
please increase the debug level and paste the log. Also, check what is saved as the location for the user. On Mon, 16 Dec 2019 at 14:48, Mickael Hubert wrote: > Maybe I founded: > I tested a call through Internet connection and I can see (uac natted): > > Dec 16 15:15:44 am-frontal1a-test /usr/l

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread Mickael Hubert
Maybe I founded: I tested a call through Internet connection and I can see (uac natted): Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips[31165]: DBG:core:proto_tcp_send: *no open tcp connection found*, opening new one, async = 1 Dec 16 15:15:44 am-frontal1a-test /usr/local/sbin/opensips

Re: [OpenSIPS-Users] Opensips 3 & rtpengine

2019-12-16 Thread info
I just realized my stupidity The correct setup is loadmodule "rtpengine.so" modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:2223") and now : Dec 4 22:34:05 opensips1 /usr/local/sbin/opensips[3850]: INFO:rtpengine:rtpe_test: rtp proxy found, support for it enabled Dec 4 22:34:05 open

Re: [OpenSIPS-Users] Memory Leak

2019-12-16 Thread Johan De Clercq
Check rtcp mux demux. On Wed, 4 Dec 2019, 20:22 Callum Guy, wrote: > Thanks Johan, I've been through the rtpengine docs and source and can't > see any way to disable the RTCP call stat reports. Having said that I'm no > longer confident that RTPEngine is the problem - I'm losing memory > constan

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread Mickael Hubert
Hi David, Yes I use it if (nat_uac_test("3") && ($Ri == $var(publicip) || $Ri == $var(vpnip))) { xlog("L_INFO","$avp(startlog) -- Nated EP Detected\n"); if (force_rport()) { xlog("L_INFO","$avp(startlog) -- RPORT parameter forced\n"); } if (fix_nated_contact()) { xlog("L_INFO","$avp(startlog) -- N

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread David Villasmil
Aré you using nathelper? On Mon, 16 Dec 2019 at 12:06, Mickael Hubert wrote: > Hi all, > I advanced in my LAB > I have this configuration: > SIP client (tcp:192.168.10.203) -- my NAT router --> (tcp:2.2.2.2:8060) > opensips (udp:10.1.15.126:5060) --> rest of infra (udp:10.1.15.0/24:5060) > > Whe

Re: [OpenSIPS-Users] UDP to TCP issue with Re-INVITE

2019-12-16 Thread Mickael Hubert
Hi all, I advanced in my LAB I have this configuration: SIP client (tcp:192.168.10.203) -- my NAT router --> (tcp:2.2.2.2:8060) opensips (udp:10.1.15.126:5060) --> rest of infra (udp:10.1.15.0/24:5060) When I received the reinvite from "rest of infra" on private interface (10.1.15.126), I could se

Re: [OpenSIPS-Users] problem compiling lua module

2019-12-16 Thread johan
fixed, used wrong version of lua (needs to be 5.1 => lua5.1, lua5.1dev and libmemcached-dev). On 16.12.19 12:08, David Villasmil wrote: Do you have lua’s development libraries? On Mon, 16 Dec 2019 at 10:55, johan > wrote: When changing the header path to below me

Re: [OpenSIPS-Users] problem compiling lua module

2019-12-16 Thread johan
Fixed it. you need lua5.1, lua5.1-dev and libmemcached-dev BR, On 16.12.19 11:55, johan wrote: When changing the header path to below mentioned directory, you get this: make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua' Compiling sipapi.c sipapi.c:895:30: error: array type has

Re: [OpenSIPS-Users] problem compiling lua module

2019-12-16 Thread David Villasmil
Do you have lua’s development libraries? On Mon, 16 Dec 2019 at 10:55, johan wrote: > When changing the header path to below mentioned directory, you get this: > > > > make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua' > Compiling sipapi.c > sipapi.c:895:30: error: array type has in

Re: [OpenSIPS-Users] problem compiling lua module

2019-12-16 Thread johan
When changing the header path to below mentioned directory, you get this: make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua' Compiling sipapi.c sipapi.c:895:30: error: array type has incomplete element type ‘struct luaL_reg’  static const struct luaL_reg siplua_api_mylib [] =    

[OpenSIPS-Users] problem compiling lua module

2019-12-16 Thread johan
Hi, the system doesn't find lua.h make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua' Compiling sipapi.c sipapi.c:27:17: fatal error: lua.h: No such file or directory #include ^ compilation terminated. ../../Makefile.rules:25: recipe for target 'sipapi.o' failed ma