/l3/users/2014-11-nt-voip/nt-voip/debian5/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2201-0000001e' status is 'CONGESTION' == Using SIP RTP CoS mark 5 -- Executing [2301@default:1] Dial("SIP/2201-00000020", "SIP/ny/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/ny/2301 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2201-00000020' status is 'CONGESTION' debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2201-0000001e' status is 'CONGESTION' == Using SIP RTP CoS mark 5 -- Executing [2301@default:1] Dial("SIP/2201-00000020", "SIP/ny/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/ny/2301 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2201-00000020' status is 'CONGESTION' debian5*CLI> exit Executing last minute cleanups |
#~
[xten =>]2201,3,Dial(SIP/2201) exten => 2202,1,NoOp(Starting call processing) ( ) exten => 2202,3,Diall(IP/2202) ) l( ) ( ${EXTEN}) exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) "/etc/asterisk/extensions.conf" 35L, 1160C exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; using ${EXTEN} ;exten => _22XX,1,NoOp(Starting call processing) ;exten => _22XX,n,NoOp(to extension {EXTEN}) ;exten => _22XX,n,Dial(SIP/${EXTEN}) ; using same ~ ~ ~ ~ ~ -- INSERT -- 8,1 All |
#~
[xten =>]2201,3,Dial(SIP/2201) exten => 2202,1,NoOp(Starting call processing) ( ) exten => 2202,3,Diall(IP/2202) ) l( ) ( ${EXTEN}) exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm) "/etc/asterisk/extensions.conf" 35L, 1160C exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; using ${EXTEN} ;exten => _22XX,1,NoOp(Starting call processing) ;exten => _22XX,n,NoOp(to extension {EXTEN}) ;exten => _22XX,n,Dial(SIP/${EXTEN}) ; using same ~ ~ ~ ~ ~ -- INSERT -- 8,1 All |
#asterisk -rx "sip reload"
|
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP RTP CoS mark 5 -- Executing [2201@gr1:1] NoOp("SIP/ny-00000048", "Starting call processing") in new stack -- Executing [2201@gr1:2] NoOp("SIP/ny-00000048", "to extension 2201") in new stack -- Executing [2201@gr1:3] Dial("SIP/ny-00000048", "SIP/2201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/2201 -- SIP/2201-00000049 is ringing == Spawn extension (gr1, 2201, 3) exited non-zero on 'SIP/ny-00000048' debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... == Using SIP RTP CoS mark 5 -- Executing [2201@gr1:1] NoOp("SIP/ny-00000048", "Starting call processing") in new stack -- Executing [2201@gr1:2] NoOp("SIP/ny-00000048", "to extension 2201") in new stack -- Executing [2201@gr1:3] Dial("SIP/ny-00000048", "SIP/2201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/2201 -- SIP/2201-00000049 is ringing == Spawn extension (gr1, 2201, 3) exited non-zero on 'SIP/ny-00000048' debian5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.13576.13406 2014-11-25 15:48:59.783722904 +0200 +++ /etc/asterisk/extensions.conf 2014-11-25 15:49:28.703723255 +0200 @@ -41,8 +41,6 @@ ; для транзитных звонков [gr4] -include => local -include => national include => international [internal] |
#less /etc/asterisk/extensions.conf
|
#asterisk -rvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Auto fallthrough, channel 'SIP/2201-00000060' status is 'CONGESTION' debian5*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2201/2201 192.168.50.100 D N 5060 Unmonitored 2202/2202 192.168.50.101 D N 61523 OK (103 ms) london/atlanta 192.168.80.1 D N 5060 OK (1 ms) ny/atlanta 192.168.40.1 D N 5060 OK (1 ms) 4 sip peers [Monitored: 3 online, 0 offline Unmonitored: 1 online, 0 offline] debian5*CLI> exit Executing last minute cleanups |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable /var/tmp/asterisk/record00.gsm: File Size: 5.05k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: unknown In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-] Clip:0 Done. |
#фзеapt-get install sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d libmysqlclient18 mysql-common xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: sendmail-base sendmail-cf Suggested packages: sendmail-doc logcheck resolvconf sasl2-bin ... make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() [....] Starting Mail Transport Agent (MTA): sendmail . ok (Reading database ... 132084 files and directories currently installed.) Removing exim4-base ... Processing triggers for man-db ... |
#фзеapt-get install sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d libmysqlclient18 mysql-common xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: sendmail-base sendmail-cf Suggested packages: sendmail-doc logcheck resolvconf sasl2-bin ... make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() [....] Starting Mail Transport Agent (MTA): sendmail . ok (Reading database ... 132084 files and directories currently installed.) Removing exim4-base ... Processing triggers for man-db ... |
#мÑvim /etc/mail/local-host-names
localhost debian5 debian5.unix.nt "/etc/mail/local-host-names" 3L, 34C |
#мÑvim /etc/mail/local-host-names
localhost debian5 debian5.unix.nt "/etc/mail/local-host-names" 3L, 34C |
#~
dnl # dnl # The greet_pause feature stops some automail bots - but check the dnl # provided access db for details on excluding localhosts... FEATURE(`greet_pause', `1000')dnl 1 seconds dnl # dnl # Delay_checks allows sender<->recipient checking FEATURE(`delay_checks', `friend', `n')dnl dnl # dnl # If we get too many bad recipients, slow things down... define(`confBAD_RCPT_THROTTLE',`3')dnl ... dnl # Be somewhat anal in what we allow dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl define(`confPRIVACY_FLAGS',dnl dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnlingg s')dnl dnl # 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, 4215C written |
#~
dnl # 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 dnl # FEATURE(`no_default_msa')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl ... dnl # Be somewhat anal in what we allow dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl define(`confPRIVACY_FLAGS',dnl dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnlingg s')dnl dnl # 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, 4215C written |
#grep 'dnl.*127.0.0.1' /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl |
#grep 'dnl.*127.0.0.1' /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl |
#.у/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail. |
#.у/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail. |
#vim /etc/hosts
--- /tmp/l3-saved-18457.31136.11251 2014-11-25 16:42:46.167761094 +0200 +++ /etc/hosts 2014-11-25 16:43:35.691761687 +0200 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -127.0.1.1 debian5 +127.0.1.1 debian5 debian5.unix.nt # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback |
#/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail. |
#/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail. |
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-18457.24955.30769 2014-11-26 09:58:43.787474613 +0200 +++ /etc/asterisk/voicemail.conf 2014-11-26 10:00:56.271476173 +0200 @@ -381,6 +381,11 @@ [default] +; ящик => пароль,имя юзера (для почты), адрес email +3302 => 1234,User 1 (3301),user@localhost + + + 1234 => 4242,Example Mailbox,root@localhost ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.21989.12013 2014-11-26 10:07:12.907480636 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 10:07:59.015481195 +0200 @@ -15,7 +15,7 @@ ; exten => 8001,1,VoiceMailMain() ; -exten => 8300,1,VoiceMailMain(33${EXTEN}:2@default) +exten => 8300,1,VoiceMailMain(22${EXTEN}:2@default) [local] |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.24601.6856 2014-11-26 10:08:10.735481323 +0200 +++ /etc/asterisk/sip.conf 2014-11-26 10:09:07.007481988 +0200 @@ -42,7 +42,7 @@ [2203](phone) context=gr3 -mailbox=2203@default +mailbox=2201@default ;[softphone](!) ;.... |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.29685.28043 2014-11-26 10:09:08.223482007 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 10:11:56.851483994 +0200 @@ -15,17 +15,15 @@ ; exten => 8001,1,VoiceMailMain() ; -exten => 8300,1,VoiceMailMain(22${EXTEN}:2@default) +exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default) [local] -exten => 2201,1,NoOp(Starting call processing) -exten => 2201,2,NoOp(to extension 2201) -exten => 2201,3,Dial(SIP/2201) - - +; иÑполÑзование пеÑеменной ${EXTEN} +;exten => _22XX,1,NoOp(Starting call processing) +;exten => _22XX,n,NoOp(to extension {EXTEN}) +;exten => _22XX,n,Dial(SIP/${EXTEN},5) ; еÑли ÑеÑез 5 Ñек не поднÑли ÑÑÑÐ±ÐºÑ Ñогда пеÑÐµÑ Ð¾Ð´Ð¸Ð¼ на голоÑовÑÑ Ð¿Ð¾ÑÑÑ -exten => _22XX,1,Dial(SIP/${EXTEN},5) ; вклÑÑиÑÑ Ð³Ð¾Ð»Ð¾Ð²ÑÑ Ð¿Ð¾ÑÑÑ, в ÑÑик ${EXTEN} exten => _22XX,n,VoiceMail(${EXTEN}@default) @@ -60,10 +58,6 @@ [gr4] include => international -; иÑполÑзование пеÑеменной ${EXTEN} -;exten => _22XX,1,NoOp(Starting call processing) -;exten => _22XX,n,NoOp(to extension {EXTEN}) -;exten => _22XX,n,Dial(SIP/${EXTEN}) ; иÑполÑзование same ;exten => _22XX,1,NoOp(Starting call processing) |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.29918.10913 2014-11-26 10:11:58.599484019 +0200 +++ /etc/asterisk/sip.conf 2014-11-26 10:12:38.827484493 +0200 @@ -41,7 +41,7 @@ context=gr1 [2203](phone) -context=gr3 +context=gr1 mailbox=2201@default ;[softphone](!) |
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-18457.13734.19030 2014-11-26 10:13:08.071484843 +0200 +++ /etc/asterisk/voicemail.conf 2014-11-26 10:13:43.391485257 +0200 @@ -382,7 +382,7 @@ [default] ; ящик => пароль,имя юзера (для почты), адрес email -3302 => 1234,User 1 (3301),user@localhost +2201 => 1234,User 1 (2201),user@localhost |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.2535.20883 2014-11-26 10:13:47.699485311 +0200 +++ /etc/asterisk/sip.conf 2014-11-26 10:17:58.019488273 +0200 @@ -36,14 +36,11 @@ [2201](phone) context=gr1 +mailbox=2201@default [2202](phone) context=gr1 -[2203](phone) -context=gr1 -mailbox=2201@default - ;[softphone](!) ;.... ;qualify=no |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Executing [2202@gr1:1] NoOp("SIP/2201-00000087", "Starting call processing") in new stack -- Executing [2202@gr1:2] NoOp("SIP/2201-00000087", "to extension 2202") in new stack -- Executing [2202@gr1:3] Dial("SIP/2201-00000087", "SIP/2202") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/2202 -- SIP/2202-00000088 is ringing -- SIP/2202-00000088 is ringing == Spawn extension (gr1, 2202, 3) exited non-zero on 'SIP/2201-00000087' debian5*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517) ... -- Executing [2202@gr1:1] NoOp("SIP/2201-00000087", "Starting call processing") in new stack -- Executing [2202@gr1:2] NoOp("SIP/2201-00000087", "to extension 2202") in new stack -- Executing [2202@gr1:3] Dial("SIP/2201-00000087", "SIP/2202") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/2202 -- SIP/2202-00000088 is ringing -- SIP/2202-00000088 is ringing == Spawn extension (gr1, 2202, 3) exited non-zero on 'SIP/2201-00000087' debian5*CLI> exit Executing last minute cleanups |
#w
10:47:45 up 2 days, 2:04, 6 users, load average: 0.28, 0.29, 0.28 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 Mon09 2days 7:40 0.28s gdm-session-worker [pam/gdm3] user pts/0 :0.0 Tue15 9.00s 0.07s 0.01s mutt root pts/4 :pts/11:S.0 Mon10 26:49 0.05s 0.04s script -f -c /bin/bash -q /root/.lilalo//7143311 user pts/7 :0.0 09:37 1:04m 0.37s 0.30s ssh user@192.168.12.254 root pts/8 192.168.12.254 10:20 26:49 0.08s 0.00s script -f -c bash -q /root/.lilalo//721017808124 root pts/3 192.168.12.254 10:47 1.00s 0.06s 0.00s script -f -c bash -q /root/.lilalo//124277113128 |
#su - user
---Mutt: (no mailbox) [Msgs:0]---(threads/date)----------------------------------------------------------(all)--- user@debian5:~$ user@debian5:~$ user@debian5:~$ exit logout |
#less /etc/asterisk/voicemail.conf
|
#less /var/log/mail.log
|
#apt-get install sensible-mda
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: sensible-mda 0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded. Need to get 218 kB of archives. After this operation, 226 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main sensible-mda amd64 8.14.4-4 [218 kB] Fetched 218 kB in 0s (11.3 MB/s) Selecting previously unselected package sensible-mda. (Reading database ... 132013 files and directories currently installed.) Unpacking sensible-mda (from .../sensible-mda_8.14.4-4_amd64.deb) ... Processing triggers for man-db ... Setting up sensible-mda (8.14.4-4) ... |
#less /var/log/mail.log
|
#su - user
5 N Nov 26 root 1 41:58 -*-Mutt: /var/mail/user [Msgs:5 New:2 30K]---(threads/date)----------------------------------------------(all)--- 5 kept, 0 deleted. user@debian5:~$ exit logout |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-25685.4033.340 2014-11-26 11:03:08.771520353 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 11:04:46.035521503 +0200 @@ -17,6 +17,9 @@ ; exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default) +; сразу переход на свой голосовой почтовый ящик +exten => _83XX,1,VoiceMail(22${EXTEN}:2@default) + [local] ; использование переменной ${EXTEN} |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-25685.29390.13433 2014-11-26 11:09:44.791525044 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 11:09:57.351525192 +0200 @@ -18,7 +18,7 @@ exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default) ; сразу переход на свой голосовой почтовый ящик -exten => _83XX,1,VoiceMail(22${EXTEN}:2@default) +exten => _83XX,1,VoiceMailMain(22${EXTEN}:2@default) [local] |
#apt-cache search asterisk | grep sound
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 ... asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722 asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722 asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm asterisk-moh-opsound-wav - asterisk extra sound files - English/wav asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts |
#apt-cache search asterisk | grep sound
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 ... asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722 asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722 asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm asterisk-moh-opsound-wav - asterisk extra sound files - English/wav asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts |
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: asterisk-core-sounds-fr-gsm The following NEW packages will be installed: asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm ... Fetched 2,174 kB in 0s (2,586 kB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 132026 files and directories currently installed.) Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-fr. Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: asterisk-core-sounds-fr-gsm The following NEW packages will be installed: asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm ... Fetched 2,174 kB in 0s (2,586 kB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 132026 files and directories currently installed.) Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-fr. Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#apt-get install asterisk-core-sounds-it
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-it |
#apt-get install asterisk-core-sounds-it
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-it |
#apt-cache search asterisk | grep promt
|
#apt-cache search asterisk | grep prompt
asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#apt-cache search asterisk | grep prompt
asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ru-gsm-current
--2014-11-26 12:03:26-- http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ru-gsm-current Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2050757 (2.0M) [application/x-gzip] Saving to: `asterisk-core-sounds-ru-gsm-current.1' 100%[==================================================>] 2,050,757 55.0K/s in 42s 2014-11-26 12:04:08 (48.1 KB/s) - `asterisk-core-sounds-ru-gsm-current.1' saved [2050757/2050757] |
Время первой команды журнала | 13:18:34 2014-11-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:03:17 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.82 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.60 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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