Skip to content
Snippets Groups Projects
Commit 87ff40d3 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

Add 'mohsuggest' configuration option to 'sip show peer' CLI command and

SIPShowPeer AMI action.

(closes issue #15990)
Reported by: _brent_
Patches:
      sip_peer_info_mohsuggest-r3.patch uploaded by brent (license 388)

Review: https://reviewboard.asterisk.org/r/381/



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@225245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent cdd1f9e2
Branches
Tags
No related merge requests found
...@@ -15684,6 +15684,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct ...@@ -15684,6 +15684,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct
ast_cli(fd, " Pickupgroup : "); ast_cli(fd, " Pickupgroup : ");
print_group(fd, peer->pickupgroup, 0); print_group(fd, peer->pickupgroup, 0);
peer_mailboxes_to_str(&mailbox_str, peer); peer_mailboxes_to_str(&mailbox_str, peer);
ast_cli(fd, " MOH Suggest : %s\n", peer->mohsuggest);
ast_cli(fd, " Mailbox : %s\n", mailbox_str->str); ast_cli(fd, " Mailbox : %s\n", mailbox_str->str);
ast_cli(fd, " VM Extension : %s\n", peer->vmexten); ast_cli(fd, " VM Extension : %s\n", peer->vmexten);
ast_cli(fd, " LastMsgsSent : %d/%d\n", (peer->lastmsgssent & 0x7fff0000) >> 16, peer->lastmsgssent & 0xffff); ast_cli(fd, " LastMsgsSent : %d/%d\n", (peer->lastmsgssent & 0x7fff0000) >> 16, peer->lastmsgssent & 0xffff);
...@@ -15792,6 +15793,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct ...@@ -15792,6 +15793,7 @@ static char *_sip_show_peer(int type, int fd, struct mansession *s, const struct
astman_append(s, "%s\r\n", ast_print_group(buffer, sizeof(buffer), peer->callgroup)); astman_append(s, "%s\r\n", ast_print_group(buffer, sizeof(buffer), peer->callgroup));
astman_append(s, "Pickupgroup: "); astman_append(s, "Pickupgroup: ");
astman_append(s, "%s\r\n", ast_print_group(buffer, sizeof(buffer), peer->pickupgroup)); astman_append(s, "%s\r\n", ast_print_group(buffer, sizeof(buffer), peer->pickupgroup));
astman_append(s, "MOHSuggest: %s\r\n", peer->mohsuggest);
peer_mailboxes_to_str(&mailbox_str, peer); peer_mailboxes_to_str(&mailbox_str, peer);
astman_append(s, "VoiceMailbox: %s\r\n", mailbox_str->str); astman_append(s, "VoiceMailbox: %s\r\n", mailbox_str->str);
astman_append(s, "TransferMode: %s\r\n", transfermode2str(peer->allowtransfer)); astman_append(s, "TransferMode: %s\r\n", transfermode2str(peer->allowtransfer));
......
...@@ -193,6 +193,7 @@ the mailing list archives and the documentation page on the ...@@ -193,6 +193,7 @@ the mailing list archives and the documentation page on the
Membership: <string> -- "Dynamic" or "static" member in queue Membership: <string> -- "Dynamic" or "static" member in queue
Message: <text> -- Text message in ACKs, errors (explanation) Message: <text> -- Text message in ACKs, errors (explanation)
Mix: <bool> -- Boolean parameter (monitor) Mix: <bool> -- Boolean parameter (monitor)
MOHSuggest: -- Suggested music on hold class for peer (mohsuggest)
NewMessages: <count> -- Count of new Mailbox messages (mailboxcount) NewMessages: <count> -- Count of new Mailbox messages (mailboxcount)
Newname: Newname:
ObjectName: -- Name of object in list ObjectName: -- Name of object in list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment