[asterisk-commits] oej: trunk r46509 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 30 14:22:41 MST 2006


Author: oej
Date: Mon Oct 30 15:22:41 2006
New Revision: 46509

URL: http://svn.digium.com/view/asterisk?rev=46509&view=rev
Log:
Update sip list to eventlist format.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=46509&r1=46508&r2=46509&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Oct 30 15:22:41 2006
@@ -9453,6 +9453,8 @@
 
 static char mandescr_show_peers[] = 
 "Description: Lists SIP peers in text format with details on current status.\n"
+"Peerlist will follow as separate events, followed by a final event called\n"
+"PeerlistComplete.\n"
 "Variables: \n"
 "  ActionID: <id>	Action ID for this transaction. Will be returned.\n";
 
@@ -9468,12 +9470,13 @@
 	if (!ast_strlen_zero(id))
 		snprintf(idtext, sizeof(idtext), "ActionID: %s\r\n", id);
 
-	astman_send_ack(s, m, "Peer status list will follow");
+	astman_send_listack(s, m, "Peer status list will follow", "start");
 	/* List the peers in separate manager events */
 	_sip_show_peers(-1, &total, s, m, 3, a);
 	/* Send final confirmation */
 	astman_append(s,
 	"Event: PeerlistComplete\r\n"
+	"EventList: Complete\r\n"
 	"ListItems: %d\r\n"
 	"%s"
 	"\r\n", total, idtext);



More information about the asterisk-commits mailing list