summaryrefslogtreecommitdiff
path: root/modules/ice
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-10-03 19:54:31 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-10-03 19:54:45 +0200
commit26b1c86e32abc1d2543d667c80b3532e6e178c16 (patch)
tree18cce021fd22c6685620103e0541727091c924e6 /modules/ice
parent2ab52a5cfe707db5d4199f692c2ffd7c9c2c2508 (diff)
ice: additional logging
Diffstat (limited to 'modules/ice')
-rw-r--r--modules/ice/ice.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ice/ice.c b/modules/ice/ice.c
index ac2c4d9..2782069 100644
--- a/modules/ice/ice.c
+++ b/modules/ice/ice.c
@@ -250,6 +250,9 @@ static void dns_handler(int err, const struct sa *srv, void *arg)
if (err)
goto out;
+ debug("ice: resolved %s-server to address %J\n",
+ ice.turn ? "TURN" : "STUN", srv);
+
sess->srv = *srv;
for (le=sess->medial.head; le; le=le->next) {
@@ -281,6 +284,10 @@ static int session_alloc(struct mnat_sess **sessp, struct dnsc *dnsc,
if (!sessp || !dnsc || !srv || !user || !pass || !ss || !estabh)
return EINVAL;
+ info("ice: new session with %s-server at %s (username=%s)\n",
+ ice.turn ? "TURN" : "STUN",
+ srv, user);
+
sess = mem_zalloc(sizeof(*sess), session_destructor);
if (!sess)
return ENOMEM;