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/ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782
There's an RPC command for reloading rtpengine config:
https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengin...
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
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.com wrote:
There's an RPC command for reloading rtpengine config:
https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengin...
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
On Apr 27, 2025, at 8:14 PM, David Cunningham via sr-users sr-users@lists.kamailio.org wrote:
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?
It is.
However, this management does not have to be run locally via `kamcmd`. Like other management commands, it can be invoked remotely via HTTP, e.g.
https://kamailio.org/docs/modules/5.8.x/modules/jsonrpcs.html
-- Alex
Hello,
of course you could also create some small script watch daemon, to just execute it when the DB got changed, or execute it every 30min by cron job if its not time critical etc..
Cheers,
Henning
-----Original Message----- From: Alex Balashov via sr-users sr-users@lists.kamailio.org Sent: Montag, 28. April 2025 06:00 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Alex Balashov abalashov@evaristesys.com Subject: [SR-Users] Re: rtpengine module does not detect new nodes in table
On Apr 27, 2025, at 8:14 PM, David Cunningham via sr-users <sr-
users@lists.kamailio.org> wrote:
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?
It is.
However, this management does not have to be run locally via `kamcmd`. Like other management commands, it can be invoked remotely via HTTP, e.g.
https://kamailio.org/docs/modules/5.8.x/modules/jsonrpcs.html
-- Alex
-- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com Tel: +1-706-510-6800
Kamailio - Users Mailing List - Non Commercial Discussions -- sr- users@lists.kamailio.org To unsubscribe send an email to sr-users- leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
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
Thank you everyone for those suggestions.
On Tue, 29 Apr 2025 at 01:34, Ben Kaufman bkaufman@bcmone.com wrote:
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.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