Update sip list to eventlist format.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
692dc8fd80
commit
ab414260c4
|
@ -9453,6 +9453,8 @@ static int sip_show_users(int fd, int argc, char *argv[])
|
|||
|
||||
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 @@ static int manager_sip_show_peers( struct mansession *s, struct message *m )
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue