It's possible to add a http listener to Kamailio and use rpc over http.
You can also use rtimer and add a route to reload the table periodically.
Regards, Kaufman
________________________________ From: David Cunningham Sent: Sunday, April 27, 2025 7:14 PM To: Ben Kaufman Cc: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] rtpengine module does not detect new nodes in table
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hello,
Thank you for that. In our case the database entries are inserted on a separate server to the one Kamailio is running on, so it's not easy for the program adding nodes to run "kamcmd rtpengine.reload".
Is this the only solution that's available?
On Thu, 24 Apr 2025 at 13:47, Ben Kaufman <bkaufman@bcmone.commailto:bkaufman@bcmone.com> wrote: There's an RPC command for reloading rtpengine config:
https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengin...https://urldefense.com/v3/__https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html*rtpengine.r.reload__;Iw!!KWzduNI!Zg9I9J9aWZOkY7EORpWUetminDhbl4eQzmJCHHG69gkHLYX7XXCuxzUTQABgiLpxieevA-sZYYWqyDfucIjavT8$
Regards, Kaufman
________________________________ From: David Cunningham via sr-users Sent: Wednesday, April 23, 2025 4:55 PM To: Kamailio (SER) - Users Mailing List Cc: David Cunningham Subject: [SR-Users] rtpengine module does not detect new nodes in table
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hello,
We are using Kamailio 5.8.2 with the rtpengine module on Ubuntu 22.04. The "rtpengine" table is used to define nodes, with a configuration like this:
modparam( "rtpengine", "db_url", DB_URL ) modparam( "rtpengine", "table_name", "rtpengine" ) modparam( "rtpengine", "setid_default", 1 )
It works fine if Kamailio is restarted after entries in the "rtpengine" table are inserted or deleted, but new entries in the table aren't detected automatically. Is there a way to configure Kamailio to detect them?
Thank you,
-- David Cunningham, Voisonics Limited http://voisonics.com/https://urldefense.com/v3/__http://voisonics.com/__;!!KWzduNI!ZdLfAmCE7Q_j-nlwkepzScbqd2y5y4MYuTtXwBhV-Hd-NoiLTmYB-0XaOErxWJh78fmsFHNDJvVclyTn9-JJljo$ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782
-- David Cunningham, Voisonics Limited http://voisonics.com/https://urldefense.com/v3/__http://voisonics.com/__;!!KWzduNI!Zg9I9J9aWZOkY7EORpWUetminDhbl4eQzmJCHHG69gkHLYX7XXCuxzUTQABgiLpxieevA-sZYYWqyDfuwP5wkYY$ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782