Re: [SR-Users] Kamailio memory manager

2018-10-02 Thread Igor Olhovskiy
Thanks Daniel But how to find out what exact eats all memory? pkg.stats { entry: 0 pid: 13 rank: 0 used: 3639400 free: 3323464 real_used: 5065144 total_size: 8388608 total_frags: 38 } { entry: 1 pid: 14 rank: 1 used: 3672088 free: 3253128 real_used: 5135480 total_size: 8388608 total_frags: 125 }

Re: [SR-Users] set_advertised_address with variable

2018-10-02 Thread Patrick Wakano
Thanks for the replies Daniel and Henning! The problem with the listen address is that it can't be set at run time per call, for example, after reading the value from the DB And also it is way too dirty to use the set_advertised_address with a static string value Long story short, we have a

Re: [SR-Users] rr module not detecting nat=ws route param

2018-10-02 Thread Jon Bonilla (Manwe)
El Tue, 2 Oct 2018 22:15:48 +0200 Daniel-Constantin Mierla escribió: > Even with client on the same host as the server, the port should be > different. R-URI of ACK has port 5060, like on of the Route headers, so > I assume only kamailio is using that port. > > R-URI for ACK has to be the contac

Re: [SR-Users] rr module not detecting nat=ws route param

2018-10-02 Thread Daniel-Constantin Mierla
Even with client on the same host as the server, the port should be different. R-URI of ACK has port 5060, like on of the Route headers, so I assume only kamailio is using that port. R-URI for ACK has to be the contact URI from 200ok and if it is kamailio ip:port, then that is what loose_route() i

Re: [SR-Users] rr module not detecting nat=ws route param

2018-10-02 Thread Jon Bonilla (Manwe)
El Tue, 2 Oct 2018 21:34:12 +0200 Daniel-Constantin Mierla escribió: > Hello, > > I see MYIP in R-URI and then just MY in the Route headers. Are they > different or the same value? Sorry, it's the same value. >If the same value, is the sip server > address? if yes, then R-URI is matching loc

Re: [SR-Users] Kamailio memory manager

2018-10-02 Thread Daniel-Constantin Mierla
Hello, pkg is out of free size, not shm. See the output for: kamctl rpc pkg.stats You may need to increase the pkg allocated pool with -M command line parameter. Cheers, Daniel On 02.10.18 20:02, Igor Olhovskiy wrote: > Hi! > > What is the best way to debug messages like... > > 29(42) ERROR:

Re: [SR-Users] rr module not detecting nat=ws route param

2018-10-02 Thread Daniel-Constantin Mierla
Hello, I see MYIP in R-URI and then just MY in the Route headers. Are they different or the same value? If the same value, is the sip server address? if yes, then R-URI is matching local address (myself) and that means it is a strict routing and the R-URI is the route processed at that step. Likel

[SR-Users] Kamailio memory manager

2018-10-02 Thread Igor Olhovskiy
Hi! What is the best way to debug messages like... 29(42) ERROR: [core/mem/q_malloc.c:290]: qm_find_free(): qm_find_free(0x7fad301cf010, 56); Free fragment not found! 29(42) ERROR: [core/mem/q_malloc.c:423]: qm_malloc(): qm_malloc(0x7fad301cf010, 56) called from core: core/data_lump.c: dup_lump

Re: [SR-Users] rr module not detecting nat=ws route param

2018-10-02 Thread Jon Bonilla (Manwe)
El Mon, 1 Oct 2018 12:16:28 +0300 Igor Olhovskiy escribió: > Hi! > > What is your original packet, before calling loose_route? > 2018/10/02 17:12:41.007053 OUT:5060 -> MYIP:5060 ACK sip:86to7j7i@MYIP:5060;alias=MY~42088~6;transport=ws;ob SIP/2.0 Via: SIP/2.0/UDP OUT;branch=z9hG4bK9658.2fd07

Re: [SR-Users] clang compiler warnings

2018-10-02 Thread Juha Heinanen
Floimair Florian writes: > I think your mail was intended for the baresip mailing list. > There is no baresip.c in Kamailio I just wanted to check if it is really so that clang doesn't generate unused compiler warnings. Any C source is OK for that test and I just happened to have baresip.c aroun

Re: [SR-Users] clang compiler warnings

2018-10-02 Thread Floimair Florian
Juha I think your mail was intended for the baresip mailing list. There is no baresip.c in Kamailio With best regards Florian Floimair Innovation - Software-Development COMMEND INTERNATIONAL GMBH A-5020 Salzburg, Saalachstraße 51 http://www.commend.com Security an

[SR-Users] clang compiler warnings

2018-10-02 Thread Juha Heinanen
I just made a test and, for sure, clang warns about unused variables: $ clang -Wunused-variable -I/usr/include/re -I/usr/include/baresip -lbaresip -lrem -lre baresip.c baresip.c:48:6: warning: unused variable 'unused' [-Wunused-variable] int unused; ^ 1 warning generated. --

Re: [SR-Users] Using TLS on a load-balancing cluster behind DNS-SRV

2018-10-02 Thread Sergey Basov
Hi Kevin You need TLS certificate for domain which you will setup on SIP clients to connect to. So if your SIP domain is pbx.example.com and you will provide DNS-SRV record for it - then you need TLS certificate for pbx.example.com -- Best regards, Sergey Basov e-mail: sergey.

[SR-Users] Using TLS on a load-balancing cluster behind DNS-SRV

2018-10-02 Thread Kevin Olbrich
Hi! Which hostname do I need to request for the certificate when the servers are load-balanced using DNS-SRV? Do I need to get the cert for the DNS-SRV subdomain (without _sip._tls) or for the servers, eg. server0{1,2,3}.pbx.example.com ? Thank you! Kevin ___

Re: [SR-Users] Dialog lifetime for dialogs synced with DMQ

2018-10-02 Thread Charles Chance
Hi Jan, I am not completely familiar with the dialog-dmq integration so will need to take a closer look to understand if this is expected behaviour given its current implementation. I should be able to take a look later today or tomorrow morning but in the meantime, maybe someone else has experie

Re: [SR-Users] Fwd: kamailio with evapi crashing on high volume

2018-10-02 Thread Jayesh Nambiar
Thanks Daniel. I'll upgrade to the latest stable version once it is out. - Jayesh On Tue, Oct 2, 2018 at 10:55 AM Daniel-Constantin Mierla wrote: > Hello, > > I looked at the core files when you reported, but due to busy times > traveling, I didn't get the chance to follow up. However, the core

Re: [SR-Users] [DMQ] dmq_send_message function usage.

2018-10-02 Thread José Seabra
Thank you Charles. As soon as i can i will try it. Once again thanks for your great job. Regards Denys Pozniak escreveu no dia quinta, 27/09/2018 à(s) 08:39: > Thank you for the information! > > 2018-09-27 10:20 GMT+03:00 Charles Chance : > >> Hello, >> >> You could certainly construct the me