diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-12 09:03:50 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-12 09:03:50 +0000 |
commit | 0ac7711a22bfc433c394d87fa58d2c553ba52b9f (patch) | |
tree | e2cb193cae19783f6b766de76726004c70d07d97 /apps/app_zapras.c | |
parent | 12fd7ca3bbc8df1293b20a615646e35b5033cb72 (diff) |
Version 0.2.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@484 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_zapras.c')
-rwxr-xr-x | apps/app_zapras.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c index 82614f120..7d2b0b83a 100755 --- a/apps/app_zapras.c +++ b/apps/app_zapras.c @@ -125,7 +125,7 @@ static void run_ras(struct ast_channel *chan, char *args) res = wait4(pid, &status, WNOHANG, NULL); if (!res) { /* Check for hangup */ - if (chan->softhangup && !signalled) { + if (chan->_softhangup && !signalled) { ast_log(LOG_DEBUG, "Channel '%s' hungup. Signalling RAS at %d to die...\n", chan->name, pid); kill(pid, SIGTERM); signalled=1; @@ -182,7 +182,7 @@ static int zapras_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); strncpy(args, data, sizeof(args) - 1); /* Answer the channel if it's not up */ - if (chan->state != AST_STATE_UP) + if (chan->_state != AST_STATE_UP) ast_answer(chan); if (strcasecmp(chan->type, "Zap")) { /* If it's not a zap channel, we're done. Wait a couple of |