Module: kamailio
Branch: master
Commit: e67f6048f4883d446df2d88fe7a7d7f2ff6daf8c
URL:
https://github.com/kamailio/kamailio/commit/e67f6048f4883d446df2d88fe7a7d7f…
Author: Bastian Triller <bastian.triller(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-05-28T19:55:35+02:00
rtpengine: Fix extra process in pkg.stats
When DTMF events socket is not configured, pkg.stats RPC method returns
an empty entry.
{
entry: 13
pid: 0
rank: -128
used: 0
free: 0
real_used: 0
total_size: 67108864
total_frags: 0
desc:
}
Fixes: 26f6e57c8f ("Register a new worker process for dtmf event listener")
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e67f6048f4883d446df2d88fe7a7d7f…
Patch:
https://github.com/kamailio/kamailio/commit/e67f6048f4883d446df2d88fe7a7d7f…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 6d62b92900d..c26f61e2483 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -2234,8 +2234,10 @@ static int mod_init(void)
}
}
- register_procs(1);
- cfg_register_child(1);
+ if(rtpengine_dtmf_event_sock.len > 0) {
+ register_procs(1);
+ cfg_register_child(1);
+ }
}
return 0;