Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.700 diff -u -r1.700 chan_sip.c --- channels/chan_sip.c 30 Mar 2005 16:28:28 -0000 1.700 +++ channels/chan_sip.c 3 Apr 2005 19:04:01 -0000 @@ -6219,6 +6219,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: Action ID for this transaction. Will be returned.\n"; @@ -6236,13 +6238,14 @@ if (id && !ast_strlen_zero(id)) snprintf(idtext,256,"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(s->fd, &total, s, m, 3, a); /* Send final confirmation */ ast_mutex_lock(&s->lock); ast_cli(s->fd, "Event: PeerlistComplete\r\n" + "EventList: Complete\r\n" "ListItems: %d\r\n" "%s" "\r\n", total, idtext); @@ -6478,7 +6481,7 @@ static char mandescr_show_peer[] = "Description: Show one SIP peer with details on current status.\n" -" The XML format is under development, feedback welcome! /oej\n" +" The format is under development, feedback welcome! /oej\n" "Variables: \n" " Peer: The peer name you want to check.\n" " ActionID: Optional action ID for this AMI transaction.\n";