diff options
author | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-26 19:41:10 +0000 |
---|---|---|
committer | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-26 19:41:10 +0000 |
commit | b1a3b38e6b088b3927ee4ff30f87d3956bfe02c5 (patch) | |
tree | a5dd1b53113879abe5adaebf6260c2e5cafc0f89 | |
parent | d0ca959736365e73c760d77ebae3a4a49106c3f6 (diff) |
mer feb 26 20:41:00 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@624 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | agi/eagi-sphinx-test.c | 4 | ||||
-rwxr-xr-x | agi/eagi-test.c | 3 | ||||
-rwxr-xr-x | channels/chan_zap.c | 7 | ||||
-rwxr-xr-x | cli.c | 4 |
4 files changed, 15 insertions, 3 deletions
diff --git a/agi/eagi-sphinx-test.c b/agi/eagi-sphinx-test.c index ae80654e8..ed0239435 100755 --- a/agi/eagi-sphinx-test.c +++ b/agi/eagi-sphinx-test.c @@ -1,7 +1,9 @@ /* * Extended AGI test application * - * Copyright (C) 2003, Digium, Inc. + * This code is released into public domain + * without any warranty of any kind. + * */ #include <stdio.h> diff --git a/agi/eagi-test.c b/agi/eagi-test.c index 7d1e95e92..aa498cb88 100755 --- a/agi/eagi-test.c +++ b/agi/eagi-test.c @@ -1,7 +1,8 @@ /* * Extended AGI test application * - * Copyright (C) 2003, Digium, Inc. + * This code is released into the public domain + * with no warranty of any kind */ #include <stdio.h> diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 23cc2fb5b..9c6d13458 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2375,6 +2375,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) break; case ZT_EVENT_ALARM: p->inalarm = 1; + ast_log(LOG_WARNING, "Detected alarm on channel %d\n", p->channel); /* fall through intentionally */ case ZT_EVENT_ONHOOK: if (p->radio) @@ -4075,9 +4076,11 @@ static int handle_init_event(struct zt_pvt *i, int event) break; case ZT_EVENT_NOALARM: i->inalarm = 0; + ast_log(LOG_NOTICE, "Alarm cleared on channel %d\n", i->channel); break; case ZT_EVENT_ALARM: i->inalarm = 1; + ast_log(LOG_WARNING, "Alarm detected on channel %d\n", i->channel); /* fall thru intentionally */ case ZT_EVENT_ONHOOK: /* Back on hook. Hang up. */ @@ -4106,6 +4109,10 @@ static int handle_init_event(struct zt_pvt *i, int event) res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, -1); zt_set_hook(i->subs[SUB_REAL].zfd, ZT_ONHOOK); break; + case SIG_PRI: + zt_disable_ec(i); + res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, -1); + break; default: ast_log(LOG_WARNING, "Don't know how to handle on hook with signalling %s on channel %d\n", sig2str(i->sig), i->channel); res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, -1); @@ -345,6 +345,7 @@ static int handle_showchan(int fd, int argc, char *argv[]) "1st File Descriptor: %d\n" " Frames in: %d\n" " Frames out: %d\n" + " Time to Hangup: %d\n" " -- PBX --\n" " Context: %s\n" " Extension: %s\n" @@ -356,7 +357,8 @@ static int handle_showchan(int fd, int argc, char *argv[]) c->name, c->type, (c->callerid ? c->callerid : "(N/A)"), (c->dnid ? c->dnid : "(N/A)" ), ast_state2str(c->_state), c->_state, c->rings, c->nativeformats, c->writeformat, c->readformat, - c->fds[0], c->fin, c->fout, c->context, c->exten, c->priority, ( c->appl ? c->appl : "(N/A)" ), + c->fds[0], c->fin, c->fout, c->whentohangup, + c->context, c->exten, c->priority, ( c->appl ? c->appl : "(N/A)" ), ( c-> data ? (strlen(c->data) ? c->data : "(Empty)") : "(None)"), c->stack, (c->blocking ? c->blockproc : "(Not Blocking)")); |