[asterisk-dev] A small cosmetic patch for chan_sip in 1.8

Pavel Troller patrol at sinus.cz
Wed Mar 2 23:27:35 CST 2011


Hi!
  sip show peers command in 1.8 branch looks wrong - the header line uses
different format than the data. The following patch tries to fix it.
  With regards, Pavel.

-------------- next part --------------
Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c	(revision 309090)
+++ channels/chan_sip.c	(working copy)
@@ -15721,7 +15721,7 @@
 	
 /* the last argument is left-aligned, so we don't need a size anyways */
 #define FORMAT2 "%-25.25s  %-39.39s %-3.3s %-10.10s %-3.3s %-8s %-10s %s\n"
-#define FORMAT  "%-25.25s  %-39.39s %-3.3s %-3.3s %-3.3s %-8d %-10s %s\n"
+#define FORMAT  "%-25.25s  %-39.39s %-3.3s %-10.10s %-3.3s %-8d %-10s %s\n"
 
 	char name[256];
 	int total_peers = 0;


More information about the asterisk-dev mailing list