Module: sip-router
Branch: 3.3
Commit: 7e412d720b1747fadac3e94c22d270877087b8a0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7e412d7…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Thu Jul 12 21:44:45 2012 +0100
core: update printing of socket lists to show the advertised address if set for the
socket
- useful for diagnosing what is going on with advertised address
- Enhancement added by Hugh Waite @ Crocodile RCS
(cherry picked from commit 274969bcca2301c96dbbcc17c5b1d411073c8277)
---
socket_info.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/socket_info.c b/socket_info.c
index 1ccddfd..7c32a10 100644
--- a/socket_info.c
+++ b/socket_info.c
@@ -1998,10 +1998,13 @@ void print_all_socket_lists()
si->name.s);
if (!si->flags & SI_IS_IP)
printf(" [%s]", si->address_str.s);
- printf( ":%s%s%s\n",
+ printf( ":%s%s%s",
si->port_no_str.s,
si->flags & SI_IS_MCAST ? " mcast" : "",
si->flags & SI_IS_MHOMED? " mhomed" : "");
+ if (si->useinfo.name.s)
+ printf(" advertise %s", si->useinfo.name.s);
+ printf("\n");
}
}
}while((proto=next_proto(proto)));