/l3/users/dmitry.z/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 |
|
#[1002]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) linux1*CLI> sip reload [Apr 23 15:57:37] WARNING[1548]: chan_sip.c:25298 reload_config: Section '1001' lacks type [Apr 23 15:57:37] WARNING[1548]: chan_sip.c:25298 reload_config: Section '1002' lacks type linux1*CLI> Disconnected from Asterisk server |
#[1001]
[Apr 23 12:39:14] NOTICE[5208] cdr.c: CDR simple logging enabled. [Apr 23 12:39:14] NOTICE[5208] loader.c: 198 modules will be loaded. [Apr 23 12:39:14] NOTICE[5208] res_odbc.c: res_odbc loaded. [Apr 23 12:39:14] NOTICE[5208] config.c: Registered Config Engine sqlite [Apr 23 12:39:14] NOTICE[5208] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener. [Apr 23 12:39:14] WARNING[5208] res_config_ldap.c: No directory user found, anonymous binding as default. [Apr 23 12:39:14] ERROR[5208] res_config_ldap.c: No directory URL or host found. [Apr 23 12:39:14] NOTICE[5208] res_config_ldap.c: Cannot load LDAP RealTime driver. [Apr 23 12:39:14] ERROR[5208] chan_vpb.cc: No Voicetronix cards detected [Apr 23 12:39:14] ERROR[5208] ais/clm.c: Could not initialize cluster membership service: Try Again ... [Apr 23 15:51:55] NOTICE[2898] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Apr 23 15:51:55] NOTICE[2898] chan_skinny.c: Configuring skinny from skinny.conf [Apr 23 15:51:55] WARNING[1548] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Apr 23 15:51:55] NOTICE[2898] app_meetme.c: A reload of the SLA configuration has been requested and will be completed when the system is idle. [Apr 23 15:51:55] ERROR[1548] chan_sip.c: Contents of sip.conf are invalid and cannot be parsed [Apr 23 15:51:55] NOTICE[2898] app_queue.c: queuerules.conf has not changed since it was last loaded. Not taking any action. [Apr 23 15:55:52] WARNING[1548] chan_sip.c: Section '1001' lacks type [Apr 23 15:55:52] WARNING[1548] chan_sip.c: Section '1002' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1001' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1002' lacks type |
#[1001]
[Apr 23 12:39:14] NOTICE[5208] cdr.c: CDR simple logging enabled. [Apr 23 12:39:14] NOTICE[5208] loader.c: 198 modules will be loaded. [Apr 23 12:39:14] NOTICE[5208] res_odbc.c: res_odbc loaded. [Apr 23 12:39:14] NOTICE[5208] config.c: Registered Config Engine sqlite [Apr 23 12:39:14] NOTICE[5208] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener. [Apr 23 12:39:14] WARNING[5208] res_config_ldap.c: No directory user found, anonymous binding as default. [Apr 23 12:39:14] ERROR[5208] res_config_ldap.c: No directory URL or host found. [Apr 23 12:39:14] NOTICE[5208] res_config_ldap.c: Cannot load LDAP RealTime driver. [Apr 23 12:39:14] ERROR[5208] chan_vpb.cc: No Voicetronix cards detected [Apr 23 12:39:14] ERROR[5208] ais/clm.c: Could not initialize cluster membership service: Try Again ... [Apr 23 15:51:55] WARNING[1548] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Apr 23 15:51:55] NOTICE[2898] app_meetme.c: A reload of the SLA configuration has been requested and will be completed when the system is idle. [Apr 23 15:51:55] ERROR[1548] chan_sip.c: Contents of sip.conf are invalid and cannot be parsed [Apr 23 15:51:55] NOTICE[2898] app_queue.c: queuerules.conf has not changed since it was last loaded. Not taking any action. [Apr 23 15:55:52] WARNING[1548] chan_sip.c: Section '1001' lacks type [Apr 23 15:55:52] WARNING[1548] chan_sip.c: Section '1002' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1001' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1002' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1001' lacks type [Apr 23 15:57:37] WARNING[1548] chan_sip.c: Section '1002' lacks type |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) linux1*CLI> sip reload linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] linux1*CLI> Disconnected from Asterisk server |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) linux1*CLI> sip reload linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] linux1*CLI> Disconnected from Asterisk server |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) linux1*CLI> sip reload linux1*CLI> sip show peers ... linux1*CLI> dialplan reload Dialplan reloaded. [Apr 23 17:03:29] NOTICE[1548]: chan_sip.c:20276 handle_request_invite: Call from '1002' to extension '1005' rejected because extension not found in context 'default'. [Apr 23 17:03:54] NOTICE[1548]: chan_sip.c:20276 handle_request_invite: Call from '1002' to extension '1005' rejected because extension not found in context 'default'. linux1*CLI> dialplan reload Dialplan reloaded. linux1*CLI> dialplan reload Dialplan reloaded. linux1*CLI> Disconnected from Asterisk server |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) linux1*CLI> sip reload linux1*CLI> sip show peers ... linux1*CLI> dialplan reload Dialplan reloaded. [Apr 23 17:03:29] NOTICE[1548]: chan_sip.c:20276 handle_request_invite: Call from '1002' to extension '1005' rejected because extension not found in context 'default'. [Apr 23 17:03:54] NOTICE[1548]: chan_sip.c:20276 handle_request_invite: Call from '1002' to extension '1005' rejected because extension not found in context 'default'. linux1*CLI> dialplan reload Dialplan reloaded. linux1*CLI> dialplan reload Dialplan reloaded. linux1*CLI> Disconnected from Asterisk server |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) ... == Using SIP RTP CoS mark 5 -- Executing [1005@default:1] Dial("SIP/1002-0000000a", "SIP/1005") in new stack == Using SIP RTP CoS mark 5 -- Called 1005 -- SIP/1005-0000000b is ringing == Spawn extension (default, 1005, 1) exited non-zero on 'SIP/1002-0000000a' -- Unregistered SIP '1002' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1506) ... == Using SIP RTP CoS mark 5 -- Executing [1005@default:1] Dial("SIP/1002-0000000a", "SIP/1005") in new stack == Using SIP RTP CoS mark 5 -- Called 1005 -- SIP/1005-0000000b is ringing == Spawn extension (default, 1005, 1) exited non-zero on 'SIP/1002-0000000a' -- Unregistered SIP '1002' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#exit
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1503) ... -- Registered extension context 'app_queue_gosub_virtual_context' (0x89158e8) in local table 0x8922208; registrar: app_queue -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x89158e8) -- Time to scan old dialplan and merge leftovers back into the new: 0.000500 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000053 sec -- Total time merge_contexts_delete: 0.000554 sec linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#chown asterisk:asterisk /var/tmp/asterisk
|
#chown asterisk:asterisk /var/tmp/asterisk
|
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#apt-get install libsox-ftm-base
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libsox-ftm-base |
#apt-get install libsox-fmt-base sox
Reading package lists... Done Building dependency tree Reading state information... Done libsox-fmt-base is already the newest version. sox is already the newest version. sox set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#sox -
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm wv wve xa PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#^C
|
#cd /var/tmp/asterisk/
|
#ls
wrong-number.gsm |
#apt-get install libsox-fmt-mp3 sox
Reading package lists... Done Building dependency tree Reading state information... Done sox is already the newest version. The following NEW packages will be installed: libsox-fmt-mp3 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 47.0 kB of archives. After this operation, 102 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 i386 14.3.1-1 [47.0 kB] Fetched 47.0 kB in 0s (0 B/s) Selecting previously deselected package libsox-fmt-mp3. (Reading database ... 129189 files and directories currently installed.) Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1_i386.deb) ... Setting up libsox-fmt-mp3 (14.3.1-1) ... |
#apt-get install libsox-fmt-mp3 sox
asterisk -rvvv Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found ... -- Executing [1002@gr-all:4] Dial("SIP/1005-00000034", "SIP/1002") in new stack == Using SIP RTP CoS mark 5 -- Called 1002 [Apr 24 14:23:03] NOTICE[3099]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1005-00000034 of format ulaw since our native format has changed to 0x8 (alaw) -- SIP/1002-00000035 is ringing -- SIP/1002-00000035 answered SIP/1005-00000034 == Spawn extension (gr-all, 1002, 4) exited non-zero on 'SIP/1005-00000034' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#cd /var/spool/asterisk/
|
#ls
dictate meetme monitor outgoing system tmp voicemail |
#cd monitor/
|
#ls
1005-1002-1335266583-in.wav 1005-1002-1335266583-out.wav |
#ls -l
total 616 -rw-rw---- 1 asterisk asterisk 310444 Apr 24 14:23 1005-1002-1335266583-in.wav -rw-rw---- 1 asterisk asterisk 309804 Apr 24 14:23 1005-1002-1335266583-out.wav |
#apt-get install samba
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0 Importing account for nobody...ok Importing account for mike...ok Importing account for usr1...ok Adding group `sambashare' (GID 118) ... Done. update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode. Starting Samba daemons: nmbd smbd. Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze7) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode. update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode. update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode. |
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-2188.2943.22826 2012-04-24 14:26:07.000000000 +0300 +++ /etc/samba/smb.conf 2012-04-24 14:27:16.000000000 +0300 @@ -302,12 +302,12 @@ ; write list = root, @lpadmin # A sample share for sharing your CD-ROM with others. -;[cdrom] -; comment = Samba server's CD-ROM -; read only = yes -; locking = no -; path = /cdrom -; guest ok = yes +[monitor] + comment = Asterisk Monitor Files + read only = yes + locking = no + path = /var/spool/asterisk/monitor + guest ok = yes # The next two parameters show how to auto-mount a CD-ROM when the # cdrom share is accesed. For this to work /etc/fstab must contain |
#; postexec = /bin/umount /cdrom
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 0 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ####### Authentication ####### # "security = user" is always a good idea. This will require a Unix account 98,1 24% # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ... # # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 # # The CD-ROM gets unmounted automatically after the connection to the # # If you don't want to use auto-mounting/unmounting make sure the CD # is mounted on /cdrom # ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom |
#ls -ld /var/spool/asterisk/
drwxr-xr-x 9 asterisk asterisk 4096 Apr 23 12:39 /var/spool/asterisk/ |
#smbpasswd -a user
New SMB password: Retype new SMB password: Failed to add entry for user user. |
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#apt-get install sendmail sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libmysqlclient16 mysql-common sendmail-base sendmail-cf sensible-mda Suggested packages: sendmail-doc rmail logcheck resolvconf sasl2-bin ... Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.61-0+squeeze1_i386.deb) ... Selecting previously deselected package sensible-mda. Unpacking sensible-mda (from .../sensible-mda_8.14.3-9.4_i386.deb) ... Selecting previously deselected package sendmail. Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ... Processing triggers for man-db ... Setting up mysql-common (5.1.61-0+squeeze1) ... Setting up libmysqlclient16 (5.1.61-0+squeeze1) ... Setting up sensible-mda (8.14.3-9.4) ... Setting up sendmail (8.14.3-9.4) ... |
#~
#Connect:172.30 RELAY #Connect:172.31 RELAY #Connect:192.168 RELAY #GreetPause:192.168 0 #ClientRate:192.168 0 #ClientConn:192.168 0 # Defaults GreetPause: 5000 ClientRate: 10 ClientConn: 10 ... Connect:192.168 TH on local net RELAY #SRV_Features:192.168.1 A # # Hosts with to allow relaying # # # Hosts that validly forward to me #GreetPause:<ip> 0 #ClientRate:<ip> 30 "/etc/mail/access" 139L, 4260C written |
#vim /etc/mail/access
|
#GreetPause: 5000
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!! dnl # Remove `, Addr=' clauses to receive from any interface dnl # If you want to support IPv6, switch the commented/uncommentd lines l dnl # dnlMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission=0.0.0.0')dnl FEATURE(`no_default_msa')dnl dnl # DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=0.0.0.0')dnn l dnl #AEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnn `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,aa dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnl define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl "/etc/mail/sendmail.mc" 109L, 4212C written |
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-2188.9178.31703 2012-04-24 15:04:15.000000000 +0300 +++ /etc/mail/sendmail.mc 2012-04-24 15:05:40.000000000 +0300 @@ -88,6 +88,11 @@ FEATURE(`conncontrol', `nodelay', `terminate')dnl FEATURE(`ratecontrol', `nodelay', `terminate')dnl dnl # +dnl # Masquerading options +FEATURE(`always_add_domain')dnl +MASQUERADE_AS(`linux1.unix.nt')dnl +FEATURE(`allmasquerade')dnl +FEATURE(`masquerade_envelope')dnl dnl # If you're on a dialup link, you should enable this - so sendmail dnl # will not bring up the link (it will queue mail for later) dnl define(`confCON_EXPENSIVE',`True')dnl @@ -102,8 +107,4 @@ MAILER(`local')dnl MAILER(`smtp')dnl -dnl # Masquerading options -FEATURE(`always_add_domain')dnl -MASQUERADE_AS(`linux1.unix.nt')dnl -FEATURE(`allmasquerade')dnl -FEATURE(`masquerade_envelope')dnl +# |
#vim /etc/mail/sendmail.mc
|
#MAILER(`smtp')dnl
Restarting Mail Transport Agent (MTA): sendmail. |
#telnet localhost 25
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 linux1.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9.4; Tue, 24 Apr 2012 15:09:19 +0300; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] quit 221 2.0.0 linux1.unix.nt closing connection Connection closed by foreign host. |
#apt-get install asterisk-promtp-de
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-promtp-de |
#apt-get install asterisk-prompt-de
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: asterisk-prompt-de 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,449 kB of archives. After this operation, 2,380 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main asterisk-prompt-de all 2.0-1 [1,449 kB] Fetched 1,449 kB in 0s (11.4 MB/s) Selecting previously deselected package asterisk-prompt-de. (Reading database ... 129653 files and directories currently installed.) Unpacking asterisk-prompt-de (from .../asterisk-prompt-de_2.0-1_all.deb) ... Setting up asterisk-prompt-de (2.0-1) ... |
#apt-get install asterisk-prompt-it
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: asterisk-prompt-it 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,889 kB of archives. After this operation, 3,039 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main asterisk-prompt-it all 20060510-3 [1,889 kB] Fetched 1,889 kB in 0s (11.5 MB/s) Selecting previously deselected package asterisk-prompt-it. (Reading database ... 130024 files and directories currently installed.) Unpacking asterisk-prompt-it (from .../asterisk-prompt-it_20060510-3_all.deb) ... Setting up asterisk-prompt-it (20060510-3) ... |
#apt-get install asterisk-prompt-fr
Reading package lists... Done Building dependency tree Reading state information... Done Package asterisk-prompt-fr is a virtual package provided by: asterisk-prompt-fr-proformatique 20070706-1.4-2 asterisk-prompt-fr-armelle 20070613-2 asterisk-core-sounds-fr-gsm 1.4.19-1 You should explicitly select one to install. E: Package 'asterisk-prompt-fr' has no installation candidate |
#apt-get install asterisk-prompt-fr-armelle
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: asterisk-prompt-fr-armelle 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,505 kB of archives. After this operation, 2,273 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main asterisk-prompt-fr-armelle all 20070613-2 [1,505 kB] Fetched 1,505 kB in 0s (11.4 MB/s) Selecting previously deselected package asterisk-prompt-fr-armelle. (Reading database ... 130449 files and directories currently installed.) Unpacking asterisk-prompt-fr-armelle (from .../asterisk-prompt-fr-armelle_20070613-2_all.deb) ... Setting up asterisk-prompt-fr-armelle (20070613-2) ... |
#wget http://www.ivrvoice.ru/downloader/download/file/11
--2012-04-24 16:30:40-- http://www.ivrvoice.ru/downloader/download/file/11 Resolving www.ivrvoice.ru... 195.242.215.39 Connecting to www.ivrvoice.ru|195.242.215.39|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://www.ivrvoice.ru/downloader/download/file/11/asterisk-sounds-ru-gsm-2010-04-28.tar.gz [following] --2012-04-24 16:30:41-- http://www.ivrvoice.ru/downloader/download/file/11/asterisk-sounds-ru-gsm-2010-04-28.tar.gz Reusing existing connection to www.ivrvoice.ru:80. HTTP request sent, awaiting response... 200 Ok Length: 2452777 (2.3M) [application/octet-stream] Saving to: “11” 100%[========================================>] 2,452,777 777K/s in 3.1s 2012-04-24 16:30:45 (777 KB/s) - “11” saved [2452777/2452777] |
#tar tfC 11 /usr/share/asterisk/sounds/
./ ./dictate.txt ./followme.txt ./phonetic.txt ./ru/ ./ru/vykljuchena.gsm ./ru/queue-holdtime.gsm ./ru/spy-sip.gsm ./ru/is-curntly-unavail.gsm ./ru/spy-agent.gsm ... ./ru/PM.gsm ./ru/vm-saveoper.gsm ./ru/dot.gsm ./ru/vm-incorrect-mailbox.gsm ./ru/spy-skinny.gsm ./ru.txt ./convert.py ./pbdirectory.txt ./digits.txt ./letters.txt |
#tar xtC 11 /usr/share/asterisk/sounds/
tar: You may not specify more than one `-Acdtrux' or `--test-label' option Try `tar --help' or `tar --usage' for more information. |
#tar xfC 11 /usr/share/asterisk/sounds/
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 2752) ... -- Executing [8300@gr-local:1] VoiceMailMain("SIP/1002-00000057", "00@default") in new stack -- <SIP/1002-00000057> Playing 'vm-login.gsm' (language 'de') -- <SIP/1002-00000057> Playing 'vm-password.gsm' (language 'de') -- <SIP/1002-00000057> Playing 'vm-youhave.gsm' (language 'de') [Apr 24 16:36:42] WARNING[5926]: file.c:650 ast_openstream_full: File digits/1F does not exist in any format [Apr 24 16:36:42] WARNING[5926]: file.c:953 ast_streamfile: Unable to open digits/1F (format 0x4 (ulaw)): No such file or directory == Spawn extension (gr-local, 8300, 1) exited non-zero on 'SIP/1002-00000057' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim table.txt
--- /dev/null 2012-04-24 10:05:48.502190040 +0300 +++ table.txt 2012-04-24 16:55:11.000000000 +0300 @@ -0,0 +1,4 @@ +1001 33338001 +1002 33338002 + + |
#vim table.txt
--- /tmp/l3-saved-2188.30329.8385 2012-04-24 16:55:12.000000000 +0300 +++ table.txt 2012-04-24 16:55:37.000000000 +0300 @@ -1,4 +1,7 @@ 1001 33338001 1002 33338002 - +1003 33338003 +1004 33338004 +1005 33338005 +1006 33338006 |
#cat table.txt | while read a b do
> asterisk -rx "database pub mobile $a $b" > done bash: syntax error near unexpected token `done' |
#asterisk reload
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 6174) ... =1 ^ [Apr 24 17:49:49] WARNING[6332]: ast_expr2.fl:449 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.tex. -- Executing [8401@gr-all:5] GotoIf("SIP/1005-00000014", "?start") in new stack -- Executing [8401@gr-all:6] Set("SIP/1005-00000014", "DB(mobile/1005)=2323") in new stack -- Auto fallthrough, channel 'SIP/1005-00000014' status is 'UNKNOWN' -- Unregistered SIP '1002' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#shutdown -n now
shutdown: can use "-n" for halt or reboot only. |
#shutdown
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#shutdown -t 0
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#shutdown -h 0
|
#sox -t 222.mp3 -r64000 -c1 -t gsm 222.gsm resample
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#sox -t 222.mp3 -r64000 -c1 -t gsm 222.gsm
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#sox -t 222.mp3 -r64000 -t gsm 222.gsm
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#ls
111.gsm 222.mp3 message01.gsm message03.gsm 111.mp3 message00.gsm message02.gsm wrong-number.gsm |
#sox -t 222.mp3 -r64000 -t gsm 222.gsm
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#sox -t 222.mp3 -t gsm 222.gsm
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#ls
111.gsm 222.gsm message00.gsm message02.gsm wrong-number.gsm 111.mp3 222.mp3 message01.gsm message03.gsm |
#cp 222.gsm /var/lib/as
aspell/ asterisk/ |
#cp 222.gsm /var/lib/asterisk/moh/222.gsm
|
#ls /var/lib/asterisk/moh/
222.gsm |
#sox -t mp3 222
sox: SoX v14.3.1 sox FAIL sox: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm w PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* ladspa loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa sile * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
#ls
111.gsm 222.gsm message00.gsm message02.gsm wrong-number.gsm 111.mp3 222.mp3 message01.gsm message03.gsm |
#sox -t mp3 222.mp3 -r64000 -t gsm --norm 222.gsm
sox WARN formats: gsm can't encode at 64000Hz; using 8000Hz |
#vim /etc/asterisk/musiconhold.conf
|
#[ ]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1444) Verbosity was 0 and is now 3 linux1*CLI> moh show files linux1*CLI> restart No such command 'restart' (type 'core show help restart' for other possible commands) linux1*CLI> moh show files linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cd moh
|
#ls
222.gsm |
#ls -l
total 876 -rw-r--r-- 1 root root 891726 Apr 25 10:07 222.gsm |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 2781) Verbosity was 0 and is now 3 linux1*CLI> moh reload linux1*CLI> moh show files linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ls
222.gsm |
#cd /var/tmp
|
#ls
asterisk |
#cd asterisk/
|
#;s
bash: syntax error near unexpected token `;' |
#ls
111.gsm 222.gsm message00.gsm message02.gsm wrong-number.gsm 111.mp3 222.mp3 message01.gsm message03.gsm |
#^V^C
|
#apt-get search dahdi
E: Invalid operation search |
#apt-chache search dahdi
bash: apt-chache: command not found |
#apt-cache search dahdi
dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-source - DAHDI telephony interface - source code for kernel driver dahdi - utilities for using the DAHDI kernel modules libopenr2-3 - MFC/R2 (telephony) call setup library libopenr2-bin - MFC/R2 (telephony) call setup library - test programs libopenr2-dev - MFC/R2 (telephony) call setup library - development headers yate-dahdi - Dahdi support for YATE |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (11.3 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 130788 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#uname -a
Linux linux1 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux |
#apt-get install linux-headers-2.6.32-5-
linux-headers-2.6.32-5-486 linux-headers-2.6.32-5-686 linux-headers-2.6.32-5-686-bigmem linux-headers-2.6.32-5-all linux-headers-2.6.32-5-all-i386 linux-headers-2.6.32-5-amd64 linux-headers-2.6.32-5-common linux-headers-2.6.32-5-common-openvz linux-headers-2.6.32-5-common-vserver linux-headers-2.6.32-5-common-xen linux-headers-2.6.32-5-openvz-686 linux-headers-2.6.32-5-vserver-686 linux-headers-2.6.32-5-vserver-686-bigmem linux-headers-2.6.32-5-xen-686 |
Время первой команды журнала | 14:57:34 2012- 4-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:43:35 2012- 4-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.03 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.56 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008