From 8bbcdbc2f3f16e2ef337ed9db0f34b9a1f2ba1b2 Mon Sep 17 00:00:00 2001 From: qwell Date: Thu, 17 Jan 2008 20:51:26 +0000 Subject: Add several busy detection related defines to menuselect. Allow better busy detect debugging (with BUSYDETECT_DEBUG). Remove very old BUSYDETECT and BUSY_DETECT_MARTIN defines. (closes issue #11107) Patches: busydetect_enhancement.patch uploaded by agx (license 298) busydetect-r94975.diff uploaded by sergee (license 138) Additional changes/cleanup by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98998 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_zap.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'channels/chan_zap.c') diff --git a/channels/chan_zap.c b/channels/chan_zap.c index bb7f038d8..08dc2aead 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -11829,6 +11829,19 @@ static char *zap_show_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_a ast_cli(a->fd, "Propagated Conference: %d\n", tmp->propconfno); ast_cli(a->fd, "Real in conference: %d\n", tmp->inconference); ast_cli(a->fd, "DSP: %s\n", tmp->dsp ? "yes" : "no"); + ast_cli(a->fd, "Busy Detection: %s\n", tmp->busydetect ? "yes" : "no"); + if (tmp->busydetect) { +#if defined(BUSYDETECT_TONEONLY) + ast_cli(a->fd, " Busy Detector Helper: BUSYDETECT_TONEONLY\n"); +#elif defined(BUSYDETECT_COMPARE_TONE_AND_SILENCE) + ast_cli(a->fd, " Busy Detector Helper: BUSYDETECT_COMPARE_TONE_AND_SILENCE\n"); +#endif +#ifdef BUSYDETECT_DEBUG + ast_cli(a->fd, " Busy Detector Debug: Enabled\n"); +#endif + ast_cli(a->fd, " Busy Count: %d\n", tmp->busycount); + ast_cli(a->fd, " Busy Pattern: %d,%d\n", tmp->busy_tonelength, tmp->busy_quietlength); + } ast_cli(a->fd, "TDD: %s\n", tmp->tdd ? "yes" : "no"); ast_cli(a->fd, "Relax DTMF: %s\n", tmp->dtmfrelax ? "yes" : "no"); ast_cli(a->fd, "Dialing/CallwaitCAS: %d/%d\n", tmp->dialing, tmp->callwaitcas); -- cgit v1.2.3