From 813fd67a794072dc9482d874f384ea17e163fce8 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 30 Jun 2009 19:36:44 +0000 Subject: [PATCH] fix this for now git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14057 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_nat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_nat.c b/src/switch_nat.c index 708c4a5fb4..bbebc3a9b8 100644 --- a/src/switch_nat.c +++ b/src/switch_nat.c @@ -156,8 +156,9 @@ static int get_pmp_pubaddr(char *pub_addr) goto end; } + pubaddr = inet_ntoa(response.pnu.publicaddress.addr); - switch_set_string(pub_addr, pubaddr); + switch_set_string(nat_globals.pub_addr, pubaddr); nat_globals.nat_type = SWITCH_NAT_TYPE_PMP; closenatpmp(&natpmp);