[asterisk-commits] oej: branch oej/codename-pineapple r54351 - /team/oej/codename-pineapple/chan...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 14 09:01:00 MST 2007


Author: oej
Date: Wed Feb 14 10:00:59 2007
New Revision: 54351

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54351
Log:
Following trunk

Modified:
    team/oej/codename-pineapple/channels/chan_sip3.c

Modified: team/oej/codename-pineapple/channels/chan_sip3.c
URL: http://svn.digium.com/view/asterisk/team/oej/codename-pineapple/channels/chan_sip3.c?view=diff&rev=54351&r1=54350&r2=54351
==============================================================================
--- team/oej/codename-pineapple/channels/chan_sip3.c (original)
+++ team/oej/codename-pineapple/channels/chan_sip3.c Wed Feb 14 10:00:59 2007
@@ -3297,6 +3297,8 @@
 
 	if (!strcasecmp(colname, "ip")) {
 		ast_copy_string(buf, peer->addr.sin_addr.s_addr ? ast_inet_ntoa(peer->addr.sin_addr) : "", len);
+	} else  if (!strcasecmp(colname, "port")) {
+		snprintf(buf, len, "%d", ntohs(peer->addr.sin_port));
 	} else  if (!strcasecmp(colname, "status")) {
 		device_status(peer, buf, len);
 	} else  if (!strcasecmp(colname, "language")) {
@@ -3350,6 +3352,7 @@
 	.read = function_sippeer,
 	.desc = "Valid items are:\n"
 	"- ip (default)          The IP address.\n"
+	"- port                  The port number\n"
 	"- mailbox               The configured mailbox.\n"
 	"- context               The configured context.\n"
 	"- expire                The epoch time of the next expire.\n"



More information about the asterisk-commits mailing list