[Asterisk-Dev] Raw E1 capture

Paul Cadach paul at odt.east.telecom.kz
Wed Jul 27 19:30:39 MST 2005


Hello,

Michael Beukman wrote:
> I have configured zaptel.conf with this:
>
> span=1,0,0,ccs,hdb3
> clear=1-31
>
> Does this mean I've merged the timeslots into one stream?

You're correct.

> and how then do I go about capturing the "master" channel?

ztcfg -vv shows master channel like this:
    Zaptel Configuration
    ======================

    Dynamic span 1: driver eth, addr eth0/00:50:56:C0:00:01, channels 31, timing 0

    Channel map:

    Channel 01: Clear channel (Default) (Slaves: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29 30 31)

    31 channels configured.


Then you can just do
    cat /dev/zap/1 >spandata.raw
or
    dd if=/dev/zap/1 of=spandata.raw
to capture this stream. Also, you can open /dev/zap/<master channel> in your application to process receiving data "on
the fly".


WBR,
Paul.




More information about the asterisk-dev mailing list