/l3/users/vadik/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 |
|
#apt-get install sendxmpp
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: mysql-common libmysqlclient16 Для их удаления используйте 'apt-get autoremove'. Будут установлены следующие дополнительные пакеты: libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl Предлагаемые пакеты: ... Распаковывается пакет sendxmpp (из файла .../sendxmpp_1.20-1_all.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libauthen-sasl-perl (2.1500-1) ... Настраивается пакет libdigest-sha1-perl (2.13-1) ... Настраивается пакет libnet-ssleay-perl (1.36-1) ... Настраивается пакет libio-socket-ssl-perl (1.33-1+squeeze1) ... Настраивается пакет libnet-libidn-perl (0.12.ds-1+b1) ... Настраивается пакет libxml-stream-perl (1.23-1) ... Настраивается пакет libnet-xmpp-perl (1.02-1) ... Настраивается пакет sendxmpp (1.20-1) ... |
#ejabberdctl register asterisk linux1.unix.nt password
![]() User asterisk@linux1.unix.nt successfully registered |
#ejabberdctl register asterisk linux1.unix.nt password
User asterisk@linux1.unix.nt successfully registered |
#vi /var/lib/asterisk/.sendxmpprc
![]() --- /dev/null 2011-10-20 09:15:03.806359126 +0300 +++ /var/lib/asterisk/.sendxmpprc 2011-10-20 17:21:41.000000000 +0300 @@ -0,0 +1 @@ +asterisk@linux1.unix.nt password |
#chown asterisk:asterisk !$
![]() chown asterisk:asterisk /var/lib/asterisk/.sendxmpprc |
#chown asterisk:asterisk !$
chown asterisk:asterisk /var/lib/asterisk/.sendxmpprc |
#ls -l !$
![]() ls -l /var/lib/asterisk/.sendxmpprc -rw-r--r-- 1 asterisk asterisk 33 Окт 20 17:21 /var/lib/asterisk/.sendxmpprc |
#ls -l !$
ls -l /var/lib/asterisk/.sendxmpprc -rw-r--r-- 1 asterisk asterisk 33 Окт 20 17:21 /var/lib/asterisk/.sendxmpprc |
#su - asterisk
![]() asterisk@linux1:~$ pws -su: pws: команда не найдена asterisk@linux1:~$ pwd /var/lib/asterisk asterisk@linux1:~$ echo test | sen sendxmpp sensible-editor sensors sensible-browser sensible-pager sensors-conf-convert asterisk@linux1:~$ echo test | sendxmpp user@linux1.unix.nt asterisk@linux1:~$ asterisk@linux1:~$ echo test | sendxmpp user@linux1.unix.nt asterisk@linux1:~$ asterisk@linux1:~$ asterisk@linux1:~$ logout |
#su - asterisk
asterisk@linux1:~$ pws -su: pws: команда не найдена asterisk@linux1:~$ pwd /var/lib/asterisk asterisk@linux1:~$ echo test | sen sendxmpp sensible-editor sensors sensible-browser sensible-pager sensors-conf-convert asterisk@linux1:~$ echo test | sendxmpp user@linux1.unix.nt asterisk@linux1:~$ asterisk@linux1:~$ echo test | sendxmpp user@linux1.unix.nt asterisk@linux1:~$ asterisk@linux1:~$ asterisk@linux1:~$ logout |
#vi /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-5894.5487.18929 2011-10-20 17:27:41.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-20 17:29:44.000000000 +0300 @@ -46,9 +46,15 @@ [macro-monitor] exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) +exten => s,n,System(echo Call from ${CALLERD(num)} | sendxmpp user@linux1.unix.nt) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "11" ]?dial) exten => s,n,SetMusicOnHold(class2) exten => s,n(dial),Dial(${ARG1},10,tTxX) +exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) +exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup) +exten => s,n,Dial(${ARG2},10,tT) +exten => s,n(hangup),Hangup + [local] exten => _110X,1,Answer |
#vi /etc/asterisk/sip.conf
![]() --- /tmp/l3-saved-5894.31811.6164 2011-10-20 17:36:57.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-20 17:37:13.000000000 +0300 @@ -45,8 +45,8 @@ callgroup=1 pickupgroup=1 qualify=yes -disallow=all -allow=gsm +;disallow=all +;allow=gsm [lv] type=friend |
#apt-cache search tftp
![]() ap-utils - Access Point SNMP Utils for Linux atftpd - advanced TFTP server erlang-inets - Erlang/OTP Internet clients and servers etherboot-qemu - Bootstrapping for various network adapters (qemu) fts-fai-ldap - LDAP FAI module for the TFTP/Fuse supplicant fts-ltsp-ldap - LDAP LTSP module for the TFTP/Fuse supplicant fts-opsi - OPSI module for fts the TFTP/Fuse supplicant fts - Modular TFTP/Fuse supplicant libghc6-curl-dev - GHC 6 libraries for the libcurl Haskell bindings libghc6-curl-doc - Documentation for the libcurl Haskell bindings ... netwox - networking utilities pxe - free PXE daemon tftp-hpa - HPA's tftp client tftpd-hpa - HPA's tftp server python-tftpy - A Pure-Python library for TFTP atftp - улучшенный TFTP-клиент dnsmasq - небольшой кеширующий DNS прокси и DHCP/TFTP сервер dnsmasq-base - небольшой кеширующий DNS прокси и DHCP/TFTP сервер etherboot - генерация микропрограмм для различных сетевых адаптеров tftpd - сервер простого протокола передачи файлов (TFTP) |
#apt-cache search tftp
ap-utils - Access Point SNMP Utils for Linux atftpd - advanced TFTP server erlang-inets - Erlang/OTP Internet clients and servers etherboot-qemu - Bootstrapping for various network adapters (qemu) fts-fai-ldap - LDAP FAI module for the TFTP/Fuse supplicant fts-ltsp-ldap - LDAP LTSP module for the TFTP/Fuse supplicant fts-opsi - OPSI module for fts the TFTP/Fuse supplicant fts - Modular TFTP/Fuse supplicant libghc6-curl-dev - GHC 6 libraries for the libcurl Haskell bindings libghc6-curl-doc - Documentation for the libcurl Haskell bindings ... netwox - networking utilities pxe - free PXE daemon tftp-hpa - HPA's tftp client tftpd-hpa - HPA's tftp server python-tftpy - A Pure-Python library for TFTP atftp - улучшенный TFTP-клиент dnsmasq - небольшой кеширующий DNS прокси и DHCP/TFTP сервер dnsmasq-base - небольшой кеширующий DNS прокси и DHCP/TFTP сервер etherboot - генерация микропрограмм для различных сетевых адаптеров tftpd - сервер простого протокола передачи файлов (TFTP) |
#apt-cache search tftp server
![]() atftpd - advanced TFTP server erlang-inets - Erlang/OTP Internet clients and servers fts - Modular TFTP/Fuse supplicant libnet-tftp-perl - Perl module for accessing TFTP servers libnet-tftpd-perl - Perl extension for Trivial File Transfer Protocol Server netwox-doc - documentation for netwox toolbox netwox - networking utilities pxe - free PXE daemon tftp-hpa - HPA's tftp client tftpd-hpa - HPA's tftp server python-tftpy - A Pure-Python library for TFTP |
#apt-cache search tftp server
atftpd - advanced TFTP server erlang-inets - Erlang/OTP Internet clients and servers fts - Modular TFTP/Fuse supplicant libnet-tftp-perl - Perl module for accessing TFTP servers libnet-tftpd-perl - Perl extension for Trivial File Transfer Protocol Server netwox-doc - documentation for netwox toolbox netwox - networking utilities pxe - free PXE daemon tftp-hpa - HPA's tftp client tftpd-hpa - HPA's tftp server python-tftpy - A Pure-Python library for TFTP |
#apt-get install tftpd-hpa
![]() │ /srv/tftp________________________________________________________________ │ │ │ │ <Ok> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ Выбор ранее не выбранного пакета tftpd-hpa. (Чтение базы данных ... на данный момент установлен 139771 файл и каталог.) Распаковывается пакет tftpd-hpa (из файла .../tftpd-hpa_5.0-18_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет tftpd-hpa (5.0-18) ... Starting HPA's tftpd: in.tftpd. |
#apt-get install tftpd-hpa
│ /srv/tftp________________________________________________________________ │ │ │ │ <Ok> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ Выбор ранее не выбранного пакета tftpd-hpa. (Чтение базы данных ... на данный момент установлен 139771 файл и каталог.) Распаковывается пакет tftpd-hpa (из файла .../tftpd-hpa_5.0-18_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет tftpd-hpa (5.0-18) ... Starting HPA's tftpd: in.tftpd. |
#vi SIP001380781ca2
![]() --- /dev/null 2011-10-20 09:15:03.806359126 +0300 +++ SIP001380781ca2 2011-10-20 17:51:07.000000000 +0300 @@ -0,0 +1,7 @@ +line1_name: "1100" +line1_authname: "1100" +line1_shortname: "Jimmy Carter" +line1_password: "1234" +line1_displayname: "" + +proxy1_address: 192.168.10.1 |
#arp -an
![]() ? (192.168.10.200) at f0:4d:a2:cc:4f:9b [ether] on eth0 ? (192.168.10.202) at 00:13:80:78:1c:a2 [ether] on eth0 ? (192.168.10.201) at 00:04:13:24:e5:7e [ether] on eth0 ? (192.168.10.254) at 00:16:35:b3:20:60 [ether] on eth0 |
#arp -an
? (192.168.10.200) at f0:4d:a2:cc:4f:9b [ether] on eth0 ? (192.168.10.202) at 00:13:80:78:1c:a2 [ether] on eth0 ? (192.168.10.201) at 00:04:13:24:e5:7e [ether] on eth0 ? (192.168.10.254) at 00:16:35:b3:20:60 [ether] on eth0 |
#vi /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-3235.19712.29136 2011-10-20 17:53:31.000000000 +0300 +++ /etc/dhcp/dhcpd.conf 2011-10-20 17:53:46.000000000 +0300 @@ -14,6 +14,7 @@ option domain-name-servers 10.0.35.1; option ntp-servers 192.53.103.104; option time-offset 7200; +option tftp-server-name "192.168.10.1"; default-lease-time 600; max-lease-time 7200; |
#netstat -anl
![]() Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:35156 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN ... unix 3 [ ] STREAM CONNECTED 4501 unix 3 [ ] STREAM CONNECTED 4491 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 4490 unix 2 [ ] DGRAM 4486 unix 3 [ ] STREAM CONNECTED 4379 unix 3 [ ] STREAM CONNECTED 4378 unix 2 [ ] DGRAM 4326 unix 2 [ ] DGRAM 4321 unix 3 [ ] DGRAM 2198 unix 3 [ ] DGRAM 2197 |
#netstat -anl
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:35156 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN ... unix 3 [ ] STREAM CONNECTED 4501 unix 3 [ ] STREAM CONNECTED 4491 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 4490 unix 2 [ ] DGRAM 4486 unix 3 [ ] STREAM CONNECTED 4379 unix 3 [ ] STREAM CONNECTED 4378 unix 2 [ ] DGRAM 4326 unix 2 [ ] DGRAM 4321 unix 3 [ ] DGRAM 2198 unix 3 [ ] DGRAM 2197 |
#netstat -anlpu
![]() Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0 0.0.0.0:4520 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:67 0.0.0.0:* 6045/dhcpd udp 0 0 0.0.0.0:19908 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:69 0.0.0.0:* 10573/in.tftpd udp 0 0 0.0.0.0:19909 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:17740 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:716 0.0.0.0:* 964/rpc.statd ... udp 0 0 192.168.10.1:137 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1456/nmbd udp 0 0 192.168.10.255:138 0.0.0.0:* 1456/nmbd udp 0 0 192.168.10.1:138 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:11916 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:11917 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:2727 0.0.0.0:* 1514/asterisk udp6 0 0 :::38622 :::* 1531/avahi-daemon: udp6 0 0 :::5353 :::* 1531/avahi-daemon: |
#netstat -anlpu
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0 0.0.0.0:4520 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:67 0.0.0.0:* 6045/dhcpd udp 0 0 0.0.0.0:19908 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:69 0.0.0.0:* 10573/in.tftpd udp 0 0 0.0.0.0:19909 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:17740 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:716 0.0.0.0:* 964/rpc.statd ... udp 0 0 192.168.10.1:137 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1456/nmbd udp 0 0 192.168.10.255:138 0.0.0.0:* 1456/nmbd udp 0 0 192.168.10.1:138 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1456/nmbd udp 0 0 0.0.0.0:11916 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:11917 0.0.0.0:* 1514/asterisk udp 0 0 0.0.0.0:2727 0.0.0.0:* 1514/asterisk udp6 0 0 :::38622 :::* 1531/avahi-daemon: udp6 0 0 :::5353 :::* 1531/avahi-daemon: |
#tail -f /var/log/messages
![]() Oct 20 17:45:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:45:45 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:45:45 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:48:36 linux1 kernel: [30734.790423] device eth0 left promiscuous mode Oct 20 17:50:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 17:50:19 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 17:50:20 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 17:50:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:50:45 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:50:45 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ... Oct 20 17:55:13 linux1 kernel: [31130.727123] device eth0 entered promiscuous mode Oct 20 17:55:14 linux1 kernel: [31131.481007] device eth0 left promiscuous mode Oct 20 17:55:20 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 17:55:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:55:23 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:55:23 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:55:23 linux1 kernel: [31140.818884] device eth0 entered promiscuous mode Oct 20 17:55:47 linux1 kernel: [31164.349094] device eth0 left promiscuous mode Oct 20 17:55:49 linux1 kernel: [31167.288884] device eth0 entered promiscuous mode ^C |
#tail -f /var/log/messages
![]() Oct 20 17:45:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:45:45 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:45:45 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:48:36 linux1 kernel: [30734.790423] device eth0 left promiscuous mode Oct 20 17:50:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 17:50:19 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 17:50:20 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 17:50:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:50:45 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:50:45 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ... Oct 20 17:55:13 linux1 kernel: [31130.727123] device eth0 entered promiscuous mode Oct 20 17:55:14 linux1 kernel: [31131.481007] device eth0 left promiscuous mode Oct 20 17:55:20 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 17:55:20 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 17:55:23 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:55:23 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 17:55:23 linux1 kernel: [31140.818884] device eth0 entered promiscuous mode Oct 20 17:55:47 linux1 kernel: [31164.349094] device eth0 left promiscuous mode Oct 20 17:55:49 linux1 kernel: [31167.288884] device eth0 entered promiscuous mode ^C |
#/etc/init.d/isc-dhcp-server restart
![]() Stopping ISC DHCP server: dhcpd. Starting ISC DHCP server: dhcpd . |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd. Starting ISC DHCP server: dhcpd . |
#tcpdump host 192.168.90.206
![]() tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tcpdump host 192.168.90.206
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tcpdump host 192.168.1.202
![]() tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tcpdump host 192.168.1.202
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tail -f /var/log/installer/
![]() cdebconf/ lsb-release status hardware-summary partman syslog |
#tail -f /var/log/installer/
![]() cdebconf/ lsb-release status hardware-summary partman syslog |
#cat SIP001380781CA2.cnf
![]() line1_name: "1100" line1_authname: "1100" line1_shortname: "Jimmy Carter" line1_password: "1234" line1_displayname: "" proxy1_address: 192.168.10.1 |
#cat SIP001380781CA2.cnf
line1_name: "1100" line1_authname: "1100" line1_shortname: "Jimmy Carter" line1_password: "1234" line1_displayname: "" proxy1_address: 192.168.10.1 |
#vi SIP001380781CA2.cnf
![]() --- /tmp/l3-saved-5894.25620.6799 2011-10-20 17:59:45.000000000 +0300 +++ SIP001380781CA2.cnf 2011-10-20 18:00:32.000000000 +0300 @@ -2,6 +2,12 @@ line1_authname: "1100" line1_shortname: "Jimmy Carter" line1_password: "1234" -line1_displayname: "" +line1_displayname: "Test" + +line2_name: "1110" +line2_authname: "1100" +line2_shortname: "Jimmy" +line2_password: "1234" +line2_displayname: "Test2" proxy1_address: 192.168.10.1 |
#~
![]() line1_password: "1234" line2_name: "1110" line2_authname: "1100" line2_shortname: "Jimmy" ~ ~ ~ ~ ~ ~ ~ ~ ~ "SIP001380781CA2.cnf" 13L, 271C записано |
#~
line1_password: "1234" line2_name: "1110" line2_authname: "1100" line2_shortname: "Jimmy" ~ ~ ~ ~ ~ ~ ~ ~ ~ "SIP001380781CA2.cnf" 13L, 271C записано |
#vi SIP001380781CA2.cnf
![]() --- /tmp/l3-saved-5894.18862.27319 2011-10-20 18:04:47.000000000 +0300 +++ SIP001380781CA2.cnf 2011-10-20 18:04:56.000000000 +0300 @@ -5,7 +5,7 @@ line1_displayname: "Test" line2_name: "1110" -line2_authname: "1100" +line2_authname: "1110" line2_shortname: "Jimmy" line2_password: "1234" line2_displayname: "Test2" |
#vi /etc/asterisk/sip.conf
![]() --- /tmp/l3-saved-5894.17649.25428 2011-10-20 18:05:02.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-20 18:05:41.000000000 +0300 @@ -48,6 +48,17 @@ ;disallow=all ;allow=gsm +[1110] +type=friend +secret=1234 +host=dynamic +;callerid="Kiev" +context=gr3 +mailbox=1110@default +callgroup=1 +pickupgroup=1 +qualify=yes + [lv] type=friend secret=1234 |
#vi /etc/asterisk/sip.conf
![]() --- /tmp/l3-saved-5894.26610.28771 2011-10-20 18:14:01.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-20 18:14:20.000000000 +0300 @@ -48,13 +48,13 @@ ;disallow=all ;allow=gsm -[1110] +[1109] type=friend secret=1234 host=dynamic ;callerid="Kiev" context=gr3 -mailbox=1110@default +mailbox=1109@default callgroup=1 pickupgroup=1 qualify=yes |
#vi SIP001380781CA2.cnf
![]() --- /tmp/l3-saved-5894.7558.21973 2011-10-20 18:14:49.000000000 +0300 +++ SIP001380781CA2.cnf 2011-10-20 18:15:04.000000000 +0300 @@ -4,8 +4,8 @@ line1_password: "1234" line1_displayname: "Test" -line2_name: "1110" -line2_authname: "1110" +line2_name: "1109" +line2_authname: "1109" line2_shortname: "Jimmy" line2_password: "1234" line2_displayname: "Test2" |
#vi SIP001380781CA2.cnf
![]() --- /tmp/l3-saved-5894.5024.28374 2011-10-20 18:15:09.000000000 +0300 +++ SIP001380781CA2.cnf 2011-10-20 18:15:39.000000000 +0300 @@ -6,7 +6,7 @@ line2_name: "1109" line2_authname: "1109" -line2_shortname: "Jimmy" +line2_shortname: "Line 1109" line2_password: "1234" line2_displayname: "Test2" |
#vi SIP001380781CA2.cnf
![]() --- /tmp/l3-saved-5894.16893.19527 2011-10-20 18:15:40.000000000 +0300 +++ SIP001380781CA2.cnf 2011-10-20 18:15:49.000000000 +0300 @@ -8,6 +8,6 @@ line2_authname: "1109" line2_shortname: "Line 1109" line2_password: "1234" -line2_displayname: "Test2" +line2_displayname: "Num 1109" proxy1_address: 192.168.10.1 |
#vi sip.conf
![]() --- /tmp/l3-saved-2558.25772.32533 2011-10-21 08:48:13.000000000 +0300 +++ sip.conf 2011-10-21 08:48:49.000000000 +0300 @@ -59,6 +59,17 @@ pickupgroup=1 qualify=yes +[1104] +type=friend +secret=1234 +host=dynamic +;callerid="Kiev" +context=gr3 +mailbox=1104@default +callgroup=1 +pickupgroup=1 +qualify=yes + [lv] type=friend secret=1234 |
#asterisk -rv
![]() Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) Verbosity was 0 and is now 1 linux1*CLI> sip reload ... Reloading SIP [Oct 21 09:00:02] WARNING[1749]: config.c:1163 process_text_line: No '=' (equal sign) in line 111 of /etc/asterisk/sip.conf [Oct 21 09:00:02] ERROR[1749]: chan_sip.c:24417 build_peer: srvlookup failed for host: , on peer world, removing peer [Oct 21 09:00:02] WARNING[1749]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'nt1' to '91.205.16.235' Reloading SIP [Oct 21 09:01:26] WARNING[1749]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'nt1' to '91.205.16.235' Reloading SIP linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) Verbosity was 0 and is now 1 linux1*CLI> sip reload ... Reloading SIP [Oct 21 09:00:02] WARNING[1749]: config.c:1163 process_text_line: No '=' (equal sign) in line 111 of /etc/asterisk/sip.conf [Oct 21 09:00:02] ERROR[1749]: chan_sip.c:24417 build_peer: srvlookup failed for host: , on peer world, removing peer [Oct 21 09:00:02] WARNING[1749]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'nt1' to '91.205.16.235' Reloading SIP [Oct 21 09:01:26] WARNING[1749]: chan_sip.c:18276 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'nt1' to '91.205.16.235' Reloading SIP linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2724.23943.31987 2011-10-21 08:57:52.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-21 08:59:55.000000000 +0300 @@ -13,6 +13,7 @@ register => kv:1234@192.168.20.1/lv register => kv:1234@192.168.50.1/tbs register => kv:1234@192.168.70.1/msk +register => nt1:1234aa@91.205.16.235/world [1101] type=friend @@ -92,3 +93,39 @@ host=dynamic username=kv context=gr3 + +[world] +type=friend +context=gr3 +regexten=115 +callerid="Networking Technologies" +host=91.205.16.235 +canreinvite=no +disallow=all +allow=speex +allow=gsm +allow=ulaw +allow=alaw +nat=yes +mailbox=105 +rld] +type=friend +context=gr3 +regexten=115 +callerid="Networking Technologies" +host= +canreinvite=no +disallow=all +allow=speex +allow=gsm +allow=ulaw +allow=alaw +nat=yes +mailbox=105 +secret=1234aa +trunk=yes + + +secret=1234aa +trunk=yes + |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) Verbosity is at least 1 linux1*CLI> sip reload ... 1101/1101 192.168.10.201 D 2048 Unmonitored 1102/1102 192.168.10.200 D 57592 Unmonitored 1104 (Unspecified) D 5060 UNKNOWN 1109/1109 192.168.10.202 D 5060 OK (244 ms) lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 8 sip peers [Monitored: 2 online, 1 offline Unmonitored: 5 online, 0 offline] linux1*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2724.27013.16016 2011-10-21 09:01:05.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-21 09:01:23.000000000 +0300 @@ -108,24 +108,6 @@ allow=alaw nat=yes mailbox=105 -rld] -type=friend -context=gr3 -regexten=115 -callerid="Networking Technologies" -host= -canreinvite=no -disallow=all -allow=speex -allow=gsm -allow=ulaw -allow=alaw -nat=yes -mailbox=105 -secret=1234aa -trunk=yes - - secret=1234aa trunk=yes |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2724.26656.9752 2011-10-21 09:02:33.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-21 09:04:08.000000000 +0300 @@ -75,6 +75,9 @@ exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN}) exten => _31XX,1,Dial(SIP/msk/${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/world/${EXTEN}) +exten => _995XXXXXXXXX,1,Dial(SIP/world/${EXTEN}) + [internal] exten => 9501,1,GotoIfTime(13:00-14:00,thu,*,*?obed) exten => 9501,n,Queue(queue1) |
#asterisk -rv
![]() Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) Verbosity is at least 4 linux1*CLI> sip set debug peer ... 1104 (Unspecified) D 5060 UNKNOWN 1109/1109 192.168.10.202 D 5060 OK (280 ms) lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored nt1 91.205.16.235 N 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 9 sip peers [Monitored: 2 online, 1 offline Unmonitored: 6 online, 0 offline] linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) Verbosity is at least 4 linux1*CLI> sip set debug peer ... 1104 (Unspecified) D 5060 UNKNOWN 1109/1109 192.168.10.202 D 5060 OK (280 ms) lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored nt1 91.205.16.235 N 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 9 sip peers [Monitored: 2 online, 1 offline Unmonitored: 6 online, 0 offline] linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1663) ... 1109/1109 192.168.10.202 D 5060 OK (99 ms) lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored world 91.205.16.235 N 5060 Unmonitored 9 sip peers [Monitored: 2 online, 1 offline Unmonitored: 6 online, 0 offline] linux1*CLI> linux1*CLI> linux1*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
line1_name: "1100" line1_authname: "1100" line1_shortname: "Jimmy Carter" line1_password: "1234" line1_displayname: "" proxy1_address: 192.168.10.1
Время первой команды журнала | 16:17:21 2011-10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 08:05:36 2011-10-21 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.36 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.23 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|