diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-26 19:41:10 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-26 19:41:10 +0000 |
commit | 4ac7db7746753b31807264c8697c3a7a0696068e (patch) | |
tree | a5dd1b53113879abe5adaebf6260c2e5cafc0f89 /channels/chan_zap.c | |
parent | c7ea3e9425c96fd72f73dadd72e07479a436e2b5 (diff) |
mer feb 26 20:41:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |