| /l3/users/2014-11-nt-voip/nt-voip/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
|
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
|
#apt-get install asterisk
Selecting previously unselected package libiksemel3. Unpacking libiksemel3 (from .../libiksemel3_1.2-4_amd64.deb) ... Selecting previously unselected package libpq5. Unpacking libpq5 (from .../libpq5_9.1.14-0+deb7u1_amd64.deb) ... Selecting previously unselected package libradiusclient-ng2. Unpacking libradiusclient-ng2 (from .../libradiusclient-ng2_0.5.6-1.1_amd64.deb) ... Selecting previously unselected package libresample1. Unpacking libresample1 (from .../libresample1_0.1.3-4_amd64.deb) ... Selecting previously unselected package libsaclm3. Unpacking libsaclm3 (from .../libsaclm3_1.1.4-4.1_amd64.deb) ... ... Setting up debhelper (9.20120909) ... Setting up libsys-hostname-long-perl (1.4-2) ... Setting up libmail-sendmail-perl (0.79.16-1) ... Setting up libsox2 (14.4.0-3) ... Setting up libsox-fmt-alsa (14.4.0-3) ... Setting up libsox-fmt-base (14.4.0-3) ... Setting up module-assistant (0.11.4) ... Setting up sox (14.4.0-3) ... Setting up vpb-driver-source (4.2.55-1) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... |
|
## /etc/asterisk содерижит все конфигурационные файлы Asterisk
|
|
##dpkg -L asterisk
|
|
## посмотрим что есть в asterisk
|
|
#dpkg -L asterisk-modules | less
|
|
#dpkg -L asterisk-modules | sort | less
|
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
|
#ps aux | grep [a]sterisk
asterisk 16473 2.3 0.1 767252 30404 ? Ssl 09:37 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 16474 0.0 0.0 13916 772 ? S 09:37 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 16473 |
|
#netstat -lnp | grep asterisk
tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 16473/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 16473/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 16473/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 16473/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 16473/asterisk unix 2 [ ACC ] STREAM LISTENING 55233 16473/asterisk /var/run/asterisk/asterisk.ctl |
|
## /var/run/asterisk/asterisk.ctl
|
|
#asterisk -r
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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian0 (pid = 16583) debian0*CLI> core show version Asterisk 1.8.13.1~dfsg1-3+deb7u3 built by pbuilder @ pungenday on a x86_64 running Linux on 2014-01-04 01:03:48 UTC ... profile settings switches sysinfo taskprocessors threads translation uptime version warranty debian0*CLI> core show application applications calls channel channels channeltype channeltypes codec codecs config file function functions help hint hints image license profile settings switches sysinfo taskprocessors threads translation uptime version warranty debian0*CLI> core show Disconnected from Asterisk server |
|
#asterisk -r
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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian0 (pid = 16583) debian0*CLI> core abort clear ping reload restart ... debian0*CLI> sip notify prune qualify reload set show unregister debian0*CLI> sip show channel channels channelstats domains history inuse mwi objects peer peers registry sched settings subscriptions tcp users user debian0*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] debian0*CLI> quit |
|
#mv /etc/asterisk/sip.conf{,.bak}
|
|
#echo /etc/asterisk/sip.conf{,.bak}
/etc/asterisk/sip.conf /etc/asterisk/sip.conf.bak |
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
|
#all ls -l '/etc/asterisk/sip.conf* /etc/asterisk/extensions.conf*'
1: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 1: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 2: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf 2: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 3: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf 3: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 4: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf 4: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 5: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf 5: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 6: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf 6: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 7: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 7: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf 8: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 8: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf |
|
#_ +1
+1 |
|
#_ +8
+8 |
|
#_ +7
+7 |
|
#_ +5 +4
+5 +4 |
|
#_ +3
+3 |
|
#цall ls -l '/etc/asterisk/sip.conf* /etc/asterisk/extensions.conf*'
1: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 1: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 2: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 2: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 3: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 3: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 4: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 4: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 5: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 5: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 6: ls: cannot access /etc/asterisk/sip.conf*: No such file or directory 6: ls: cannot access /etc/asterisk/extensions.conf*: No such file or directory 7: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 7: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak 8: -rw-r----- 1 asterisk asterisk 30823 Jan 4 2014 /etc/asterisk/extensions.conf.bak 8: -rw-r----- 1 asterisk asterisk 79163 Jan 4 2014 /etc/asterisk/sip.conf.bak |
|
#_ Создание первых |