[SR-Users] kamctl cr reload doesn't reload all routes

Henning Westerholt hw at gilawa.com
Wed Nov 30 17:21:55 CET 2022


Hello Igor,

yes - you can use a RPC command, I think its in corex module.

Cheers,

Henning

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

From: Igor Potjevlesch <igor.potjevlesch at gmail.com>
Sent: Wednesday, November 30, 2022 5:14 PM
To: Henning Westerholt <hw at gilawa.com>
Subject: RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello Henning,

Not really. I just place a call to the prefix and I can see that the route is still the previous one, not the one updated in DB.
Can I set INFO loglevel without restarting?

Regards,

Igor.

De : Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>
Envoyé : mercredi 30 novembre 2022 15:03
À : Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Objet : RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello Igor,

Strange. If not already done, you can try to set INFO loglevel to get maybe a bit more information.
How do you verify the routes, but looking to RPC output probably?

Cheers,

Henning

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

From: Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>
Sent: Wednesday, November 30, 2022 2:58 PM
To: Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Subject: RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hi Henning,

The problem is still there on the concerned instance. I tried to reload again, and I didn't see the error but the routes are not updated.

Regards,

Igor.

De : Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>
Envoyé : mercredi 30 novembre 2022 14:44
À : Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Objet : RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hi Igor,

ok, might be some issue with the DB, if it does not happen anymore. You probably notice when it happens again and can investigate then.

Regarding the table, just note that there is also a fourth table involved, domain_name:
https://kamailio.org/docs/db-tables/kamailio-db-5.5.x.html#idm812

Cheers,

Henning

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

From: Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>
Sent: Wednesday, November 30, 2022 2:35 PM
To: Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Subject: RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello Henning,

I tried to review all the routes. Unfortunately, I didn't have access to the logs of the last reboot and its not easy to reboot the instance.
I tried to copy the same tables (carrierroute, carrierfailureroute and carrier_name) on another instance and cr reload has been executed without any issue.
Not easy to highlight where the problem comes from.

Regards,

Igor.

De : Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>
Envoyé : mardi 29 novembre 2022 21:13
À : Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Objet : RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello Igor,

This is usually caused from wrong or incomplete routing data in the DB. Review if you e.g. have some missing domains or carrier entries in the respective tables.
Also look for some errors or warnings related to carrierroute at a restart.

Cheers,

Henning

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

From: Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>
Sent: Tuesday, November 29, 2022 6:08 PM
To: Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>; 'Kamailio (SER) - Users Mailing List' <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Subject: RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello Henning,

That's a good point. I tried again and I could see this:
ERROR: carrierroute [cr_rpc.c:60]: cr_rpc_reload_routes(): failed to load routing data

Nothing more precise.

Regards,

Igor.

De : Henning Westerholt <hw at gilawa.com<mailto:hw at gilawa.com>>
Envoyé : mardi 29 novembre 2022 16:12
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Cc : Igor Potjevlesch <igor.potjevlesch at gmail.com<mailto:igor.potjevlesch at gmail.com>>
Objet : RE: [SR-Users] kamctl cr reload doesn't reload all routes

Hello,

any error message in the logs from carrierroute reload?

Cheers,

Henning

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

From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at lists.kamailio.org>> On Behalf Of Igor Potjevlesch
Sent: Tuesday, November 29, 2022 4:04 PM
To: sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
Subject: [SR-Users] kamctl cr reload doesn't reload all routes

Hello!

I'm facing a problem with one of my Kamailio instance: "kamctl cr reload" returns OK, but, finally, the route I modified, or I added are not takes.
I'm still on a previous route.

If I completely reboot Kamailio it's okay. So, the last time, I rebooted with more memory, and I was thinking that it could fix the problem, but not.

Do you have any idea?

Regards,

Igor.

[Das Bild wurde vom Absender entfernt.]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Sans virus.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221130/af8fcaea/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 823 bytes
Desc: image001.jpg
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221130/af8fcaea/attachment.jpg>


More information about the sr-users mailing list