Re: [SR-Users] Masking Contact Header

2019-02-13 Thread Henning Westerholt
Am Mittwoch, 13. Februar 2019, 00:05:46 CET schrieb Marcos Pytel: > Im have an endpoint device that have a problem with long routers headers. I > dont know why cut the route when send packet to the server and kamailio > crash because cant parse the route. If i active topoh, the router header is >

Re: [SR-Users] Fwd: pv_buffer_size config value actually ignored?

2019-02-13 Thread Daniel-Constantin Mierla
Hello, I pushed a patch to print more details about printed size, current token size and overall output buffer size in those error log messages -- the commit:   * https://github.com/kamailio/kamailio/commit/44e48809a608d4de46d61198137cd669c6a4763f Can you try with this patch and send again here

Re: [SR-Users] Masking Contact Header

2019-02-13 Thread Nicolas Breuer
I tried and indeed the contact header is masked with topoh. Just one question : The masquerading is done after siptrace module because the original trace is stored in database. I suppose it's the expected behavior. I can also see that line in the trace : TH: uch Any ideas? -Message

[SR-Users] Fwd: pv_buffer_size config value actually ignored?

2019-02-13 Thread Enrico Bandiera
-- Forwarded message - From: Enrico Bandiera Date: mer 13 feb 2019 alle ore 09:18 Subject: Re: [SR-Users] pv_buffer_size config value actually ignored? To: Daniel-Constantin Mierla Hello Daniel, yes we do use that $avp for a log line which is actually a big json, the $avp is

[SR-Users] pv_buffer_size config value actually ignored?

2019-02-13 Thread Enrico Bandiera
Hi, I'm having some strange issues with a somewhat big $avp value, when it reaches a size of about 4K I get this error: 29(47) ERROR: [core/pvapi.c:1452]: pv_printf(): no more space for spec value 29(47) ERROR: [core/pvapi.c:1461]: pv_printf(): buffer overflow – increase the buffer size... In

Re: [SR-Users] pv_buffer_size config value actually ignored?

2019-02-13 Thread Daniel-Constantin Mierla
Hello, where do you use that avp, because for the avp value itself, that buffer is not used -- avp values are stored in shared memory. Do you use that avp in xlog() or other functions parameters? Cheers, Daniel On 13.02.19 09:10, Enrico Bandiera wrote: > Hi, I'm having some strange issues with

Re: [SR-Users] Masking Contact Header

2019-02-13 Thread YASIN CANER
Hello, if there is a unrelated chars in SIP trace , there may be str len mismatch for that module . Could you share header? Thanks From: sr-users on behalf of Nicolas Breuer Sent: Wednesday, February 13, 2019 11:54 AM To: Kamailio (SER) - Users Mailing List

Re: [SR-Users] Masking Contact Header

2019-02-13 Thread Nicolas Breuer
… CSeq: 103 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Type: application/sdp Content-Length: 292 TH: dih Max-Forwards: 20 …. Session-Expires: 1800;refresher=uac Min-SE: 90 Allow: INVITE, ACK, CANCEL,

Re: [SR-Users] crash at 480 reply to INVITE

2019-02-13 Thread Daniel-Constantin Mierla
Hello, replying to the initial message to have the backtrace easy to look at its content... The info locals in frame 0 show: uac = 0x0 However, that is set few lines above as: uac=>uac[branch]; An address of a variable (or field in a structure) cannot be null. Some something happened with

Re: [SR-Users] kamailio with oracle data base

2019-02-13 Thread eyas barhouk
hello dears , is there any simple way to compile and add db_oracle module to kamailio 5.1.X ??? regards Eyas From: eyas barhouk Sent: Friday, January 25, 2019 9:18 AM To: Henning Westerholt Cc: sr-users@lists.kamailio.org Subject: Re: [SR-Users] kamailio with

[SR-Users] $HN(d) null when DNS cache is enabled

