/l3/users/Andrey/nt-voip/linux12.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#cp /etc/asterisk/sip.conf /etc/asterisk/iax.conf
|
#vi /etc/asterisk/iax
![]() --- /tmp/l3-saved-8816.8855.31869 2010-10-28 15:46:18.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:53:22.000000000 +0300 @@ -1,15 +1,17 @@ [general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) -bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) -bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) +;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) +;bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls +trunk=yes +;authentication=md5 register=>mn:1234@192.168.111.1/bb register=>mn:1234@192.168.110.1/br register=>mn:1234@192.168.109.1/gm -[authentication] +;[authentication] [2201] type=friend @@ -21,7 +23,6 @@ mailbox=2201 callgroup=1 pickupgroup=1 - [2202] type=friend @@ -61,23 +62,23 @@ allow=alaw ;canreinvite=no -[bb] -type=friend -secret=1234 -host=dynamic -username=mn -context=group1 - -[br] -type=friend -secret=1234 -host=dynamic -username=mn - -[gm] -type=friend -secret=1234 -host=dynamic -username=mn - - +;:[bb] +;type=friend +;secret=1234 +;host=dynamic +;username=mn +;context=group1 +; +;[br] +;type=friend +;secret=1234 +;host=dynamic +;username=mn +; +;[gm] +;type=friend +;secret=1234 +;host=dynamic +;username=mn +; +; |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.32554.14420 2010-10-28 15:56:55.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:58:39.000000000 +0300 @@ -7,7 +7,7 @@ trunk=yes ;authentication=md5 -register=>mn:1234@192.168.111.1/bb +register=>IAX2/mn:1234@192.168.111.1/bb register=>mn:1234@192.168.110.1/br register=>mn:1234@192.168.109.1/gm |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... -- SIP/bb-08c73f68 answered SIP/2201-08c6fff0 -- Native bridging SIP/2201-08c6fff0 and SIP/bb-08c73f68 [Oct 28 15:54:35] NOTICE[8298]: chan_sip.c:7515 sip_reg_timeout: -- Registration for 'mn@192.168.110.1' timed out, trying again (Attempt #10) == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/2201-08c6fff0' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/2201-08c6fff0' [Oct 28 15:54:45] WARNING[8298]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service mn@192.168.109.1, giving up [Oct 28 15:54:45] WARNING[8298]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service mn@192.168.111.1, giving up linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#less /etc/asterisk/iax.conf.orig
|
#vi /etc/asterisk/iax.conf.orig
|
#;
[general] context=default ; Default context for incoming calls es) allowoverlap=no ; Disable overlap dialing support. (Default is yy 0)indport=5060 ; UDP Port to bind to (SIP standard port is 5066 ;bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls "/etc/asterisk/iax.conf" 84L, 1495C register=>mn:1234@192.168.109.1/gm mn:1234@192.168.111.1 ... type=friend secret=1234 ;canreinvite=no mailbox=2201 callgroup=1 [2202] "/etc/asterisk/iax.conf" 84L, 1481C written host=dynamic callerid="Andrey_2201" context=group1 ; group1 context for incoming calls |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... 2202 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2201 (Unspecified) (D) 255.255.255.255 0 Unmonitored 5 iax2 peers [0 online, 0 offline, 5 unmonitored] [Oct 28 16:00:45] NOTICE[8290]: chan_iax2.c:5535 register_verify: No registration for peer 'bb' (from 192.168.111.1) [Oct 28 16:00:45] NOTICE[8291]: chan_iax2.c:5535 register_verify: No registration for peer 'bb' (from 192.168.111.1) [Oct 28 16:00:47] NOTICE[8287]: chan_iax2.c:5535 register_verify: No registration for peer 'br' (from 192.168.110.1) [Oct 28 16:00:47] NOTICE[8288]: chan_iax2.c:5535 register_verify: No registration for peer 'br' (from 192.168.110.1) linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.9802.5879 2010-10-28 16:00:59.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 16:01:38.000000000 +0300 @@ -62,23 +62,23 @@ allow=alaw ;canreinvite=no -;:[bb] -;type=friend -;secret=1234 -;host=dynamic -;username=mn -;context=group1 -; -;[br] -;type=friend -;secret=1234 -;host=dynamic -;username=mn -; -;[gm] -;type=friend -;secret=1234 -;host=dynamic -;username=mn -; -; +[bb] +type=friend +secret=1234 +host=dynamic +username=mn +context=group1 + +[br] +type=friend +secret=1234 +host=dynamic +username=mn + +[gm] +type=friend +secret=1234 +host=dynamic +username=mn + + |
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.29045.11833 2010-10-28 16:02:10.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 16:04:31.000000000 +0300 @@ -5,9 +5,9 @@ ;bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls trunk=yes -;authentication=md5 register=>mn:1234@192.168.111.1 +register=>mn:1234@192.168.111.1 register=>mn:1234@192.168.110.1 register=>mn:1234@192.168.109.1 |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.20601.9553 2010-10-28 16:08:27.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 16:09:17.000000000 +0300 @@ -136,7 +136,7 @@ ;exten =>_21XX,1,Dial(SIP/bb/${EXTEN}) [international] -exten =>_XXXX,1,Dial(SIP/bb/${EXTEN}) +exten =>_XXXX,1,Dial(IAX2/bb/${EXTEN}) [group1] include => local |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... == Auto fallthrough, channel 'SIP/2201-08c68ce0' status is 'CONGESTION' linux12*CLI> linux12*CLI> linux12*CLI> linux12*CLI> linux12*CLI> linux12*CLI> linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.25027.17760 2010-10-28 16:12:23.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 16:13:27.000000000 +0300 @@ -127,13 +127,13 @@ exten => 0,1,Goto(menu,s,start) [national] -exten => _19XX,1,Macro(dial-with-callerid,SIP/gm/${EXTEN}) -exten => _20XX,1,Macro(dial-with-callerid,SIP/br/${EXTEN}) -exten => _21XX,1,Macro(dial-with-callerid,SIP/bb/${EXTEN}) - -;exten =>_19XX,1,Dial(SIP/gm/${EXTEN}) -;exten =>_20XX,1,Dial(SIP/br/${EXTEN}) -;exten =>_21XX,1,Dial(SIP/bb/${EXTEN}) +exten => _19XX,1,Macro(dial-with-callerid,IAX2/gm/${EXTEN}) +exten => _20XX,1,Macro(dial-with-callerid,IAX2/br/${EXTEN}) +exten => _21XX,1,Macro(dial-with-callerid,IAX2/bb/${EXTEN}) + +;exten =>_19XX,1,Dial(IAX2/gm/${EXTEN}) +;exten =>_20XX,1,Dial(IAX2/br/${EXTEN}) +;exten =>_21XX,1,Dial(IAX2/bb/${EXTEN}) [international] exten =>_XXXX,1,Dial(IAX2/bb/${EXTEN}) |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... -- Called bb/1601 -- Call accepted by 192.168.111.1 (format gsm) -- Format for call is gsm -- IAX2/bb-11809 is circuit-busy -- Hungup 'IAX2/bb-11809' == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/2201-08c68ce0' status is 'CONGESTION' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.11433.3033 2010-10-28 16:18:07.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 16:23:35.000000000 +0300 @@ -66,15 +66,15 @@ exten =>2260,1,MeetMe(100,M) exten =>2261,1,MeetMe(100,Mm) exten =>2262,1,Meetme(100,Mt) -exten => 2201,1,Dial(SIP/2201||tT) +exten => 2201,1,Dial(IAX2/2201||tT) exten => 2250,1,Answer exten => 2250,n,Festival(Festival is a general purpose text-to-speech system. As well as simply rendering text as speech it can be used in an interactive command mode for testing and developing various aspects of speech synthesis technology) ;exten => 2250,n,Wait(1) ;exten => 2250,n,Background(damo-thanks) ;exten => 2250,n,Hangup exten =>2281,1,Queue(queue1) -exten =>2280,1,Dial(SIP/2202&SIP/2203) -exten =>2280,1,Dial(SIP/2202&SIP/2203) +exten =>2280,1,Dial(IAX2/2202&IAX2/2203) +exten =>2280,1,Dial(IAX2/2202&IAX2/2203) exten =>_22XX,1,SetMusicOnhold(default) exten => _22XX,n,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... -- Called 2202 -- Called 2203 -- SIP/2202-08c6a938 is ringing -- SIP/2203-08c81b90 is ringing -- SIP/2202-08c6a938 answered SIP/2201-08c68ce0 -- Native bridging SIP/2201-08c68ce0 and SIP/2202-08c6a938 == Spawn extension (group1, 2280, 1) exited non-zero on 'SIP/2201-08c68ce0' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
|
#:
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... [Oct 28 16:27:01] WARNING[9448]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '2280' -- Executing [s@macro-answer-with-monitor:9] Hangup("SIP/2201-08c68ce0", "") in new stack == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/2201-08c68ce0' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/2201-08c68ce0' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/2201-08c68ce0", "") in new stack [Oct 28 16:27:01] NOTICE[9448]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-in.wav" "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-out.wav" "/var/spool/asterisk/monitor/voice-2280-2201-1288272421.wav" && rm -f "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/2201-08c68ce0", "lame /var/spool/asterisk/monitor/voice-2280-2201-1288272421.wav /var/spool/asterisk/monitor/voice-2280-2201-1288272421.mp3") in new stack linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
|
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... bb/mn 192.168.111.1 (D) 255.255.255.255 4569 OK (2 ms) 2205 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2204 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2203 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2202 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2201 (Unspecified) (D) 255.255.255.255 0 Unmonitored 8 iax2 peers [3 online, 0 offline, 5 unmonitored] linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... 0 agents online linux12*CLI> tra transcoder transfer linux12*CLI> trans transcoder transfer linux12*CLI> transcoder show No Zaptel transcoders found. linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
|
#vi outgoing_calls
![]() --- /dev/null 2010-10-28 13:49:32.502306587 +0300 +++ outgoing_calls 2010-10-28 17:14:04.000000000 +0300 @@ -0,0 +1,3 @@ +Channel:SIP/2201 +Extension:2296 +Context:local |
#vi /etc/asterisk/extensions.conf
|
#cp -p outgoing_calls /var/spool/asterisk/outgoing/
|
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... -- Saved useragent "3CXPhone 4.0.10858.0" for peer 2202 [Oct 28 17:36:13] NOTICE[8298]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2202 [Oct 28 17:36:54] NOTICE[8287]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'gm' is now UNREACHABLE! Time: 5 [Oct 28 17:40:54] NOTICE[8284]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'br' is now UNREACHABLE! Time: 20 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups Asterisk cleanly ending (0). |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#ssh root@192.168.108.1
root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:12:52 2010 from 192.168.112.2 l3-agent is already running: pid=2242; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#apt-get install gedit
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: docbook-xml gedit-common gnome-keyring gnome-mime-data gnome-mount iso-codes libart-2.0-2 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libeel2-2.20 libeel2-data libffi5 libgail-common libgail18 libgnome-keyring0 libgnome-menu2 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common ... Setting up libnautilus-extension1 (2.20.0-7) ... Setting up gnome-mount (0.7-2) ... Setting up libgnomevfs2-bin (1:2.22.0-5) ... Setting up libsmbclient (2:3.2.5-4lenny13) ... Setting up libgnomevfs2-extra (1:2.22.0-5) ... Setting up libpam-gnome-keyring (2.22.3-2) ... Setting up python-pyorbit (2.14.3-2) ... Setting up python-gnome2 (2.22.0-1) ... Setting up zenity (2.22.1-2) ... Processing triggers for python-support ... |
#grdit
![]() bash: grdit: command not found |
#gedit
|
#zt
![]() ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#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 |
#apt-get install pidgin
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-x libaa1 libavc1394-0 libcaca0 libcdio7 libcdparanoia0 libcucul0 libdv4 libflac8 libgadu3 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgtkspell0 libhesiod0 libiec61883-0 libmeanwhile1 libnspr4-0d libnss3-1d liboil0.3 libpurple-bin libpurple0 libraw1394-8 libsasl2-modules libshout3 libsoup2.4-1 libtag1c2a libtheora0 ... Setting up libsasl2-modules (2.1.22.dfsg1-23+lenny1) ... Setting up libpurple0 (2.4.3-4lenny7) ... Setting up python-dbus (0.82.4-2) ... Remove stale byte-compiled files... Setting up libpurple-bin (2.4.3-4lenny7) ... Setting up libvisual-0.4-plugins (0.4.0.dfsg.1-2) ... Setting up libxss1 (1:1.1.3-1) ... Setting up pidgin (2.4.3-4lenny7) ... Setting up oss-compat (0.0.4+nmu2) ... Processing triggers for python-support ... |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, 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 ========================================================================= ... bb/mn 192.168.111.1 (D) 255.255.255.255 4569 OK (5 ms) 2205 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2204 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2203 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2202 (Unspecified) (D) 255.255.255.255 0 Unmonitored 2201 (Unspecified) (D) 255.255.255.255 0 Unmonitored 8 iax2 peers [3 online, 0 offline, 5 unmonitored] linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#history | grep *123
499 history | grep *123 |
#history | grep "*123"
499 history | grep *123 500 history | grep "*123" |
#history | less
|
#history | grep "apt-get install"
72 apt-get install libsox-fmt-mp3 100 apt-get install lime 102 apt-get install lime 139 apt-get install samba 153 apt-get install screen 213 apt-get install festival 246 apt-get install mpg123 411 apt-get install zaptel-source 502 history | grep apt-get install 503 history | grep "apt-get install" |
#apt-get install ejabberd
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: erlang-base erlang-nox libsctp1 lksctp-tools Suggested packages: libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html The following NEW packages will be installed: ejabberd erlang-base erlang-nox libsctp1 lksctp-tools 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. ... Setting up libsctp1 (1.0.9.dfsg-1) ... Setting up erlang-base (1:12.b.3-dfsg-4) ... Searching for services which depend on erlang and should be started...none found. Setting up erlang-nox (1:12.b.3-dfsg-4) ... Setting up ejabberd (2.0.1-6+lenny2) ... adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the user you are currently creating. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Setting up lksctp-tools (1.0.9.dfsg-1) ... |
#dpkg-reconfigure ejabberd
â verification. â â â â The password for the admin account again for verification: â â â â*******________________________________________________________ â â â â <Ok>k> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Waiting for ejabberd to register admin user.. Admin user "admin@linux12.mn.unix.ny" is registered successfully. |
#dpkg-reconfigure ejabberd
Package configuration ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*******________________________________________________________ â â â â <Ok>k> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd.. Waiting for ejabberd to register admin user Admin user "admin@mn.unix.ny" is registered successfully. |
#host mn.unix.nt
mn.unix.nt has address 192.168.112.1 mn.unix.nt mail is handled by 10 linux12.unix.nt. |
#host tl.unix.nt
tl.unix.nt has address 192.168.108.1 tl.unix.nt mail is handled by 10 linux8.unix.nt. |
#netstat -tunp | cut -c 80-| sort -u
2724/ssh 3053/ssh 4674/sshd: andrey [ 5056/epmd 5737/beam PID/Program name |
#netstat -tunp | grep jabber
![]() |
#/etc/init.d/
![]() acpid ifupdown rcS asterisk ifupdown-clean reboot atd keymap.sh rmnologin bind9 killprocs rsync bootlogd lpd rsyslog bootmisc.sh lvm2 samba checkfs.sh module-init-tools screen-cleanup checkroot.sh mountall-bootclean.sh sendmail console-cyrillic mountall.sh sendsigs console-screen.sh mountdevsubfs.sh single ... dhcp3-server mountnfs.sh stop-bootlogd-single ejabberd mountoverflowtmp sudo exim4 mtab.sh udev festival networking udev-mtab glibc.sh nfs-common umountfs hal openbsd-inetd umountnfs.sh halt portmap umountroot hostname.sh procps urandom hwclockfirst.sh rc x11-common hwclock.sh rc.local zaptel |
#/etc/init.d/
![]() acpid ifupdown rcS asterisk ifupdown-clean reboot atd keymap.sh rmnologin bind9 killprocs rsync bootlogd lpd rsyslog bootmisc.sh lvm2 samba checkfs.sh module-init-tools screen-cleanup checkroot.sh mountall-bootclean.sh sendmail console-cyrillic mountall.sh sendsigs console-screen.sh mountdevsubfs.sh single ... dhcp3-server mountnfs.sh stop-bootlogd-single ejabberd mountoverflowtmp sudo exim4 mtab.sh udev festival networking udev-mtab glibc.sh nfs-common umountfs hal openbsd-inetd umountnfs.sh halt portmap umountroot hostname.sh procps urandom hwclockfirst.sh rc x11-common hwclock.sh rc.local zaptel |
#ls /etc/init.d/e
![]() ejabberd exim4 |
#ls /etc/init.d/e
![]() ejabberd exim4 |
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running. |
#apt-get install freetalk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: beep dict gawk guile-1.8 guile-1.8-libs libloudmouth1-0 recode urlview Suggested packages: dictd dict-server guile-1.8-doc mimedecode ncftp2 lftp ncftp The following NEW packages will be installed: beep dict freetalk gawk guile-1.8 guile-1.8-libs libloudmouth1-0 recode urlview ... Processing triggers for man-db ... Setting up gawk (1:3.1.5.dfsg-4.1) ... Setting up beep (1.2.2-22) ... Setting up recode (3.6-15) ... Setting up dict (1.10.11.dfsg-2) ... Setting up guile-1.8-libs (1.8.5+1-4.1) ... Setting up guile-1.8 (1.8.5+1-4.1) ... Setting up libloudmouth1-0 (1.4.2-2) ... Setting up freetalk (3.1-1) ... Setting up urlview (0.9-18) ... |
#freetalk
![]() Welcome to freetalk! Running for the first time? Performing some one-time initializations ... Loading dictionary [/usr/share/dict/words]... [98569] words Jabber ID: admin@mn.unix.nt Password: Connecting ... Could not connect. ~\/~ ~\/~ |
#freetalk
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Jabber ID: admin@mn.unix.nt Password: Connecting ... Could not connect. ~\/~ ~\/~ ~\/~ ~\/~ ? No such command or buddy. See /help ... display freetalk version information /who - /who display buddy list /whoami - /whoami display who is this /whomomlikes - /whomomlikes same as /whoami help - help [COMMAND] show help ~\/~ h |
#freetalk
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Jabber ID: andrey@mn.unix.nt Password: Connecting ... Could not connect. ~\/~ |
#man freetalk
|
#freetalk -j andrey@mn.unix.nt
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -j andrey@192.168.112.1
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#top
![]() top - 15:46:25 up 6:14, 5 users, load average: 0.15, 0.28, 0.16 Tasks: 118 total, 1 running, 117 sleeping, 0 stopped, 0 zombie Cpu(s): 0.8%us, 0.2%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 813632k used, 2286272k free, 73832k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 419388k cached 2751 root 19 -1 362m 14m 7268 S 1 0.5 2:53.77 Xorg 8166 root 20 0 2392 1132 876 R 1 0.0 0:00.02 top 1 root 20 0 2104 684 588 S 0 0.0 0:01.28 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd ... 5 root RT -5 0 0 0 S 0 0.0 0:00.08 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.10 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 10 root 15 -5 0 0 0 S 0 0.0 0:00.46 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.10 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.04 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify |
#freetalk -j admin@192.168.112.1
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -j test@192.168.112.1
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -j test@linux12
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running. |
#freetalk -j test@192.168.112.1
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -j andrey@192.168.112.1
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -j andrey@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words Password: Connecting ... Could not connect. ~\/~ |
#freetalk -r test2@192.168.112.1
![]() -------------------- Registration -------------------- Server: 192.168.112.1:5280 Could not connect. |
#namp 192.168.112.1
![]() bash: namp: command not found |
#nmap 192.168.112.1
Starting Nmap 4.62 ( http://nmap.org ) at 2010-10-29 14:53 EEST Interesting ports on linux12.unix.nt (192.168.112.1): Not shown: 1707 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 53/tcp open domain 110/tcp open pop3 111/tcp open rpcbind 139/tcp open netbios-ssn 445/tcp open microsoft-ds 2000/tcp open callbook Nmap done: 1 IP address (1 host up) scanned in 0.096 seconds |
#/etc/init.d/ejabberd stop
Stopping jabber server: ejabberd. |
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd. |
#dpkg -L freetalk
/. /usr /usr/bin /usr/bin/freetalk /usr/share /usr/share/info /usr/share/info/freetalk.info.gz /usr/share/freetalk /usr/share/freetalk/extensions /usr/share/freetalk/extensions/dict-buddy.scm ... /usr/share/locale /usr/share/locale/en@boldquot /usr/share/locale/en@boldquot/LC_MESSAGES /usr/share/locale/en@boldquot/LC_MESSAGES/freetalk.mo /usr/share/locale/en@quot /usr/share/locale/en@quot/LC_MESSAGES /usr/share/locale/en@quot/LC_MESSAGES/freetalk.mo /usr/share/man /usr/share/man/man1 /usr/share/man/man1/freetalk.1.gz |
#less /usr/share/doc/freetalk/examples/freetalk.scm
|
#ls /root/.freetalk/
downloads extensions freetalk.scm history |
#less /root/.freetalk/freetalk.scm
|
#vi /root/.freetalk/freetalk.scm
--- /tmp/l3-saved-4734.10072.16881 2010-10-29 15:04:06.000000000 +0300 +++ /root/.freetalk/freetalk.scm 2010-10-29 15:15:55.000000000 +0300 @@ -1,9 +1,9 @@ -; (ft-set-jid! "anand.avati@gmail.com") -; (ft-set-server! "talk.google.com") -; (ft-set-password! "p455w0rd") -; (ft-set-sslconn! #t) -; (ft-set-proxy! #f) -; (ft-set-port! 5223) + (ft-set-jid! "andrey@mn.unix.nt") + (ft-set-server! "linux12.mn.unix.nt") + (ft-set-password! "1qaz2wsx") + (ft-set-sslconn! #t) + (ft-set-proxy! #f) + (ft-set-port! 5223) ; (add-hook! ft-login-hook ; (lambda (status) ; (if status |
#freetalk -j andrey@linux12.mn.unix.nt
![]() sdsd ? Loading dictionary [/usr/share/dict/words]... [98569] words Connecting ... Failed to resolve server: No such file or directory ~\/~ ~\/~ ~\/~ sdsd No such command or buddy. See /help ~\/~ ? No such command or buddy. See /help ~\/~ ~\/~ |
#host
![]() Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time] [-R number] [-m flag] hostname [server] -a is equivalent to -v -t ANY -c specifies query class for non-IN data -C compares SOA records on authoritative nameservers -d is equivalent to -v -l lists all hosts in a domain, using AXFR -i IP6.INT reverse lookups -N changes the number of dots allowed before root lookup is done -r disables recursive processing -R specifies number of retries for UDP packets -s a SERVFAIL response should stop query -t specifies the query type -T enables TCP/IP mode -v enables verbose output -w specifies to wait forever for a reply -W specifies how long to wait for a reply -4 use IPv4 query transport only -6 use IPv6 query transport only -m set memory debugging flag (trace|record|usage) |
#host mn.unix.nt
mn.unix.nt has address 192.168.112.1 mn.unix.nt mail is handled by 10 linux12.unix.nt. |
#freetalk -j andrey@mn.unix.nt
![]() Loading dictionary [/usr/share/dict/words]... [98569] words Connecting ... Failed to resolve server: No such file or directory ~\/~ |
#less /etc/h
![]() |
#less /etc/host
![]() |
#less /etc/hostname
|
|