[sr-dev] git:5.4:9f2f517f: rtp_media_server: declare variables in .c files
Daniel-Constantin Mierla
miconda at gmail.com
Fri Oct 23 11:09:26 CEST 2020
Module: kamailio
Branch: 5.4
Commit: 9f2f517ffbc616d14567fcb9948147dae6507da0
URL: https://github.com/kamailio/kamailio/commit/9f2f517ffbc616d14567fcb9948147dae6507da0
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-10-23T10:57:21+02:00
rtp_media_server: declare variables in .c files
- extern in .h files, GH #2522
(cherry picked from commit 128ba4fe95f3c27474c9f839d34f8fb1fd75e064)
---
Modified: src/modules/rtp_media_server/rms_dialog_info.c
Modified: src/modules/rtp_media_server/rtp_media_server.c
Modified: src/modules/rtp_media_server/rtp_media_server.h
---
Diff: https://github.com/kamailio/kamailio/commit/9f2f517ffbc616d14567fcb9948147dae6507da0.diff
Patch: https://github.com/kamailio/kamailio/commit/9f2f517ffbc616d14567fcb9948147dae6507da0.patch
---
diff --git a/src/modules/rtp_media_server/rms_dialog_info.c b/src/modules/rtp_media_server/rms_dialog_info.c
index 24fe0bb0c0..b8c51bada2 100644
--- a/src/modules/rtp_media_server/rms_dialog_info.c
+++ b/src/modules/rtp_media_server/rms_dialog_info.c
@@ -19,9 +19,12 @@
*/
#include "rtp_media_server.h"
+
extern rms_dialog_info_t *rms_dialog_list;
extern int in_rms_process;
+ser_lock_t dialog_list_mutex;
+
static void rms_action_free(rms_dialog_info_t *si)
{
rms_action_t *a, *tmp;
diff --git a/src/modules/rtp_media_server/rtp_media_server.c b/src/modules/rtp_media_server/rtp_media_server.c
index 8f2b2592aa..99eca96484 100644
--- a/src/modules/rtp_media_server/rtp_media_server.c
+++ b/src/modules/rtp_media_server/rtp_media_server.c
@@ -36,6 +36,8 @@ static char *rms_answer_default_route = "rms:start";
int in_rms_process;
rms_t *rms;
+struct tm_binds tmb;
+
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);
diff --git a/src/modules/rtp_media_server/rtp_media_server.h b/src/modules/rtp_media_server/rtp_media_server.h
index bf22660b1b..cd3a0109ce 100644
--- a/src/modules/rtp_media_server/rtp_media_server.h
+++ b/src/modules/rtp_media_server/rtp_media_server.h
@@ -39,7 +39,7 @@
#include "rms_media.h"
#include "rms_dialog_info.h"
-ser_lock_t dialog_list_mutex;
+extern ser_lock_t dialog_list_mutex;
@@ -51,7 +51,7 @@ typedef struct rms
char *local_ip;
} rms_t;
-struct tm_binds tmb;
+extern struct tm_binds tmb;
#endif
More information about the sr-dev
mailing list