- kamailio version version: kamailio 6.0.1 (x86_64/linux) fce50d - operating system where server is running: Linux Ubuntu 24 - CPU architecture of the system - 1 CPU - error log messages from syslog - no errors - if there is a coredump file, use gdb to extract the following: - information about when it happens: - - at startup - at shutdown - at runtime: - permanently
============= ISSUE DESCRIPTION ===============
In case of event below, script execution takes too much time (40 sec):
*event_route[dispatcher:dst-down] {exec_msg("/bin/bash -c '/usr/local/etc/kamailio/ipassign.sh &'");}*
In case I run this script from shell it takes ~2 sec.
----------------------------------------------------------------------------------------------- Configs attached.
Hi,
Are you implying that if you run the script manually, in exactly that fashion, it does not take 40 sec? Have you checked?
On Jun 16, 2025, at 9:58 AM, Сергей Приймак via sr-users sr-users@lists.kamailio.org wrote:
• kamailio version version: kamailio 6.0.1 (x86_64/linux) fce50d • operating system where server is running: Linux Ubuntu 24 • CPU architecture of the system - 1 CPU • error log messages from syslog - no errors • if there is a coredump file, use gdb to extract the following: • information about when it happens: • • at startup • at shutdown • at runtime: - permanently
============= ISSUE DESCRIPTION ===============
In case of event below, script execution takes too much time (40 sec): event_route[dispatcher:dst-down] { exec_msg("/bin/bash -c '/usr/local/etc/kamailio/ipassign.sh &'"); } In case I run this script from shell it takes ~2 sec.
Configs attached. <ipassign.sh><kamailio.cfg>__________________________________________________________ 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!
-- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com, https://www.csrpswitch.com Tel: +1-706-510-6800
Exactly If i run from shell like sudo -u kamailio ./ipassign.sh it takes several seconds.
From kamailio.cfg it is 40 seconds.
Пн, 16 июня 2025 г. в 18:45, Alex Balashov via sr-users < sr-users@lists.kamailio.org>:
Hi,
Are you implying that if you run the script manually, in exactly that fashion, it does not take 40 sec? Have you checked?
On Jun 16, 2025, at 9:58 AM, Сергей Приймак via sr-users <
sr-users@lists.kamailio.org> wrote:
• kamailio version version: kamailio 6.0.1 (x86_64/linux) fce50d • operating system where server is running: Linux Ubuntu 24 • CPU architecture of the system - 1 CPU • error log messages from syslog - no errors • if there is a coredump file, use gdb to extract the following: • information about when it happens: • • at startup • at shutdown • at runtime: - permanently
============= ISSUE DESCRIPTION ===============
In case of event below, script execution takes too much time (40 sec): event_route[dispatcher:dst-down] { exec_msg("/bin/bash -c '/usr/local/etc/kamailio/ipassign.sh &'"); } In case I run this script from shell it takes ~2 sec.
Configs attached.
<ipassign.sh><kamailio.cfg>__________________________________________________________
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!
-- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com, https://www.csrpswitch.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!