Hello,

it seems the data that gets delivered to the Kamailio is corrupted. Analyse it 
further e.g. with a network trace, wireshark etc..

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <[email protected]> On Behalf Of Paclinio
Sent: Friday, March 25, 2022 5:22 PM
To: [email protected]
Subject: [SR-Users] Kamailio : kamctl address reload with HAProxy

Dear colleagues,

I've installed a Galera cluster with a HAProxy that kamailio interacts with.
Kamailio's DBURL is linked to the proxy that will contact the databases.
Kamailio works fine except when I need to reload something from the database 
(Using kamctl).

When cache and database are the same I receive

sudo kamctl address reload
{
  "jsonrpc":  "2.0",
  "result": "Reload OK",
  "id": 13111
}

Now when I have something using kamctl, it still works and is replaced on all 
my databases.

sipsecure@kamailio:~$ sudo kamctl address add 0 192.168.48.15 32 0 Test
-e \E[37;33mINFO: execute '/sbin/kamctl address reload' to synchronize cache 
and database


 Then when i try to reload i receive

sipsecure@kamailio:~$ sudo kamctl address reload
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": 500,
    "message":  "Reload failed."
  },
  "id": 13504
}

And when I'm going to read my logs to see a error, I only see that little 
sentence

Mar 25 17:14:40 kamailio /usr/sbin/kamailio[13343]: ERROR: permissions 
[address.c:233]: reload_address_db_table(): database problem - invalid record

Could I have some explanation ?

Thank you.


[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free. 
www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to