reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2007-01-05 22:16:33 +00:00
parent ac75028a50
commit 444adcb477
17 changed files with 319 additions and 308 deletions

View File

@@ -94,10 +94,10 @@ static char mandescr_playdtmf[] =
" Channel: Channel name to send digit to\n"
" Digit: The dtmf digit to play\n";
static int manager_play_dtmf(struct mansession *s, struct message *m)
static int manager_play_dtmf(struct mansession *s, const struct message *m)
{
char *channel = astman_get_header(m, "Channel");
char *digit = astman_get_header(m, "Digit");
const char *channel = astman_get_header(m, "Channel");
const char *digit = astman_get_header(m, "Digit");
struct ast_channel *chan = ast_get_channel_by_name_locked(channel);
if (!chan) {