/l3/users/goddan/nt-voip/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.11402.21620 2013-04-10 14:06:31.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 14:06:43.000000000 +0300 @@ -9,7 +9,7 @@ exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2}) exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2}) exten=>8300,1,Voicemailmain() -exten=8301,1,Meetme(1234) +exten=>8301,1,Meetme(1234) ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 14:06:54] WARNING[5918]: app_meetme.c:1097 build_conf: Unable to open pseudo device linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 14:06:54] WARNING[5918]: app_meetme.c:1097 build_conf: Unable to open pseudo device linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) [Apr 10 14:08:22] NOTICE[5956]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:08:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 ... kick lock mute unlock unmute list linux4*CLI> meetme kick lock mute unlock unmute list linux4*CLI> meetme kick 1234 1 all 2 linux4*CLI> meetme kick 1234 1 linux4*CLI> meetme kick 1234 2 [Apr 10 14:12:05] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 [Apr 10 14:12:16] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) [Apr 10 14:08:22] NOTICE[5956]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:08:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 ... kick lock mute unlock unmute list linux4*CLI> meetme kick lock mute unlock unmute list linux4*CLI> meetme kick 1234 1 all 2 linux4*CLI> meetme kick 1234 1 linux4*CLI> meetme kick 1234 2 [Apr 10 14:12:05] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 [Apr 10 14:12:16] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 linux4*CLI> quit |
#cd /usr/share/a
abiword-2.8/ alsa/ aptitude/ aclocal/ alsa-base/ apt-xapian-index/ acpi-support/ app-install/ aspell/ adduser/ application-registry/ asterisk/ aiksaurus/ applications/ avahi/ alacarte/ apps/ |
#cd /usr/share/a
abiword-2.8/ alsa/ aptitude/ aclocal/ alsa-base/ apt-xapian-index/ acpi-support/ app-install/ aspell/ adduser/ application-registry/ asterisk/ aiksaurus/ applications/ avahi/ alacarte/ apps/ |
#cd /usr/share/a
abiword-2.8/ alsa/ aptitude/ aclocal/ alsa-base/ apt-xapian-index/ acpi-support/ app-install/ aspell/ adduser/ application-registry/ asterisk/ aiksaurus/ applications/ avahi/ alacarte/ apps/ |
#cd /usr/share/a
abiword-2.8/ alsa/ aptitude/ aclocal/ alsa-base/ apt-xapian-index/ acpi-support/ app-install/ aspell/ adduser/ application-registry/ asterisk/ aiksaurus/ applications/ avahi/ alacarte/ apps/ |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-toreply.gsm spy-console.gsm vm-torerecord.gsm spy-dahdi.gsm vm-undeleted.gsm spy-h323.gsm vm-undelete.gsm spy-iax2.gsm vm-unknown-caller.gsm spy-iax.gsm vm-Urgent.gsm spy-jingle.gsm vm-whichbox.gsm spy-local.gsm vm-Work.gsm spy-mgcp.gsm vm-youhave.gsm spy-misdn.gsm |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-toreply.gsm spy-console.gsm vm-torerecord.gsm spy-dahdi.gsm vm-undeleted.gsm spy-h323.gsm vm-undelete.gsm spy-iax2.gsm vm-unknown-caller.gsm spy-iax.gsm vm-Urgent.gsm spy-jingle.gsm vm-whichbox.gsm spy-local.gsm vm-Work.gsm spy-mgcp.gsm vm-youhave.gsm spy-misdn.gsm |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-tooshort.gsm spy-console.gsm vm-toreply.gsm spy-dahdi.gsm vm-torerecord.gsm spy-h323.gsm vm-undeleted.gsm spy-iax2.gsm vm-undelete.gsm spy-iax.gsm vm-unknown-caller.gsm spy-jingle.gsm vm-Urgent.gsm spy-local.gsm vm-whichbox.gsm spy-mgcp.gsm vm-Work.gsm spy-misdn.gsm vm-youhave.gsm |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-tooshort.gsm spy-console.gsm vm-toreply.gsm spy-dahdi.gsm vm-torerecord.gsm spy-h323.gsm vm-undeleted.gsm spy-iax2.gsm vm-undelete.gsm spy-iax.gsm vm-unknown-caller.gsm spy-jingle.gsm vm-Urgent.gsm spy-local.gsm vm-whichbox.gsm spy-mgcp.gsm vm-Work.gsm spy-misdn.gsm vm-youhave.gsm |
#apt-get install mpg123
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmpg123-0 Suggested packages: libartsc0 libaudio2 The following NEW packages will be installed: libmpg123-0 mpg123 0 upgraded, 2 newly installed, 0 to remove and 31 not upgraded. ... Selecting previously deselected package libmpg123-0. (Reading database ... 122950 files and directories currently installed.) Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_i386.deb) ... Selecting previously deselected package mpg123. Unpacking mpg123 (from .../mpg123_1.12.1-3_i386.deb) ... Processing triggers for man-db ... Setting up libmpg123-0 (1.12.1-3) ... Setting up mpg123 (1.12.1-3) ... update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode. update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode. |
#apt-get install mpg123
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmpg123-0 Suggested packages: libartsc0 libaudio2 The following NEW packages will be installed: libmpg123-0 mpg123 0 upgraded, 2 newly installed, 0 to remove and 31 not upgraded. ... Selecting previously deselected package libmpg123-0. (Reading database ... 122950 files and directories currently installed.) Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_i386.deb) ... Selecting previously deselected package mpg123. Unpacking mpg123 (from .../mpg123_1.12.1-3_i386.deb) ... Processing triggers for man-db ... Setting up libmpg123-0 (1.12.1-3) ... Setting up mpg123 (1.12.1-3) ... update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode. update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode. |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-tooshort.gsm spy-console.gsm vm-toreply.gsm spy-dahdi.gsm vm-torerecord.gsm spy-h323.gsm vm-undeleted.gsm spy-iax2.gsm vm-undelete.gsm spy-iax.gsm vm-unknown-caller.gsm spy-jingle.gsm vm-Urgent.gsm spy-local.gsm vm-whichbox.gsm spy-mgcp.gsm vm-Work.gsm spy-misdn.gsm vm-youhave.gsm |
#ls
agent-alreadyon.gsm spy-mobile.gsm agent-incorrect.gsm spy-nbs.gsm agent-loggedoff.gsm spy-sip.gsm agent-loginok.gsm spy-skinny.gsm agent-newlocation.gsm spy-unistim.gsm agent-pass.gsm spy-usbradio.gsm agent-user.gsm spy-zap.gsm ascending-2tone.gsm ss-noservice.gsm auth-incorrect.gsm transfer.gsm auth-thankyou.gsm tt-allbusy.gsm ... spy-agent.gsm vm-tooshort.gsm spy-console.gsm vm-toreply.gsm spy-dahdi.gsm vm-torerecord.gsm spy-h323.gsm vm-undeleted.gsm spy-iax2.gsm vm-undelete.gsm spy-iax.gsm vm-unknown-caller.gsm spy-jingle.gsm vm-Urgent.gsm spy-local.gsm vm-whichbox.gsm spy-mgcp.gsm vm-Work.gsm spy-misdn.gsm vm-youhave.gsm |
#cd D
Desktop/ Documents/ Downloads/ |
#cd Downloads/
|
#cd D
Desktop/ Documents/ Downloads/ |
#cd Downloads/
|
#ls
1.mp3 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz asterisk-core-sounds-ru-gsm-current.tar.gz sounds |
#ls
1.mp3 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz asterisk-core-sounds-ru-gsm-current.tar.gz sounds |
#mpg123 -w 1.wav
You made some mistake in program usage... let me briefly remind you: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes usage: mpg123 [option(s)] [file(s) | URL(s) | -] supported options [defaults in brackets]: -v increase verbosity level -q quiet (don't print title) -t testmode (no output) -s write to stdout -w <filename> write Output as WAV file -k n skip first n frames [0] -n n decode only n frames [all] ... -2 downsample 1:2 (22 kHz) -4 downsample 1:4 (11 kHz) -d n play every n'th frame only -h n play every frame n times -0 decode channel 0 (left) only -1 decode channel 1 (right) only -m mix both channels (mono) -p p use HTTP proxy p [$HTTP_PROXY] -@ f read filenames/URLs from f -T get realtime priority -z shuffle play (with wildcards) -Z random play -u a HTTP authentication string -E f Equalizer, data from file -C enable control keys --no-gapless not skip junk/padding in mp3s -? this help --version print name + version See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information. |
#mpg123 -w 1.wav
You made some mistake in program usage... let me briefly remind you: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes usage: mpg123 [option(s)] [file(s) | URL(s) | -] supported options [defaults in brackets]: -v increase verbosity level -q quiet (don't print title) -t testmode (no output) -s write to stdout -w <filename> write Output as WAV file -k n skip first n frames [0] -n n decode only n frames [all] ... -2 downsample 1:2 (22 kHz) -4 downsample 1:4 (11 kHz) -d n play every n'th frame only -h n play every frame n times -0 decode channel 0 (left) only -1 decode channel 1 (right) only -m mix both channels (mono) -p p use HTTP proxy p [$HTTP_PROXY] -@ f read filenames/URLs from f -T get realtime priority -z shuffle play (with wildcards) -Z random play -u a HTTP authentication string -E f Equalizer, data from file -C enable control keys --no-gapless not skip junk/padding in mp3s -? this help --version print name + version See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information. |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#ls
1.mp3 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz sounds 1.wav asterisk-core-sounds-ru-gsm-current.tar.gz |
#ls
1.mp3 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz sounds 1.wav asterisk-core-sounds-ru-gsm-current.tar.gz |
#ls -l
total 9608 -rw-r--r-- 1 user user 5727770 Apr 10 14:30 1.mp3 -rw-r--r-- 1 root root 44 Apr 10 14:34 1.wav -rw-r--r-- 1 root root 2037556 Jan 8 23:39 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz -rw-r--r-- 1 user user 2037556 Apr 9 16:22 asterisk-core-sounds-ru-gsm-current.tar.gz drwxr-xr-x 5 user user 4096 Apr 9 17:02 sounds |
#ls -l
total 9608 -rw-r--r-- 1 user user 5727770 Apr 10 14:30 1.mp3 -rw-r--r-- 1 root root 44 Apr 10 14:34 1.wav -rw-r--r-- 1 root root 2037556 Jan 8 23:39 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz -rw-r--r-- 1 user user 2037556 Apr 9 16:22 asterisk-core-sounds-ru-gsm-current.tar.gz drwxr-xr-x 5 user user 4096 Apr 9 17:02 sounds |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes [readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory [mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22) |
#cp /home/user/
.bash_history .gconfd/ .nautilus/ .bash_logout .gnome2/ Pictures/ .bash_profile .gnome2_private/ .profile .bashrc .gnupg/ Public/ .config/ .gstreamer-0.10/ .recently-used.xbel .dbus/ .gtk-bookmarks .ssh/ Desktop/ .gvfs/ Templates/ .dmrc .ICEauthority .update-notifier/ Documents/ .l3rc Videos/ Downloads/ .lilalo/ .xsession-errors .esd_auth .local/ .xsession-errors.old .fontconfig/ .mozilla/ .gconf/ Music/ |
#cp /home/user/
.bash_history .gconfd/ .nautilus/ .bash_logout .gnome2/ Pictures/ .bash_profile .gnome2_private/ .profile .bashrc .gnupg/ Public/ .config/ .gstreamer-0.10/ .recently-used.xbel .dbus/ .gtk-bookmarks .ssh/ Desktop/ .gvfs/ Templates/ .dmrc .ICEauthority .update-notifier/ Documents/ .l3rc Videos/ Downloads/ .lilalo/ .xsession-errors .esd_auth .local/ .xsession-errors.old .fontconfig/ .mozilla/ .gconf/ Music/ |
#cp /home/user/Downloads/1.
1.mp3 1.wav |
#cp /home/user/Downloads/1.
1.mp3 1.wav |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> module reload a app_amd.so app_followme.so app_meetme.so app_minivm.so app_playback.so app_voicemail.so app_queue.so linux4*CLI> moh reload [Apr 10 14:39:35] NOTICE[6509]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> module reload a app_amd.so app_followme.so app_meetme.so app_minivm.so app_playback.so app_voicemail.so app_queue.so linux4*CLI> moh reload [Apr 10 14:39:35] NOTICE[6509]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 linux4*CLI> quit |
#nano /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-2245.7192.3610 2013-04-10 14:40:27.000000000 +0300 +++ /etc/asterisk/musiconhold.conf 2013-04-10 14:41:28.000000000 +0300 @@ -44,7 +44,7 @@ [default] mode=files -directory=moh +directory=/var/lib/asterisk/moh ; ;[native-random] ;mode=files |
#;
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> moh reload [Apr 10 14:42:08] NOTICE[6555]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:42:47] NOTICE[6557]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:46:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 [Apr 10 14:46:38] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 linux4*CLI> quit |
#;
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> moh reload [Apr 10 14:42:08] NOTICE[6555]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:42:47] NOTICE[6557]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 [Apr 10 14:46:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 [Apr 10 14:46:38] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403 linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.28099.9441 2013-04-10 14:52:22.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 14:52:50.000000000 +0300 @@ -35,7 +35,7 @@ exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) -exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtT) +exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtTm) ;exten=>_14XX,n,Voicemail(${EXTEN}@default) exten=>1405,1,Answer |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 14:53:10] NOTICE[6600]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 14:53:10] NOTICE[6600]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.23342.22818 2013-04-10 14:53:32.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 14:53:54.000000000 +0300 @@ -35,7 +35,7 @@ exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) -exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtTm) +exten=>_14XX,n,Dial(SIP/${EXTEN},30,wWtTm) ;exten=>_14XX,n,Voicemail(${EXTEN}@default) exten=>1405,1,Answer |
#nano /etc/asterisk/queue
|
#nano /etc/asterisk/queue
|
#nano /etc/asterisk/queues.conf
--- /tmp/l3-saved-2245.31133.23583 2013-04-10 15:02:15.000000000 +0300 +++ /etc/asterisk/queues.conf 2013-04-10 15:04:14.000000000 +0300 @@ -498,3 +498,8 @@ ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty + + +[quene1] +member=>SIP/4101 +member=>SIP/4102 |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.6724.1570 2013-04-10 15:07:30.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 15:08:00.000000000 +0300 @@ -40,7 +40,7 @@ exten=>1405,1,Answer exten=>1405,n,Dial(SIP/1401&SIP/1402) -exten=>4106,1,Quene(quene1) +exten=>1406,1,Quene(quene1) [national] |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.21999.28157 2013-04-10 15:08:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 15:09:38.000000000 +0300 @@ -40,7 +40,7 @@ exten=>1405,1,Answer exten=>1405,n,Dial(SIP/1401&SIP/1402) -exten=>1406,1,Quene(quene1) +exten=>1406,1,Queue(queue1) [national] |
#nano /etc/asterisk/queues.conf
--- /tmp/l3-saved-2245.20651.4539 2013-04-10 15:12:36.000000000 +0300 +++ /etc/asterisk/queues.conf 2013-04-10 15:12:48.000000000 +0300 @@ -501,5 +501,5 @@ [queue1] -member=>SIP/4101 -member=>SIP/4102 +member=>SIP/1401 +member=>SIP/1402 |
Время первой команды журнала | 13:06:28 2013- 4-10 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:14:14 2013- 4-10 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.13 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.49 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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