Skip to content

Commit b6d9710

Browse files
committed
Add RTP forwarders support to SIP and NoSIP plugins (see #3583)
1 parent 82dbf11 commit b6d9710

File tree

7 files changed

+1647
-15
lines changed

7 files changed

+1647
-15
lines changed

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CLEANFILES = $(NULL)
1313
bin_PROGRAMS = janus
1414

1515
headerdir = $(includedir)/janus
16-
header_HEADERS = apierror.h config.h log.h debug.h mutex.h record.h \
16+
header_HEADERS = apierror.h config.h log.h debug.h mutex.h record.h rtpfwd.h \
1717
rtcp.h rtp.h rtpsrtp.h sdp-utils.h ip-utils.h utils.h refcount.h text2pcap.h
1818

1919
pluginsheaderdir = $(includedir)/janus/plugins
@@ -117,6 +117,8 @@ janus_SOURCES = \
117117
rtp.c \
118118
rtp.h \
119119
rtpsrtp.h \
120+
rtpfwd.c \
121+
rtpfwd.h \
120122
sctp.c \
121123
sctp.h \
122124
sdp.c \

janus.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "debug.h"
4040
#include "ip-utils.h"
4141
#include "rtcp.h"
42+
#include "rtpfwd.h"
4243
#include "auth.h"
4344
#include "record.h"
4445
#include "events.h"
@@ -5255,6 +5256,11 @@ gint main(int argc, char *argv[])
52555256
JANUS_LOG(LOG_WARN, "Data Channels support not compiled\n");
52565257
#endif
52575258

5259+
/* Initialize the RTP forwarders functionality */
5260+
if(janus_rtp_forwarders_init() < 0) {
5261+
exit(1);
5262+
}
5263+
52585264
/* Sessions */
52595265
sessions = g_hash_table_new_full(g_int64_hash, g_int64_equal, (GDestroyNotify)g_free, NULL);
52605266
/* Start the sessions timeout watchdog */
@@ -5787,6 +5793,7 @@ gint main(int argc, char *argv[])
57875793
JANUS_LOG(LOG_INFO, "De-initializing SCTP...\n");
57885794
janus_sctp_deinit();
57895795
#endif
5796+
janus_rtp_forwarders_deinit();
57905797
janus_auth_deinit();
57915798

57925799
JANUS_LOG(LOG_INFO, "Closing plugins:\n");

0 commit comments

Comments
 (0)