2019-02-13 Thread Julien Klingenmeyer
Hello, I have a small question regarding the internal DNS resolver. Here is my current Kamailio DNS configuration: dns_try_naptr=on use_dns_failover=yes use_dns_cache=yes I need the $HN variable inside my script and it appeared while testing that $HN(d) was null (and consequently

Re: [SR-Users] Kamailio/Dispatcher failure routing to SRV record

2019-02-13 Thread Daniel Tryba
On Wed, Feb 13, 2019 at 04:03:52PM +, Jesse Strahn wrote: > I have a server running Kamailio with dispatcher. I am trying to > direct calls from kamailio to an SRV record but am receiving a 404 > error on the calls. If I instead place one of the hostnames from the > SRV record in my

[SR-Users] Cannot get message routing for websockets "invalid" URI

2019-02-13 Thread Sergey Safarov
I have configured websocket usage using this module description https://kamailio.org/docs/modules/devel/modules/websocket.html Added registrar and usrloc modules Registration saved using this block route[REGISTRAR] { if(!is_method("REGISTER")) return; if (!save("location")) {

Re: [SR-Users] Fwd: pv_buffer_size config value actually ignored?

2019-02-13 Thread Enrico Bandiera
Hello Daniel, here are the logs: 29(46) ERROR: [core/pvapi.c:1457]: pv_printf(): no more space for spec value - printed:7 token:5131 buffer:4096 29(46) ERROR: [core/pvapi.c:1467]: pv_printf(): buffer overflow -- increase the buffer size... 29(46) ERROR: [core/pvapi.c:1457]: pv_printf(): no

Re: [SR-Users] kamailio with oracle data base

2019-02-13 Thread Ovidiu Sas
Take a look at the oracle instaclient: https://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html Go to the download section and install the packages related to your architecture. The makefile for the module works out of the box for oracle instaclient

[SR-Users] Log/Alerts Volume

2019-02-13 Thread Daniel Greenwald
Curious how other folks are dealing with the volume of logs that Kamailio generates. We are currently sending them to syslog and alerting on WARN and above but the amount of alert noise is unbearable. For example (there are many variations): ERROR: [core/tcp_read.c:297]: tcp_read_data(): error

Re: [SR-Users] Fwd: pv_buffer_size config value actually ignored?

2019-02-13 Thread Enrico Bandiera
Hi, could it be caused by this? https://github.com/kamailio/kamailio/blob/master/src/modules/xlog/xlog.c#L65 I tried to increment it, recompiled kamailio and the error doesn't show up anymore Thanks, Enrico Il giorno mer 13 feb 2019 alle ore 17:29 Enrico Bandiera <

Re: [SR-Users] [EXTERNAL] Re: Kamailio/Dispatcher failure routing to SRV record

2019-02-13 Thread Jesse Strahn
Daniel, Apologies, I mistyped the contents of my dispatcher.list which are: 1 sip:bvr.production.instance:5060 16 I'm still receiving a 404 with the above dispatcher.list alignment. Any help is appreciated. Thanks, Jesse -Original Message- From: sr-users On Behalf Of Daniel Tryba

Re: [SR-Users] Masking Contact Header

2019-02-13 Thread Marcos Pytel
Hi Henning! When I receive a bad route, Kamailio doesn't stop working. But, the bad route generate problems with the call. The call does not hangup and the customer can't make other call because the previus call is still active. Please, see the attached log! Thank you! Marcos. -Mensaje

Re: [SR-Users] Fwd: pv_buffer_size config value actually ignored?

2019-02-13 Thread Daniel-Constantin Mierla
Hello, you actually need to set the modparam for it:   - https://www.kamailio.org/docs/modules/stable/modules/xlog.html#xlog.p.buf_size xlog module is using its own buffer, not the one from pv core file. Cheers, Daniel On 13.02.19 21:36, Enrico Bandiera wrote: > Hi, could it be caused by

Re: [SR-Users] crash at 480 reply to INVITE

2019-02-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > replying to the initial message to have the backtrace easy to look at > its content... > > The info locals in frame 0 show: > > uac = 0x0 > > However, that is set few lines above as: > > uac=>uac[branch]; > > An address of a variable (or field in a

Re: [SR-Users] crash at 480 reply to INVITE

2019-02-13 Thread Daniel-Constantin Mierla
On 13.02.19 22:24, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> replying to the initial message to have the backtrace easy to look at >> its content... >> >> The info locals in frame 0 show: >> >> uac = 0x0 >> >> However, that is set few lines above as: >> >> uac=>uac[branch]; >>

Re: [SR-Users] crash at 480 reply to INVITE

2019-02-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > However, that had invalid access to transaction pointer. In this case, > accessing transaction is ok, by setting a variable to the address of one > of its fields, but then the variable becomes NULL, which is not possible > unless the stack got

[SR-Users] Mysql to hastable conversion

2019-02-13 Thread Duarte Rocha
Greetings, I have Kamailio has an SBC and i'm using a MySQL database to store all the relevant configurations and settings regarding the NAP's, Users, Numbers, etc. That being said, i'm having lots of of performance issues originated by the queries. In order to solve that i think the best way to

Re: [SR-Users] Mysql to hastable conversion

2019-02-13 Thread Ovidiu Sas
Hello Duarte, Create a view for each htable that you want to use. Like this you can keep you existing table and config tools. Regards, Ovidiu Sas On Wed, Feb 13, 2019 at 12:14 PM Duarte Rocha wrote: > > Greetings, > > I have Kamailio has an SBC and i'm using a MySQL database to store all the

[SR-Users] Kamailio/Dispatcher failure routing to SRV record

2019-02-13 Thread Jesse Strahn
Hi all, I'm hoping someone can help me with this as I am baffled. I have a server running Kamailio with dispatcher. I am trying to direct calls from kamailio to an SRV record but am receiving a 404 error on the calls. If I instead place one of the hostnames from the SRV record in my