[asterisk-commits] qwell: trunk r139210 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 20 17:06:40 CDT 2008


Author: qwell
Date: Wed Aug 20 17:06:40 2008
New Revision: 139210

URL: http://svn.digium.com/view/asterisk?view=rev&rev=139210
Log:
Fix output of sipshowpeer manager response.

(closes issue #13346)
Reported by: srt
Patches:
      13346_malformed_sip_show_peer_response.diff uploaded by srt (license 378)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=139210&r1=139209&r2=139210
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Aug 20 17:06:40 2008
@@ -13244,12 +13244,11 @@
 		peer_status(peer, status, sizeof(status));
 		astman_append(s, "%s\r\n", status);
  		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\n", peer->qualifyfreq);
+ 		astman_append(s, "Reg-Contact: %s\r\n", peer->fullcontact);
+		astman_append(s, "QualifyFreq: %d ms\r\n", peer->qualifyfreq);
 		if (peer->chanvars) {
 			for (v = peer->chanvars ; v ; v = v->next) {
- 				astman_append(s, "ChanVariable:\n");
- 				astman_append(s, " %s,%s\r\n", v->name, v->value);
+ 				astman_append(s, "ChanVariable: %s=%s\r\n", v->name, v->value);
 			}
 		}
 




More information about the asterisk-commits mailing list