[asterisk-commits] mvanbaak: trunk r215665 - in /trunk/channels: chan_sip.c chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 2 16:23:21 CDT 2009


Author: mvanbaak
Date: Wed Sep  2 16:23:17 2009
New Revision: 215665

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215665
Log:
add Parkinglot info to sip show peer <foo> and skinny show line <foo>

If we had this from the start, debugging the 'parking not using configured parkinglot'
bug would have been easier.

Modified:
    trunk/channels/chan_sip.c
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=215665&r1=215664&r2=215665
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Sep  2 16:23:17 2009
@@ -15601,6 +15601,7 @@
 		ast_cli(fd, "  Sess-Expires : %d secs\n", peer->stimer.st_max_se);
 		ast_cli(fd, "  Min-Sess     : %d secs\n", peer->stimer.st_min_se);
 		ast_cli(fd, "  RTP Engine   : %s\n", peer->engine);
+		ast_cli(fd, "  Parkinglot   : %s\n", peer->parkinglot);
 		ast_cli(fd, "\n");
 		peer = unref_peer(peer, "sip_show_peer: unref_peer: done with peer ptr");
 	} else  if (peer && type == 1) { /* manager listing */
@@ -15680,6 +15681,7 @@
  		astman_append(s, "SIP-Useragent: %s\r\n", peer->useragent);
  		astman_append(s, "Reg-Contact: %s\r\n", peer->fullcontact);
 		astman_append(s, "QualifyFreq: %d ms\r\n", peer->qualifyfreq);
+		astman_append(s, "Parkinglot: %s\r\n", peer->parkinglot);
 		if (peer->chanvars) {
 			for (v = peer->chanvars ; v ; v = v->next) {
  				astman_append(s, "ChanVariable: %s=%s\r\n", v->name, v->value);

Modified: trunk/channels/chan_skinny.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=215665&r1=215664&r2=215665
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Sep  2 16:23:17 2009
@@ -3476,6 +3476,7 @@
 				ast_cli(fd, "NAT:              %s\n", (l->nat ? "Yes" : "No"));
 				ast_cli(fd, "immediate:        %s\n", (l->immediate ? "Yes" : "No"));
 				ast_cli(fd, "Group:            %d\n", l->group);
+				ast_cli(fd, "Parkinglot:       %s\n", S_OR(l->parkinglot, "<not set>"));
 				ast_cli(fd, "Conf Codecs:      ");
 				ast_getformatname_multiple(codec_buf, sizeof(codec_buf) - 1, l->confcapability);
 				ast_cli(fd, "%s\n", codec_buf);
@@ -3521,6 +3522,7 @@
 				astman_append(s, "NAT: %s\r\n", (l->nat ? "Yes" : "No"));
 				astman_append(s, "immediate: %s\r\n", (l->immediate ? "Yes" : "No"));
 				astman_append(s, "Group: %d\r\n", l->group);
+				astman_append(s, "Parkinglot: %s\r\n", S_OR(l->parkinglot, "<not set>"));
 				ast_getformatname_multiple(codec_buf, sizeof(codec_buf) - 1, l->confcapability);
 				astman_append(s, "Codecs: %s\r\n", codec_buf);
 				astman_append(s, "CodecOrder: ");




More information about the asterisk-commits mailing list