Module: kamailio
Branch: master
Commit: 3bcef382b810b4cd2a5a03b079086fee3bbbe187
URL:
https://github.com/kamailio/kamailio/commit/3bcef382b810b4cd2a5a03b079086fe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-10-25T18:45:33+02:00
rtp_media_server: init global variables
---
Modified: src/modules/rtp_media_server/rms_dialog_info.c
Modified: src/modules/rtp_media_server/rtp_media_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3bcef382b810b4cd2a5a03b079086fe…
Patch:
https://github.com/kamailio/kamailio/commit/3bcef382b810b4cd2a5a03b079086fe…
---
diff --git a/src/modules/rtp_media_server/rms_dialog_info.c
b/src/modules/rtp_media_server/rms_dialog_info.c
index cbe5798518..efd4c26f68 100644
--- a/src/modules/rtp_media_server/rms_dialog_info.c
+++ b/src/modules/rtp_media_server/rms_dialog_info.c
@@ -23,7 +23,7 @@
extern rms_dialog_info_t *rms_dialog_list;
extern int in_rms_process;
-gen_lock_t *dialog_list_mutex;
+gen_lock_t *dialog_list_mutex = NULL;
static void rms_action_free(rms_dialog_info_t *si)
{
diff --git a/src/modules/rtp_media_server/rtp_media_server.c
b/src/modules/rtp_media_server/rtp_media_server.c
index cb4939f840..bc528d40a3 100644
--- a/src/modules/rtp_media_server/rtp_media_server.c
+++ b/src/modules/rtp_media_server/rtp_media_server.c
@@ -24,20 +24,22 @@
MODULE_VERSION
-rms_dialog_info_t *rms_dialog_list;
-static int mod_init(void);
-static void mod_destroy(void);
-static int child_init(int);
+rms_dialog_info_t *rms_dialog_list = NULL;
+
str playback_fn = {0, 0};
str log_fn = {0, 0};
static char *rms_bridge_default_route = "rms:bridged";
static char *rms_answer_default_route = "rms:start";
-int in_rms_process;
-rms_t *rms;
+int in_rms_process = 0;
+rms_t *rms = NULL;
struct tm_binds tmb;
+static int mod_init(void);
+static void mod_destroy(void);
+static int child_init(int);
+
static rms_dialog_info_t *rms_dialog_create_leg(rms_dialog_info_t *di, struct sip_msg
*msg);
static int fixup_rms_action_play(void **param, int param_no);
static int fixup_rms_bridge(void **param, int param_no);