diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-26 20:26:20 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-26 20:26:20 +0100 |
commit | 53712434c0f7b6d34523540ad766aa27c2cc9501 (patch) | |
tree | e40f9b195764aa9ec406d00a9d5729e66959028f /modules/turn | |
parent | db040d4ea167f23139d571662e79a4478700025e (diff) |
mnat: make it re-entrant
Diffstat (limited to 'modules/turn')
-rw-r--r-- | modules/turn/turn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/turn/turn.c b/modules/turn/turn.c index 41588e6..85fe84b 100644 --- a/modules/turn/turn.c +++ b/modules/turn/turn.c @@ -279,7 +279,8 @@ static int update(struct mnat_sess *sess) static int module_init(void) { - return mnat_register(&mnat, "turn", NULL, session_alloc, media_alloc, + return mnat_register(&mnat, baresip_mnatl(), + "turn", NULL, session_alloc, media_alloc, update); } |