[SR-Users] Kamailio 3.3.7

2019-10-23 Thread Brandon Armstead
Has anyone seen this error while compiling 3.3.7

raw_sock.c:431: undefined reference to `udpv4_vhdr_sum'


system:


Linux 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64 GNU/Linux


lsmod:


Module  Size  Used by

bonding   147456  0

intel_rapl 20480  0

x86_pkg_temp_thermal16384  0

intel_powerclamp   16384  0

coretemp   16384  0

kvm_intel 200704  0

kvm   598016  1 kvm_intel

irqbypass  16384  1 kvm

ttm98304  0

drm_kms_helper155648  0

crct10dif_pclmul   16384  0

crc32_pclmul   16384  0

joydev 20480  0

evdev  24576  3

ghash_clmulni_intel16384  0

drm   360448  2 ttm,drm_kms_helper

i2c_algo_bit   16384  0

iTCO_wdt   16384  0

shpchp 36864  0

ipmi_si57344  0

iTCO_vendor_support16384  1 iTCO_wdt

sg 32768  0

pcspkr 16384  0

mei_me 36864  0

ipmi_msghandler49152  1 ipmi_si

mei   102400  1 mei_me

video  40960  0

button 16384  0

acpi_power_meter   20480  0

acpi_pad   24576  0

ib_iser49152  0

rdma_cm53248  1 ib_iser

iw_cm  49152  1 rdma_cm

ib_cm  45056  1 rdma_cm

ib_core   208896  4 ib_iser,ib_cm,rdma_cm,iw_cm

configfs   40960  2 rdma_cm

iscsi_tcp  20480  0

libiscsi_tcp   24576  1 iscsi_tcp

libiscsi   53248  3 ib_iser,libiscsi_tcp,iscsi_tcp

scsi_transport_iscsi   102400  4 ib_iser,libiscsi,iscsi_tcp

ip_tables  24576  0

x_tables   36864  1 ip_tables

autofs440960  2

ext4  589824  2

crc16  16384  1 ext4

jbd2  106496  1 ext4

crc32c_generic 16384  0

fscrypto   28672  1 ext4

ecb16384  0

mbcache16384  3 ext4

sd_mod 49152  4

hid_generic16384  0

usbhid 53248  0

hid   122880  2 hid_generic,usbhid

crc32c_intel   24576  2

aesni_intel   167936  0

aes_x86_64 20480  1 aesni_intel

glue_helper16384  1 aesni_intel

lrw16384  1 aesni_intel

gf128mul   16384  1 lrw

ablk_helper16384  1 aesni_intel

cryptd 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel

ahci   40960  3

xhci_pci   16384  0

libahci32768  1 ahci

ixgbe 294912  0

xhci_hcd  188416  1 xhci_pci

i2c_i801   24576  0

i2c_smbus  16384  1 i2c_i801

dca16384  1 ixgbe

ptp20480  1 ixgbe

libata249856  2 ahci,libahci

pps_core   16384  1 ptp

mdio   16384  1 ixgbe

usbcore   253952  3 usbhid,xhci_pci,xhci_hcd

scsi_mod  225280  7
ib_iser,sd_mod,libiscsi,libata,scsi_transport_iscsi,iscsi_tcp,sg

usb_common 16384  1 usbcore

fan16384  0

thermal20480  0


I believe I've crossed this issue once before and it was a simple apt-get
package to include



compile options:


make include_modules="mi_fifo db_mysql tm dialog sl tmx kex rr maxfwd
textops textopsx nathelper acc avpops xlog uac alias_db siputils utils
usrloc registrar pv regex htable sqlops sdpops topoh ctl db_mysql mysql"
prefix="/usr/local"


Thanks


- Brandon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] driver error: Can't connect to MySQL server with kamailio 5.3.x and mysql-config-groups

2019-10-23 Thread Karsten Horsmann
Hi Henning,


Another problem is that every new special char for separating is lost for
passwords. The / for example and [] and so one.

Is the ipv6 for DBURL hosts only in ip notation or also dns names? That's
not clear for me.

If it's ipv6 ip only it can checked for the separators of an ipv6 ip.


Henning Westerholt  schrieb am Mi., 23. Okt. 2019, 18:29:

> Hello,
>
>
>
> just an idea – maybe the easiest way would be to introduce another
> character for the groups, e.g. ‘{ }’ or similar. The overlapping between
> IPv6 and groups was not intended, the group support is probably older as
> IPv6 in Kamailio. 
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Karsten
> Horsmann
> *Sent:* Wednesday, October 23, 2019 6:17 PM
> *To:* Daniel-Constantin Mierla 
> *Cc:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] driver error: Can't connect to MySQL server
> with kamailio 5.3.x and mysql-config-groups
>
>
>
> Hi Daniel,
>
>
>
> you mean this commit (see below). Maybe  Alexey Vasilyev can told us
> something to that change?
>
>
>
> How can i use mysql-groups in the [] notation? Like:
>
> #!define DBURL "mysql://[kamailio]/kamailio"
>
> https://kamailio.org/docs/modules/5.3.x/modules/db_mysql.html#idm140
>
>
>
> AFAIK this change splits [ and ] to ipv6 Host and sets ST_HOST6 and
>
>
>
> commit a7588f382605991bef4499de8c89b10a9468c8cf
> Author: Alexey Vasilyev 
> Date:   Wed Sep 4 13:47:23 2019 +0300
>
> db_mysql: database URL supports IPv6 address as hostname
>
> - changed parsing of db_url to accept IPv6 address for hostname
>
>
>
> Any help would be appreciated.
>
>
>
> Cheers Karsten
>
>
>
>
>
> Am Mi., 23. Okt. 2019 um 08:10 Uhr schrieb Daniel-Constantin Mierla <
> mico...@gmail.com>:
>
> Hello,
>
> it could be that a patch to support ipv6 in the db url is conflicting with
> the syntax for the group name, because both seem to use [ ] . Iirc, such a
> commit was not long time ago. I will have to look at the code for mysql
> conf group to see what exactly it expects, not sure I got time for it
> today, though, maybe others can check quicker.
>
> Cheers,
> Daniel
>
> On 22.10.19 16:38, Karsten Horsmann wrote:
>
> Hi Daniel,
>
>
>
> i create an Logfile with debug=3 on startup here:
> https://gist.github.com/khorsmann/91642daaa3715c59624cd5272bc3398a#file-logfile-txt-L4345
>
>
>
>
>  0(29174) DEBUG: db_mysql [km_my_con.c:108]: db_mysql_new_connection():
> opening connection: mysql://:@kamailio/kamailio
>
> I dont know where kamailio though that there is an "hostname" kamailio
> that holds the mysqldb/kamailio.
>
>
>
> I want to use groups in the future - cos i auto-generate mysql-passwords
> with / for example and that is possible in groups, but i dunno how in
> normal defines.
>
>
>
> Cheers
>
> Karsten
>
>
>
> Am Di., 22. Okt. 2019 um 15:40 Uhr schrieb Daniel-Constantin Mierla <
> mico...@gmail.com>:
>
> Hello,
>
> if you set debug=3, do you see any other log message that can give hints
> about the error?
>
> I do not recall any change in using mysql conf groups, but there were some
> changes in supporting usernames with domains and few other updates that
> could have affected indirectly this part.
>
> Cheers,
> Daniel
>
> On 22.10.19 15:20, Karsten Horsmann wrote:
>
> Hi List,
>
>
>
> me again - i also updated the test-system to latest CentOS 7.7.1908 to be
> sure that the rpm building source and my target system are on the same
> versions.
>
>
>
>  lsb_release -a
> LSB Version::core-4.1-amd64:core-4.1-noarch
> Distributor ID: CentOS
> Description:CentOS Linux release 7.7.1908 (Core)
> Release:7.7.1908
> Codename:   Core
>
>
>
> Am Di., 22. Okt. 2019 um 14:58 Uhr schrieb Karsten Horsmann <
> khorsm...@gmail.com>:
>
> Hi List,
>
>
>
> i updated one of my testing kamailios from 5.2.x to latest 5.3.x.
>
> After restarting the process, i got an mysql error that the server
> "kamailio" is not found.
>
>
>
> I use the config-feature of my.cnf config-group names within the
> kamailio.cfg
> I can start my kamailio 5.3.x installation with "normal
> username:password@host" definitions for DBURL.
>
>
>
> Did anyone have the same issue?
>
>  0(19625) ERROR: db_mysql [km_my_con.c:139]: db_mysql_new_connection():
> driver error: Can't connect to MySQL server on 'kamailio' (4)
>  0(19625) ERROR:  [db.c:319]: db_do_init2(): could not add
> connection to the pool
>  0(19625) ERROR: dialplan [dp_db.c:179]: dp_connect_db(): unable to
> connect to the database
>  0(19625) ERROR: dialplan [dialplan.c:191]: mod_init(): could not
> initialize data
>  0(19625) ERROR:  [core/sr_module.c:850]: init_mod(): Error while
> initializing module dialplan (/usr/lib64/kamailio/modules/dialplan.so)
> ERROR: error while initializing modules
>
>
> from my kamailio.cfg i defined the DBURL like this:
>
>
> # Use /etc/my.cnf.d/kamailio.cnf to store credentials

Re: [SR-Users] driver error: Can't connect to MySQL server with kamailio 5.3.x and mysql-config-groups

2019-10-23 Thread Henning Westerholt
Hello,

just an idea – maybe the easiest way would be to introduce another character 
for the groups, e.g. ‘{ }’ or similar. The overlapping between IPv6 and groups 
was not intended, the group support is probably older as IPv6 in Kamailio. 

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users  On Behalf Of Karsten 
Horsmann
Sent: Wednesday, October 23, 2019 6:17 PM
To: Daniel-Constantin Mierla 
Cc: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] driver error: Can't connect to MySQL server with 
kamailio 5.3.x and mysql-config-groups

Hi Daniel,

you mean this commit (see below). Maybe  Alexey Vasilyev can told us something 
to that change?

How can i use mysql-groups in the [] notation? Like:
#!define DBURL "mysql://[kamailio]/kamailio"
https://kamailio.org/docs/modules/5.3.x/modules/db_mysql.html#idm140

AFAIK this change splits [ and ] to ipv6 Host and sets ST_HOST6 and

commit a7588f382605991bef4499de8c89b10a9468c8cf
Author: Alexey Vasilyev 
mailto:alexei.vasil...@gmail.com>>
Date:   Wed Sep 4 13:47:23 2019 +0300

db_mysql: database URL supports IPv6 address as hostname

- changed parsing of db_url to accept IPv6 address for hostname

Any help would be appreciated.

Cheers Karsten


Am Mi., 23. Okt. 2019 um 08:10 Uhr schrieb Daniel-Constantin Mierla 
mailto:mico...@gmail.com>>:

Hello,

it could be that a patch to support ipv6 in the db url is conflicting with the 
syntax for the group name, because both seem to use [ ] . Iirc, such a commit 
was not long time ago. I will have to look at the code for mysql conf group to 
see what exactly it expects, not sure I got time for it today, though, maybe 
others can check quicker.

Cheers,
Daniel
On 22.10.19 16:38, Karsten Horsmann wrote:
Hi Daniel,

i create an Logfile with debug=3 on startup here: 
https://gist.github.com/khorsmann/91642daaa3715c59624cd5272bc3398a#file-logfile-txt-L4345

 0(29174) DEBUG: db_mysql [km_my_con.c:108]: db_mysql_new_connection(): opening 
connection: mysql://:@kamailio/kamailio
I dont know where kamailio though that there is an "hostname" kamailio that 
holds the mysqldb/kamailio.

I want to use groups in the future - cos i auto-generate mysql-passwords with / 
for example and that is possible in groups, but i dunno how in normal defines.

Cheers
Karsten

Am Di., 22. Okt. 2019 um 15:40 Uhr schrieb Daniel-Constantin Mierla 
mailto:mico...@gmail.com>>:

Hello,

if you set debug=3, do you see any other log message that can give hints about 
the error?

I do not recall any change in using mysql conf groups, but there were some 
changes in supporting usernames with domains and few other updates that could 
have affected indirectly this part.

Cheers,
Daniel
On 22.10.19 15:20, Karsten Horsmann wrote:
Hi List,

me again - i also updated the test-system to latest CentOS 7.7.1908 to be sure 
that the rpm building source and my target system are on the same versions.

 lsb_release -a
LSB Version::core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:CentOS Linux release 7.7.1908 (Core)
Release:7.7.1908
Codename:   Core

Am Di., 22. Okt. 2019 um 14:58 Uhr schrieb Karsten Horsmann 
mailto:khorsm...@gmail.com>>:
Hi List,

i updated one of my testing kamailios from 5.2.x to latest 5.3.x.
After restarting the process, i got an mysql error that the server "kamailio" 
is not found.

I use the config-feature of my.cnf config-group names within the kamailio.cfg
I can start my kamailio 5.3.x installation with "normal username:password@host" 
definitions for DBURL.

Did anyone have the same issue?

 0(19625) ERROR: db_mysql [km_my_con.c:139]: db_mysql_new_connection(): driver 
error: Can't connect to MySQL server on 'kamailio' (4)
 0(19625) ERROR:  [db.c:319]: db_do_init2(): could not add connection to 
the pool
 0(19625) ERROR: dialplan [dp_db.c:179]: dp_connect_db(): unable to connect to 
the database
 0(19625) ERROR: dialplan [dialplan.c:191]: mod_init(): could not initialize 
data
 0(19625) ERROR:  [core/sr_module.c:850]: init_mod(): Error while 
initializing module dialplan (/usr/lib64/kamailio/modules/dialplan.so)
ERROR: error while initializing modules


from my kamailio.cfg i defined the DBURL like this:

# Use /etc/my.cnf.d/kamailio.cnf to store credentials
# within a mysql-db-group
#!define DBURL "mysql://[kamailio]/kamailio"

and special modules can use it like this (or via DBURL)
modparam("sqlops", "sqlcon", "cb=>mysql://[kamailio]/kamailio")

cat /etc/my.cnf.d/kamailio.cnf

# MySQL configuration group for kamailio
[kamailio]
user=kamailio
password="kamailiorw"
host=172.20.100.22


rpm -qa | grep kam
kamailio-dialplan-5.3.0-13.1.x86_64
kamailio-websocket-5.3.0-13.1.x86_64
kamailio-jansson-5.3.0-13.1.x86_64
kamailio-mysql-5.3.0-13.1.x86_64
kamailio-tls-5.3.0-13.1.x86_64
kamailio-ims-5.3.0-13.1.x86_64
kamailio-statsd-5.3.0-13.1.x86_64
kamailio-5.3.0-13.1.x86_64
kamailio-redis-5.3.0-13.1.x86_64

 cat 

Re: [SR-Users] driver error: Can't connect to MySQL server with kamailio 5.3.x and mysql-config-groups

2019-10-23 Thread Karsten Horsmann
Hi Daniel,

you mean this commit (see below). Maybe  Alexey Vasilyev can told us
something to that change?

How can i use mysql-groups in the [] notation? Like:
#!define DBURL "mysql://[kamailio]/kamailio"
https://kamailio.org/docs/modules/5.3.x/modules/db_mysql.html#idm140

AFAIK this change splits [ and ] to ipv6 Host and sets ST_HOST6 and

commit a7588f382605991bef4499de8c89b10a9468c8cf
Author: Alexey Vasilyev 
Date:   Wed Sep 4 13:47:23 2019 +0300

db_mysql: database URL supports IPv6 address as hostname

- changed parsing of db_url to accept IPv6 address for hostname

Any help would be appreciated.

Cheers Karsten


Am Mi., 23. Okt. 2019 um 08:10 Uhr schrieb Daniel-Constantin Mierla <
mico...@gmail.com>:

> Hello,
>
> it could be that a patch to support ipv6 in the db url is conflicting with
> the syntax for the group name, because both seem to use [ ] . Iirc, such a
> commit was not long time ago. I will have to look at the code for mysql
> conf group to see what exactly it expects, not sure I got time for it
> today, though, maybe others can check quicker.
>
> Cheers,
> Daniel
> On 22.10.19 16:38, Karsten Horsmann wrote:
>
> Hi Daniel,
>
> i create an Logfile with debug=3 on startup here:
> https://gist.github.com/khorsmann/91642daaa3715c59624cd5272bc3398a#file-logfile-txt-L4345
>
>
>  0(29174) DEBUG: db_mysql [km_my_con.c:108]: db_mysql_new_connection():
> opening connection: mysql://:@kamailio/kamailio
> I dont know where kamailio though that there is an "hostname" kamailio
> that holds the mysqldb/kamailio.
>
> I want to use groups in the future - cos i auto-generate mysql-passwords
> with / for example and that is possible in groups, but i dunno how in
> normal defines.
>
> Cheers
> Karsten
>
> Am Di., 22. Okt. 2019 um 15:40 Uhr schrieb Daniel-Constantin Mierla <
> mico...@gmail.com>:
>
>> Hello,
>>
>> if you set debug=3, do you see any other log message that can give hints
>> about the error?
>>
>> I do not recall any change in using mysql conf groups, but there were
>> some changes in supporting usernames with domains and few other updates
>> that could have affected indirectly this part.
>>
>> Cheers,
>> Daniel
>> On 22.10.19 15:20, Karsten Horsmann wrote:
>>
>> Hi List,
>>
>> me again - i also updated the test-system to latest CentOS 7.7.1908 to be
>> sure that the rpm building source and my target system are on the same
>> versions.
>>
>>  lsb_release -a
>> LSB Version::core-4.1-amd64:core-4.1-noarch
>> Distributor ID: CentOS
>> Description:CentOS Linux release 7.7.1908 (Core)
>> Release:7.7.1908
>> Codename:   Core
>>
>> Am Di., 22. Okt. 2019 um 14:58 Uhr schrieb Karsten Horsmann <
>> khorsm...@gmail.com>:
>>
>>> Hi List,
>>>
>>> i updated one of my testing kamailios from 5.2.x to latest 5.3.x.
>>> After restarting the process, i got an mysql error that the server
>>> "kamailio" is not found.
>>>
>>> I use the config-feature of my.cnf config-group names within the
>>> kamailio.cfg
>>> I can start my kamailio 5.3.x installation with "normal
>>> username:password@host" definitions for DBURL.
>>>
>>> Did anyone have the same issue?
>>>
>>>
>>>  0(19625) ERROR: db_mysql [km_my_con.c:139]: db_mysql_new_connection():
>>> driver error: Can't connect to MySQL server on 'kamailio' (4)
>>>  0(19625) ERROR:  [db.c:319]: db_do_init2(): could not add
>>> connection to the pool
>>>  0(19625) ERROR: dialplan [dp_db.c:179]: dp_connect_db(): unable to
>>> connect to the database
>>>  0(19625) ERROR: dialplan [dialplan.c:191]: mod_init(): could not
>>> initialize data
>>>  0(19625) ERROR:  [core/sr_module.c:850]: init_mod(): Error while
>>> initializing module dialplan (/usr/lib64/kamailio/modules/dialplan.so)
>>> ERROR: error while initializing modules
>>>
>>>
>>> from my kamailio.cfg i defined the DBURL like this:
>>>
>>> # Use /etc/my.cnf.d/kamailio.cnf to store credentials
>>> # within a mysql-db-group
>>> #!define DBURL "mysql://[kamailio]/kamailio"
>>>
>>> and special modules can use it like this (or via DBURL)
>>> modparam("sqlops", "sqlcon", "cb=>mysql://[kamailio]/kamailio")
>>>
>>> cat /etc/my.cnf.d/kamailio.cnf
>>>
>>> # MySQL configuration group for kamailio
>>> [kamailio]
>>> user=kamailio
>>> password="kamailiorw"
>>> host=172.20.100.22
>>>
>>>
>>> rpm -qa | grep kam
>>> kamailio-dialplan-5.3.0-13.1.x86_64
>>> kamailio-websocket-5.3.0-13.1.x86_64
>>> kamailio-jansson-5.3.0-13.1.x86_64
>>> kamailio-mysql-5.3.0-13.1.x86_64
>>> kamailio-tls-5.3.0-13.1.x86_64
>>> kamailio-ims-5.3.0-13.1.x86_64
>>> kamailio-statsd-5.3.0-13.1.x86_64
>>> kamailio-5.3.0-13.1.x86_64
>>> kamailio-redis-5.3.0-13.1.x86_64
>>>
>>>  cat /etc/redhat-release
>>> CentOS Linux release 7.6.1810 (Core)
>>>
>>> --
>>> Cheers
>>> *Karsten Horsmann*
>>>
>>
>>
>> --
>> Mit freundlichen Grüßen
>> *Karsten Horsmann*
>>
>> ___
>> Kamailio (SER) - Users Mailing 
>> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>

Re: [SR-Users] MS Teams Direct routing with kamailio

2019-10-23 Thread Karsten Horsmann
Hi List,

and of course here its an configuration problem on my side. I dont activate
the dispatcher probing in the module section.
Afterwards it pings. Now i have the fun to try and error further.

Am Di., 22. Okt. 2019 um 18:34 Uhr schrieb Henning Westerholt <
h...@skalatan.de>:

> Hi Karsten,
>
>
>
> Try this:
>
>
>
> event_route[tm:local-request] {
>
>
>
> if(is_method("OPTIONS")) {
>
>append_hf("Contact: foobar\r\n");
>
> }
>
> }
>
>
>
> U Y:5060 -> XX:5060
>
> OPTIONS sip:sip.X.microsoft.com SIP/2.0.
>
> Via: SIP/2.0/UDP
> Y;branch=z9hG4bK20ab.bd40.0.
>
> To: .
>
> From:  >;tag=3393f0703fb0ccaca74109ff37de39f5-50a8.
>
> CSeq: 10 OPTIONS.
>
> Call-ID: 6b3a52797fe20b99-14352@127.0.0.1.
>
> Max-Forwards: 70.
>
> Content-Length: 0.
>
> User-Agent: Kamailio.
>
> Contact: foobar.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Karsten
> Horsmann
> *Sent:* Tuesday, October 22, 2019 6:24 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* [SR-Users] MS Teams Direct routing with kamailio
>
>
>
> Hello List,
>
>
>
> i search for the right place in kamailio to manipulate the dispatcher
> OPTIONS packets to add an Contact header.
>
>
>
> For uac generated traffic i can use the event_route[tm:local-request] from
> the tm module.
>
> But how can i manipulate kamailio *self* generated OPTION pings from the
> dispatcher?
>
>
>
> OPTIONS request for MS Teams must contain the Contact header of such a
> format:
> Contact: 
>
>
>
> I follow this guide (for opensips) and try to adapt that step by step to
> kamailio:
>
>
>
> https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/
>
>
>
> CentOS 7 / kamailio 5.2.x (and maybe soon 5.3.x) / rtpengine
>
> --
>
> Cheers
> *Karsten Horsmann*
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>


-- 
Mit freundlichen Grüßen
*Karsten Horsmann*
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Cehes (Free)
Thanks for these advices, We are in 5.2.4 and then not that much old

And yes, we found many thread talking about BLF, but in fact no real
"solved" ones :)
That is why i'm sure people use it but maybe we have something different.
Do you still think i should post a bug ? I do not want to add a unuseful one

Le mer. 23 oct. 2019 à 17:18, Henning Westerholt  a écrit :

> Hello,
>
>
>
> have a look to the list archives or look with google, you will find some
> other users that ask question about BLF. So I think that other people are
> using it as well.
>
>
>
> About the release - you need to look to the minor version. 5.2.0 was
> released one year ago, 5.2.5 two weeks ago. If you start in a new
> installation always use the newest minor version of a supported major
> stable branch.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 5:00 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] Unable to use BLF
>
>
>
> Ok great, i'll try this.
>
>
>
> But my idea was to say "that could not be a bug on version 5.2 as i'm not
> the only one to use BLF and this version is one year old"
>
> Am i wrong ?
>
>
>
> thanks
>
>
>
> Le mer. 23 oct. 2019 à 16:27, Henning Westerholt  a
> écrit :
>
> Hello Cehes,
>
>
>
> if the problem is both on 5.3.x and 5.2.x – its need to be fixed in both
> versions. 
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 4:12 PM
> *To:* sr-users@lists.kamailio.org
> *Subject:* Re: [SR-Users] Unable to use BLF
>
>
>
> Hi,
>
> Thanks for your reply.
>
> In fact we tested it with two versions to be sure : 5.2 and 5.3.
>
> I guess there would not have this problem in both version ?
>
>
>
> Regards
>
>
>
> Le mer. 23 oct. 2019 à 15:40, Henning Westerholt  a
> écrit :
>
> Hello Cehes,
>
>
>
> this looks like a bug in the module, more memory will unfortunately not
> help. 
>
>
>
> If you are using a current version of Kamailio (as you wrote), the best
> would be to open a bug report on our issue tracker about it.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 10:37 AM
> *To:* sr-users@lists.kamailio.org
> *Subject:* [SR-Users] Unable to use BLF
>
>
>
> Hi all,
>
>
>
> This is many days we are trying many things and reading many threads :)
>
> We also re installed a simple brand new kamailio to be sure everything is
> ok.
>
>
>
> In fact, with sngrep we can see "subscribe" arriving on kamailio but on
> syslog we have a critical error :
>
>
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE
> 3135373137353930373733323337-joash9r9lnre} ***
> cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=770 a=24 n=handle_subscribe
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29
> SUBSCRIBE 3135373137353930373733323337-joash9r9lnre} 
> [core/mem/q_malloc.c:494]: qm_free(): *BUG: bad pointer 0xa (out of
> memory block!) *called from presence: *subscribe.c*:
> handle_subscribe(1040) - ignoring
>
>
>
> We tried to start kamailio with many more memory (x4) and this is the same.
>
> We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins
>
>
>
> below is our config file :
>
> https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178
>
>
>
> Any idea of what is wrong ?
>
>
>
> Thanks!
>
>
>
>
>
>
>
>
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] driver error: Can't connect to MySQL server with kamailio 5.3.x and mysql-config-groups

2019-10-23 Thread Karsten Horsmann
Hi Sergey,

i set in my /etc/hosts an host entry names kamailio to see more.

i tried that and i saw that the process kamailio is trying to reach "host:
kamailio" with user=kamailio schemata=kamailio and password=kamailio on the
wire.
That seems to be the "defaults" if no values is found.

I thing that the IPv6 Patch Idea from Daniel is more the root-cause [] is
essential in ipv6 and its an pointer for DBURL/mysql-groups.


Am Di., 22. Okt. 2019 um 19:35 Uhr schrieb Sergey Safarov <
s.safa...@gmail.com>:

> Could you record network traffic into PCAP like
> tcpdump -ni any host ${mysql_server_ip} -s 0 -w /tmp/mysql.pcap
>
> then sent.Will try look into network traffic.
>
> On Tue, Oct 22, 2019 at 5:39 PM Karsten Horsmann 
> wrote:
>
>> Hi Daniel,
>>
>> i create an Logfile with debug=3 on startup here:
>> https://gist.github.com/khorsmann/91642daaa3715c59624cd5272bc3398a#file-logfile-txt-L4345
>>
>>
>>  0(29174) DEBUG: db_mysql [km_my_con.c:108]: db_mysql_new_connection():
>> opening connection: mysql://:@kamailio/kamailio
>> I dont know where kamailio though that there is an "hostname" kamailio
>> that holds the mysqldb/kamailio.
>>
>> I want to use groups in the future - cos i auto-generate mysql-passwords
>> with / for example and that is possible in groups, but i dunno how in
>> normal defines.
>>
>> Cheers
>> Karsten
>>
>> Am Di., 22. Okt. 2019 um 15:40 Uhr schrieb Daniel-Constantin Mierla <
>> mico...@gmail.com>:
>>
>>> Hello,
>>>
>>> if you set debug=3, do you see any other log message that can give hints
>>> about the error?
>>>
>>> I do not recall any change in using mysql conf groups, but there were
>>> some changes in supporting usernames with domains and few other updates
>>> that could have affected indirectly this part.
>>>
>>> Cheers,
>>> Daniel
>>> On 22.10.19 15:20, Karsten Horsmann wrote:
>>>
>>> Hi List,
>>>
>>> me again - i also updated the test-system to latest CentOS 7.7.1908 to
>>> be sure that the rpm building source and my target system are on the same
>>> versions.
>>>
>>>  lsb_release -a
>>> LSB Version::core-4.1-amd64:core-4.1-noarch
>>> Distributor ID: CentOS
>>> Description:CentOS Linux release 7.7.1908 (Core)
>>> Release:7.7.1908
>>> Codename:   Core
>>>
>>> Am Di., 22. Okt. 2019 um 14:58 Uhr schrieb Karsten Horsmann <
>>> khorsm...@gmail.com>:
>>>
 Hi List,

 i updated one of my testing kamailios from 5.2.x to latest 5.3.x.
 After restarting the process, i got an mysql error that the server
 "kamailio" is not found.

 I use the config-feature of my.cnf config-group names within the
 kamailio.cfg
 I can start my kamailio 5.3.x installation with "normal
 username:password@host" definitions for DBURL.

 Did anyone have the same issue?


  0(19625) ERROR: db_mysql [km_my_con.c:139]: db_mysql_new_connection():
 driver error: Can't connect to MySQL server on 'kamailio' (4)
  0(19625) ERROR:  [db.c:319]: db_do_init2(): could not add
 connection to the pool
  0(19625) ERROR: dialplan [dp_db.c:179]: dp_connect_db(): unable to
 connect to the database
  0(19625) ERROR: dialplan [dialplan.c:191]: mod_init(): could not
 initialize data
  0(19625) ERROR:  [core/sr_module.c:850]: init_mod(): Error while
 initializing module dialplan (/usr/lib64/kamailio/modules/dialplan.so)
 ERROR: error while initializing modules


 from my kamailio.cfg i defined the DBURL like this:

 # Use /etc/my.cnf.d/kamailio.cnf to store credentials
 # within a mysql-db-group
 #!define DBURL "mysql://[kamailio]/kamailio"

 and special modules can use it like this (or via DBURL)
 modparam("sqlops", "sqlcon", "cb=>mysql://[kamailio]/kamailio")

 cat /etc/my.cnf.d/kamailio.cnf

 # MySQL configuration group for kamailio
 [kamailio]
 user=kamailio
 password="kamailiorw"
 host=172.20.100.22


 rpm -qa | grep kam
 kamailio-dialplan-5.3.0-13.1.x86_64
 kamailio-websocket-5.3.0-13.1.x86_64
 kamailio-jansson-5.3.0-13.1.x86_64
 kamailio-mysql-5.3.0-13.1.x86_64
 kamailio-tls-5.3.0-13.1.x86_64
 kamailio-ims-5.3.0-13.1.x86_64
 kamailio-statsd-5.3.0-13.1.x86_64
 kamailio-5.3.0-13.1.x86_64
 kamailio-redis-5.3.0-13.1.x86_64

  cat /etc/redhat-release
 CentOS Linux release 7.6.1810 (Core)

 --
 Cheers
 *Karsten Horsmann*

>>>
>>>
>>> --
>>> Mit freundlichen Grüßen
>>> *Karsten Horsmann*
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing 
>>> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>> --
>>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
>>> www.linkedin.com/in/miconda
>>> Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- 
>>> https://asipto.com/u/kat
>>>
>>>
>>
>> --
>> Mit freundlichen Grüßen
>> *Karsten Horsmann*
>> 

Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Henning Westerholt
Hello,

have a look to the list archives or look with google, you will find some other 
users that ask question about BLF. So I think that other people are using it as 
well.

About the release - you need to look to the minor version. 5.2.0 was released 
one year ago, 5.2.5 two weeks ago. If you start in a new installation always 
use the newest minor version of a supported major stable branch.

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users  On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 5:00 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] Unable to use BLF

Ok great, i'll try this.

But my idea was to say "that could not be a bug on version 5.2 as i'm not the 
only one to use BLF and this version is one year old"
Am i wrong ?

thanks

Le mer. 23 oct. 2019 à 16:27, Henning Westerholt 
mailto:h...@skalatan.de>> a écrit :
Hello Cehes,

if the problem is both on 5.3.x and 5.2.x – its need to be fixed in both 
versions. 

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 4:12 PM
To: sr-users@lists.kamailio.org
Subject: Re: [SR-Users] Unable to use BLF

Hi,
Thanks for your reply.
In fact we tested it with two versions to be sure : 5.2 and 5.3.
I guess there would not have this problem in both version ?

Regards

Le mer. 23 oct. 2019 à 15:40, Henning Westerholt 
mailto:h...@skalatan.de>> a écrit :
Hello Cehes,

this looks like a bug in the module, more memory will unfortunately not help. 

If you are using a current version of Kamailio (as you wrote), the best would 
be to open a bug report on our issue tracker about it.

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 10:37 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Unable to use BLF

Hi all,

This is many days we are trying many things and reading many threads :)
We also re installed a simple brand new kamailio to be sure everything is ok.

In fact, with sngrep we can see "subscribe" arriving on kamailio but on syslog 
we have a critical error :


Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre} *** 
cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg] 
l=770 a=24 n=handle_subscribe

Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre}  [core/mem/q_malloc.c:494]: 
qm_free(): BUG: bad pointer 0xa (out of memory block!) called from presence: 
subscribe.c: handle_subscribe(1040) - ignoring

We tried to start kamailio with many more memory (x4) and this is the same.
We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins

below is our config file :
https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178

Any idea of what is wrong ?

Thanks!




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Cehes (Free)
Ok great, i'll try this.

But my idea was to say "that could not be a bug on version 5.2 as i'm not
the only one to use BLF and this version is one year old"
Am i wrong ?

thanks

Le mer. 23 oct. 2019 à 16:27, Henning Westerholt  a écrit :

> Hello Cehes,
>
>
>
> if the problem is both on 5.3.x and 5.2.x – its need to be fixed in both
> versions. 
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 4:12 PM
> *To:* sr-users@lists.kamailio.org
> *Subject:* Re: [SR-Users] Unable to use BLF
>
>
>
> Hi,
>
> Thanks for your reply.
>
> In fact we tested it with two versions to be sure : 5.2 and 5.3.
>
> I guess there would not have this problem in both version ?
>
>
>
> Regards
>
>
>
> Le mer. 23 oct. 2019 à 15:40, Henning Westerholt  a
> écrit :
>
> Hello Cehes,
>
>
>
> this looks like a bug in the module, more memory will unfortunately not
> help. 
>
>
>
> If you are using a current version of Kamailio (as you wrote), the best
> would be to open a bug report on our issue tracker about it.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 10:37 AM
> *To:* sr-users@lists.kamailio.org
> *Subject:* [SR-Users] Unable to use BLF
>
>
>
> Hi all,
>
>
>
> This is many days we are trying many things and reading many threads :)
>
> We also re installed a simple brand new kamailio to be sure everything is
> ok.
>
>
>
> In fact, with sngrep we can see "subscribe" arriving on kamailio but on
> syslog we have a critical error :
>
>
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE
> 3135373137353930373733323337-joash9r9lnre} ***
> cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=770 a=24 n=handle_subscribe
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29
> SUBSCRIBE 3135373137353930373733323337-joash9r9lnre} 
> [core/mem/q_malloc.c:494]: qm_free(): *BUG: bad pointer 0xa (out of
> memory block!) *called from presence: *subscribe.c*:
> handle_subscribe(1040) - ignoring
>
>
>
> We tried to start kamailio with many more memory (x4) and this is the same.
>
> We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins
>
>
>
> below is our config file :
>
> https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178
>
>
>
> Any idea of what is wrong ?
>
>
>
> Thanks!
>
>
>
>
>
>
>
>
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Henning Westerholt
Hello Cehes,

if the problem is both on 5.3.x and 5.2.x – its need to be fixed in both 
versions. 

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users  On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 4:12 PM
To: sr-users@lists.kamailio.org
Subject: Re: [SR-Users] Unable to use BLF

Hi,
Thanks for your reply.
In fact we tested it with two versions to be sure : 5.2 and 5.3.
I guess there would not have this problem in both version ?

Regards

Le mer. 23 oct. 2019 à 15:40, Henning Westerholt 
mailto:h...@skalatan.de>> a écrit :
Hello Cehes,

this looks like a bug in the module, more memory will unfortunately not help. 

If you are using a current version of Kamailio (as you wrote), the best would 
be to open a bug report on our issue tracker about it.

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 10:37 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Unable to use BLF

Hi all,

This is many days we are trying many things and reading many threads :)
We also re installed a simple brand new kamailio to be sure everything is ok.

In fact, with sngrep we can see "subscribe" arriving on kamailio but on syslog 
we have a critical error :


Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre} *** 
cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg] 
l=770 a=24 n=handle_subscribe

Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre}  [core/mem/q_malloc.c:494]: 
qm_free(): BUG: bad pointer 0xa (out of memory block!) called from presence: 
subscribe.c: handle_subscribe(1040) - ignoring

We tried to start kamailio with many more memory (x4) and this is the same.
We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins

below is our config file :
https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178

Any idea of what is wrong ?

Thanks!




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Cehes (Free)
Hi,
Thanks for your reply.
In fact we tested it with two versions to be sure : 5.2 and 5.3.
I guess there would not have this problem in both version ?

Regards

Le mer. 23 oct. 2019 à 15:40, Henning Westerholt  a écrit :

> Hello Cehes,
>
>
>
> this looks like a bug in the module, more memory will unfortunately not
> help. 
>
>
>
> If you are using a current version of Kamailio (as you wrote), the best
> would be to open a bug report on our issue tracker about it.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt - https://skalatan.de/blog/
>
> Kamailio services - https://skalatan.de/services
>
>
>
> *From:* sr-users  *On Behalf Of *Cehes
> (Free)
> *Sent:* Wednesday, October 23, 2019 10:37 AM
> *To:* sr-users@lists.kamailio.org
> *Subject:* [SR-Users] Unable to use BLF
>
>
>
> Hi all,
>
>
>
> This is many days we are trying many things and reading many threads :)
>
> We also re installed a simple brand new kamailio to be sure everything is
> ok.
>
>
>
> In fact, with sngrep we can see "subscribe" arriving on kamailio but on
> syslog we have a critical error :
>
>
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE
> 3135373137353930373733323337-joash9r9lnre} ***
> cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=770 a=24 n=handle_subscribe
>
>
>
> Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29
> SUBSCRIBE 3135373137353930373733323337-joash9r9lnre} 
> [core/mem/q_malloc.c:494]: qm_free(): *BUG: bad pointer 0xa (out of
> memory block!) *called from presence: *subscribe.c*:
> handle_subscribe(1040) - ignoring
>
>
>
> We tried to start kamailio with many more memory (x4) and this is the same.
>
> We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins
>
>
>
> below is our config file :
>
> https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178
>
>
>
> Any idea of what is wrong ?
>
>
>
> Thanks!
>
>
>
>
>
>
>
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Unable to use BLF

2019-10-23 Thread Henning Westerholt
Hello Cehes,

this looks like a bug in the module, more memory will unfortunately not help. 

If you are using a current version of Kamailio (as you wrote), the best would 
be to open a bug report on our issue tracker about it.

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

From: sr-users  On Behalf Of Cehes (Free)
Sent: Wednesday, October 23, 2019 10:37 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Unable to use BLF

Hi all,

This is many days we are trying many things and reading many threads :)
We also re installed a simple brand new kamailio to be sure everything is ok.

In fact, with sngrep we can see "subscribe" arriving on kamailio but on syslog 
we have a critical error :


Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre} *** 
cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg] 
l=770 a=24 n=handle_subscribe

Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29 SUBSCRIBE 
3135373137353930373733323337-joash9r9lnre}  [core/mem/q_malloc.c:494]: 
qm_free(): BUG: bad pointer 0xa (out of memory block!) called from presence: 
subscribe.c: handle_subscribe(1040) - ignoring

We tried to start kamailio with many more memory (x4) and this is the same.
We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins

below is our config file :
https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178

Any idea of what is wrong ?

Thanks!




___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Unable to use BLF

2019-10-23 Thread Cehes (Free)
Hi all,

This is many days we are trying many things and reading many threads :)
We also re installed a simple brand new kamailio to be sure everything is
ok.

In fact, with sngrep we can see "subscribe" arriving on kamailio but on
syslog we have a critical error :


Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) exec: {1 29 SUBSCRIBE
3135373137353930373733323337-joash9r9lnre} ***
cfgtrace:request_route=[PRESENCE] c=[/usr/local/etc/kamailio/kamailio.cfg]
l=770 a=24 n=handle_subscribe


Oct 23 10:08:42 GTO-Temp01 kamailio[2004]: 20(2027) CRITICAL: {1 29
SUBSCRIBE 3135373137353930373733323337-joash9r9lnre} 
[core/mem/q_malloc.c:494]: qm_free(): *BUG: bad pointer 0xa (out of memory
block!) *called from presence: *subscribe.c*: handle_subscribe(1040) -
ignoring


We tried to start kamailio with many more memory (x4) and this is the same.

We tried with only "presenceXXX" plugins, and also with "puaXXX" plugins


below is our config file :

https://gist.github.com/Dyriolon/e894b9f2a67f9dfb7117421717ad6178


Any idea of what is wrong ?


Thanks!
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] driver error: Can't connect to MySQL server with kamailio 5.3.x and mysql-config-groups

2019-10-23 Thread Daniel-Constantin Mierla
Hello,

it could be that a patch to support ipv6 in the db url is conflicting
with the syntax for the group name, because both seem to use [ ] . Iirc,
such a commit was not long time ago. I will have to look at the code for
mysql conf group to see what exactly it expects, not sure I got time for
it today, though, maybe others can check quicker.

Cheers,
Daniel

On 22.10.19 16:38, Karsten Horsmann wrote:
> Hi Daniel,
>
> i create an Logfile with debug=3 on startup
> here: 
> https://gist.github.com/khorsmann/91642daaa3715c59624cd5272bc3398a#file-logfile-txt-L4345
>   
>
>  0(29174) DEBUG: db_mysql [km_my_con.c:108]:
> db_mysql_new_connection(): opening connection:
> mysql://:@kamailio/kamailio
> I dont know where kamailio though that there is an "hostname" kamailio
> that holds the mysqldb/kamailio.
>
> I want to use groups in the future - cos i auto-generate
> mysql-passwords with / for example and that is possible in groups, but
> i dunno how in normal defines.
>
> Cheers
> Karsten
>
> Am Di., 22. Okt. 2019 um 15:40 Uhr schrieb Daniel-Constantin Mierla
> mailto:mico...@gmail.com>>:
>
> Hello,
>
> if you set debug=3, do you see any other log message that can give
> hints about the error?
>
> I do not recall any change in using mysql conf groups, but there
> were some changes in supporting usernames with domains and few
> other updates that could have affected indirectly this part.
>
> Cheers,
> Daniel
>
> On 22.10.19 15:20, Karsten Horsmann wrote:
>> Hi List,
>>
>> me again - i also updated the test-system to latest CentOS
>> 7.7.1908 to be sure that the rpm building source and my target
>> system are on the same versions.
>>
>>  lsb_release -a
>> LSB Version:    :core-4.1-amd64:core-4.1-noarch
>> Distributor ID: CentOS
>> Description:    CentOS Linux release 7.7.1908 (Core)
>> Release:        7.7.1908
>> Codename:       Core
>>
>> Am Di., 22. Okt. 2019 um 14:58 Uhr schrieb Karsten Horsmann
>> mailto:khorsm...@gmail.com>>:
>>
>> Hi List,
>>
>> i updated one of my testing kamailios from 5.2.x to latest 5.3.x.
>> After restarting the process, i got an mysql error that the
>> server "kamailio" is not found.
>>
>> I use the config-feature of my.cnf config-group names within
>> the kamailio.cfg
>> I can start my kamailio 5.3.x installation with "normal
>> username:password@host" definitions for DBURL.
>>
>> Did anyone have the same issue?
>>
>>
>>  0(19625) ERROR: db_mysql [km_my_con.c:139]:
>> db_mysql_new_connection(): driver error: Can't connect to
>> MySQL server on 'kamailio' (4)
>>  0(19625) ERROR:  [db.c:319]: db_do_init2(): could not
>> add connection to the pool
>>  0(19625) ERROR: dialplan [dp_db.c:179]: dp_connect_db():
>> unable to connect to the database
>>  0(19625) ERROR: dialplan [dialplan.c:191]: mod_init(): could
>> not initialize data
>>  0(19625) ERROR:  [core/sr_module.c:850]: init_mod():
>> Error while initializing module dialplan
>> (/usr/lib64/kamailio/modules/dialplan.so)
>> ERROR: error while initializing modules
>>
>>
>> from my kamailio.cfg i defined the DBURL like this:
>>
>> # Use /etc/my.cnf.d/kamailio.cnf to store credentials
>> # within a mysql-db-group
>> #!define DBURL "mysql://[kamailio]/kamailio"
>>
>> and special modules can use it like this (or via DBURL)
>> modparam("sqlops", "sqlcon", "cb=>mysql://[kamailio]/kamailio")
>>
>> cat /etc/my.cnf.d/kamailio.cnf
>>
>> # MySQL configuration group for kamailio
>> [kamailio]
>> user=kamailio
>> password="kamailiorw"
>> host=172.20.100.22
>>
>>
>> rpm -qa | grep kam
>> kamailio-dialplan-5.3.0-13.1.x86_64
>> kamailio-websocket-5.3.0-13.1.x86_64
>> kamailio-jansson-5.3.0-13.1.x86_64
>> kamailio-mysql-5.3.0-13.1.x86_64
>> kamailio-tls-5.3.0-13.1.x86_64
>> kamailio-ims-5.3.0-13.1.x86_64
>> kamailio-statsd-5.3.0-13.1.x86_64
>> kamailio-5.3.0-13.1.x86_64
>> kamailio-redis-5.3.0-13.1.x86_64
>>
>>  cat /etc/redhat-release
>> CentOS Linux release 7.6.1810 (Core)
>>
>> -- 
>> Cheers
>> *Karsten Horsmann*
>>
>>
>>
>> -- 
>> Mit freundlichen Grüßen
>> *Karsten Horsmann*
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org 
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> -- 
> Daniel-Constantin Mierla -- www.asipto.com 
> www.twitter.com/miconda  -- 
> www.linkedin.com/in/miconda 
> Kamailio Advanced Training,