summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-26 20:26:20 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-26 20:26:20 +0100
commit53712434c0f7b6d34523540ad766aa27c2cc9501 (patch)
treee40f9b195764aa9ec406d00a9d5729e66959028f /modules
parentdb040d4ea167f23139d571662e79a4478700025e (diff)
mnat: make it re-entrant
Diffstat (limited to 'modules')
-rw-r--r--modules/ice/ice.c3
-rw-r--r--modules/natpmp/natpmp.c2
-rw-r--r--modules/pcp/pcp.c2
-rw-r--r--modules/stun/stun.c3
-rw-r--r--modules/turn/turn.c3
5 files changed, 8 insertions, 5 deletions
diff --git a/modules/ice/ice.c b/modules/ice/ice.c
index 2782069..4b3b1ac 100644
--- a/modules/ice/ice.c
+++ b/modules/ice/ice.c
@@ -689,7 +689,8 @@ static int module_init(void)
}
#endif
- return mnat_register(&mnat, "ice", "+sip.ice",
+ return mnat_register(&mnat, baresip_mnatl(),
+ "ice", "+sip.ice",
session_alloc, media_alloc, update);
}
diff --git a/modules/natpmp/natpmp.c b/modules/natpmp/natpmp.c
index 9157612..45c7809 100644
--- a/modules/natpmp/natpmp.c
+++ b/modules/natpmp/natpmp.c
@@ -365,7 +365,7 @@ static int module_init(void)
if (err)
return err;
- return mnat_register(&mnat, "natpmp", NULL,
+ return mnat_register(&mnat, baresip_mnatl(), "natpmp", NULL,
session_alloc, media_alloc, NULL);
}
diff --git a/modules/pcp/pcp.c b/modules/pcp/pcp.c
index 8803594..601e1be 100644
--- a/modules/pcp/pcp.c
+++ b/modules/pcp/pcp.c
@@ -346,7 +346,7 @@ static int module_init(void)
}
#endif
- return mnat_register(&mnat, "pcp", NULL,
+ return mnat_register(&mnat, baresip_mnatl(), "pcp", NULL,
session_alloc, media_alloc, NULL);
}
diff --git a/modules/stun/stun.c b/modules/stun/stun.c
index d7edf94..48dffe7 100644
--- a/modules/stun/stun.c
+++ b/modules/stun/stun.c
@@ -230,7 +230,8 @@ static int media_alloc(struct mnat_media **mp, struct mnat_sess *sess,
static int module_init(void)
{
- return mnat_register(&mnat, "stun", NULL, session_alloc, media_alloc,
+ return mnat_register(&mnat, baresip_mnatl(),
+ "stun", NULL, session_alloc, media_alloc,
NULL);
}
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);
}