mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 49676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49676 | kpfleming | 2007-01-05 16:16:33 -0600 (Fri, 05 Jan 2007) | 2 lines reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4289,7 +4289,7 @@ static int iax2_show_peers(int fd, int argc, char *argv[])
|
||||
{
|
||||
return __iax2_show_peers(0, fd, NULL, argc, argv);
|
||||
}
|
||||
static int manager_iax2_show_netstats( struct mansession *s, struct message *m )
|
||||
static int manager_iax2_show_netstats(struct mansession *s, const struct message *m)
|
||||
{
|
||||
ast_cli_netstats(s, -1, 0);
|
||||
astman_append(s, "\r\n");
|
||||
@@ -4317,12 +4317,12 @@ static int iax2_show_firmware(int fd, int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* JDG: callback to display iax peers in manager */
|
||||
static int manager_iax2_show_peers( struct mansession *s, struct message *m )
|
||||
static int manager_iax2_show_peers(struct mansession *s, const struct message *m)
|
||||
{
|
||||
char *a[] = { "iax2", "show", "users" };
|
||||
int ret;
|
||||
char *id;
|
||||
id = astman_get_header(m,"ActionID");
|
||||
const char *id = astman_get_header(m,"ActionID");
|
||||
|
||||
if (!ast_strlen_zero(id))
|
||||
astman_append(s, "ActionID: %s\r\n",id);
|
||||
ret = __iax2_show_peers(1, -1, s, 3, a );
|
||||
|
Reference in New Issue
Block a user