diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-30 21:22:41 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-30 21:22:41 +0000 |
commit | c7e24f2a768c9266e659aee285e4a5ada7f4cd82 (patch) | |
tree | a16654723dc1fc684d1fcbb51c7c62658f3ace83 | |
parent | f171dba1a09fcd6cdff82b72829c7b5d07ee312b (diff) |
Update sip list to eventlist format.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46509 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fbe7ed1d6..12743933e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); |