[asterisk-commits] simon.perreault: branch group/v6-new r272528 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 25 13:15:35 CDT 2010


Author: simon.perreault
Date: Fri Jun 25 13:15:31 2010
New Revision: 272528

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272528
Log:
Simplified address/port displaying logic.

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=272528&r1=272527&r2=272528
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Fri Jun 25 13:15:31 2010
@@ -15779,14 +15779,8 @@
 		ast_cli(fd, "  Timer T1     : %d\n", peer->timer_t1);
 		ast_cli(fd, "  Timer B      : %d\n", peer->timer_b);
 		ast_cli(fd, "  ToHost       : %s\n", peer->tohost);
-		if(ast_sockaddr_isnull(&peer->addr))
-			ast_cli(fd, "  Addr->IP     : (Unspecified) Port 0\n");
-		else
-			ast_cli(fd, "  Addr->IP     : %s Port %d\n", ast_sockaddr_stringify_addr(&peer->addr), ast_sockaddr_port(&peer->defaddr));
-		if(ast_sockaddr_isnull(&peer->defaddr))
-				ast_cli(fd, "  Defaddr->IP  : (Unspecified) Port 0\n");
-		else
-				ast_cli(fd, "  Defaddr->IP  : %s Port %d\n", ast_sockaddr_stringify_addr(&peer->defaddr), ast_sockaddr_port(&peer->defaddr));
+		ast_cli(fd, "  Addr->IP     : %s\n", ast_sockaddr_stringify(&peer->addr));
+		ast_cli(fd, "  Defaddr->IP  : %s\n", ast_sockaddr_stringify_addr(&peer->defaddr));
 		ast_cli(fd, "  Prim.Transp. : %s\n", get_transport(peer->socket.type));
 		ast_cli(fd, "  Allowed.Trsp : %s\n", get_transport_list(peer->transports));
 		if (!ast_strlen_zero(sip_cfg.regcontext))




More information about the asterisk-commits mailing list