Журнал лабораторных работ

Содержание

Журнал

Суббота (11/28/09)

/dev/pts/1
17:44:28
#ztdiag
Usage: ztdiag <channel>
/dev/pts/0
17:44:37
#ztcfg

/dev/pts/1
17:44:37
#ztcfg

/dev/pts/0
17:44:41
#ztmonitor
Usage: ztmonitor <channel num> [-v[v]] [-m] [-o] [-p] [-f FILE | -r FILE1 -t FILE2] [-F FILE | -R FILE1 -T FILE2]
Options:
        -v: Visual mode.  Implies -m.
        -vv: Visual/Verbose mode.  Implies -m.
        -m: Separate rx/tx streams.
        -o: Output audio via OSS.  Note: Only 'normal' combined rx/tx streams are output via OSS.
        -p: Get a pre-echocanceled stream.
        -f FILE: Save combined rx/tx stream to FILE.  Cannot be used with -m.
        -r FILE: Save rx stream to FILE.  Implies -m.
        -t FILE: Save tx stream to FILE.  Implies -m.
...
Save a stream to a file
        ztmonitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
        ztmonitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
        ztmonitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files
        ztmonitor 1 -p -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
        ztmonitor 1 -m -p -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw
/dev/pts/1
17:44:41
#ztmonitor
Usage: ztmonitor <channel num> [-v[v]] [-m] [-o] [-p] [-f FILE | -r FILE1 -t FILE2] [-F FILE | -R FILE1 -T FILE2]
Options:
        -v: Visual mode.  Implies -m.
        -vv: Visual/Verbose mode.  Implies -m.
        -m: Separate rx/tx streams.
        -o: Output audio via OSS.  Note: Only 'normal' combined rx/tx streams are output via OSS.
        -p: Get a pre-echocanceled stream.
        -f FILE: Save combined rx/tx stream to FILE.  Cannot be used with -m.
        -r FILE: Save rx stream to FILE.  Implies -m.
        -t FILE: Save tx stream to FILE.  Implies -m.
...
Save a stream to a file
        ztmonitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
        ztmonitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
        ztmonitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files
        ztmonitor 1 -p -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
        ztmonitor 1 -m -p -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw
/dev/pts/0
17:44:44
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
/dev/pts/1
17:44:44
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
/dev/pts/0
17:44:44
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
agents        agi           application   applications  audio
autoanswer    channel       channels      channeltype   channeltypes
codec         codecs        config        dialplan      features
file          function      functions     globals       hints
image         indications   keys          manager       modules
parkedcalls   profile       queue         queues        switches
transcoder    translation   uptime        version       video
voicemail
debian4*CLI> quit
Executing last minute cleanups
/dev/pts/1
17:44:44
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
agents        agi           application   applications  audio
autoanswer    channel       channels      channeltype   channeltypes
codec         codecs        config        dialplan      features
file          function      functions     globals       hints
image         indications   keys          manager       modules
parkedcalls   profile       queue         queues        switches
transcoder    translation   uptime        version       video
voicemail
debian4*CLI> quit
Executing last minute cleanups
/dev/pts/0
17:48:28
#vi /etc/asterisk/zapata.conf
/dev/pts/1
17:48:28
#vi /etc/asterisk/zapata.conf
/dev/pts/0
17:48:43
#; Default language
"/etc/asterisk/extensions.conf" 22L, 442C
exten => _1XXX,n,Hangup
[demo1]
[demo1]
exten => _2XXX,1,Dial(SIP/2xxx/${EXTEN},60)
exten => _2XXX,n,Hangup
exten => 111,1,Dial(ZAP/111/${EXTEN},60)
         1 1,n,Hangup
exten => _1XXX,n,Hangup
exten => _9XX,1,Dial(SIP/2xxx/${EXTEN},60)
exten => _9XX,n,Hangup
exten => _4XXX,1,Dial(SIP/${EXTEN},60)
"/etc/asterisk/extensions.conf" 25L, 506C written
/dev/pts/1
17:48:43
#; Default language
"/etc/asterisk/extensions.conf" 22L, 442C
exten => _1XXX,n,Hangup
[demo1]
[demo1]
exten => _2XXX,1,Dial(SIP/2xxx/${EXTEN},60)
exten => _2XXX,n,Hangup
exten => 111,1,Dial(ZAP/111/${EXTEN},60)
         1 1,n,Hangup
exten => _1XXX,n,Hangup
exten => _9XX,1,Dial(SIP/2xxx/${EXTEN},60)
exten => _9XX,n,Hangup
exten => _4XXX,1,Dial(SIP/${EXTEN},60)
"/etc/asterisk/extensions.conf" 25L, 506C written
/dev/pts/0
17:50:05