From 222d5d9131d33bc7fa44a0b8dee07643617ee758 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 7 Jan 2010 16:52:01 +0000 Subject: [PATCH] nat tweaks git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16199 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_nat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_nat.c b/src/switch_nat.c index 23a1ded60d..bb0bfe3da5 100644 --- a/src/switch_nat.c +++ b/src/switch_nat.c @@ -103,7 +103,7 @@ static int init_upnp (void) } if (!dev) { dev = devlist; /* defaulting to first device */ - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "No InternetGatewayDevice, using first entry as default.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "No InternetGatewayDevice, using first entry as default (%s).\n", dev->descURL); } descXML = miniwget(dev->descURL, &descXMLsize); @@ -114,6 +114,8 @@ static int init_upnp (void) parserootdesc (descXML, descXMLsize, &nat_globals.data); free (descXML); descXML = 0; GetUPNPUrls (&nat_globals.urls, &nat_globals.data, dev->descURL); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Unable to retrieve device description XML (%s).\n", dev->descURL); } freeUPNPDevlist(devlist);