---
name: "ztdiag"
section: "8"
platform: "linux"
package: "zaptel"
version: "1:1.4.11~dfsg-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ztdiag"
---

# ztdiag(8)

Dump Zaptel channel parameters

## NAME

ztdiag — Dump Zaptel channel parameters

## SYNOPSIS

**ztdiag** *channel*

## DESCRIPTION

**ztdiag** asks the kernel to dump parameters for Zaptel channel no. *channel* to the kernel logs. You will be able to see them using, e.g. [dmesg(1)](/dmesg/1.md).

## OPTIONS

*channel*

The number of the Zaptel channel whose parammeters should be dumped. May be any Zaptel channel (even if it is open).

## EXAMPLE

  \# /tmp/ztdiag 5\
   \# dmesg \| tail -n 15\
   Dump of Zaptel Channel 5 (XPP\_BRI\_TE/00/01/1,5,2):

  flags: 501 hex, writechunk: c5190948, readchunk: c5190954\
   rxgain: ccad2e80, txgain: ccad2e80, gainalloc: 0\
   span: c48a900c, sig: 80 hex, sigcap: 80 hex\
   inreadbuf: -1, outreadbuf: 0, inwritebuf: 0, outwritebuf: -1\
   blocksize: 160, numbufs: 4, txbufpolicy: 0, txbufpolicy: 0\
   txdisable: 0, rxdisable: 0, iomask: 0\
   curzone: c78e7000, tonezone: 0, curtone: 00000000, tonep: 0\
   digitmode: 0, txdialbuf: , dialing: 0, aftdialtimer: 0, cadpos. 0\
   confna: 0, confn: 0, confmode: 0, confmute: 0\
   ec: 00000000, echocancel: 0, deflaw: 0, xlaw: ccab5e80\
   echostate: 00, echotimer: 0, echolastupdate: 0\
   itimer: 0, otimer: 0, ringdebtimer: 0

## SEE ALSO

[ztcfg(8)](/ztcfg/8.md), [asterisk(8)](/asterisk/8.md), [dmesg(1)](/dmesg/1.md).

## AUTHOR

This manual page was written by Tzafrir Cohen \<tzafrir.cohen@xorcom.com\>  Permission is granted to copy, distribute and/or modify this document under  the terms of the GNU General Public License, Version 2 any   later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public  License can be found in /usr/share/common-licenses/GPL.
