Журнал лабораторных работ

Содержание

Журнал

Четверг (10/28/10)

/dev/pts/0
13:15:30
#modprobe za
zaphfc  zaptel  zatm    zaurus
13:15:30
#modprobe zaptel

13:17:27
#lsmod | grep za
zaptel                185060  0
crc_ccitt               2080  1 zaptel
13:19:20
#bootlogd
adsi.conf           asterisk.conf       codecs.conf         extensions.conf     gtalk.conf          logger.conf         musiconhold.conf    res_odbc.conf       sip.conf.orig       users.conf
adtranvofr.conf     cdr.conf            dnsmgr.conf         extensions.conf1    h323.conf           manager.conf        muted.conf          res_pgsql.conf      sip_notify.conf     voicemail.conf
agents.conf         cdr_custom.conf     dundi.conf          extensions.orig     http.conf           manager.d/          osp.conf            res_snmp.conf       skinny.conf         vpb.conf
alarmreceiver.conf  cdr_manager.conf    enum.conf           features.conf       iax.conf            meetme.conf         oss.conf            rpt.conf            sla.conf            watchdog.conf
alsa.conf           cdr_odbc.conf       esel.conf           festival.conf       iaxprov.conf        mgcp.conf           phone.conf          rtp.conf            smdi.conf           zapata.conf
amd.conf            cdr_pgsql.conf      extconfig.conf      followme.conf       indications.conf    misdn.conf          privacy.conf        say.conf            telcordia-1.adsi
asterisk.adsi       cdr_tds.conf        extensions.ael      func_odbc.conf      jabber.conf         modules.conf        queues.conf         sip.conf            udptl.conf
13:20:16
#cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.66GHz
stepping        : 1
cpu MHz         : 2667.144
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc up pebs bts pni monitor ds_cpl tm2 cid cx16 xtpr
bogomips        : 5340.55
clflush size    : 64
power management:
13:20:45
#cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.66GHz
stepping        : 1
cpu MHz         : 2667.144
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc up pebs bts pni monitor ds_cpl tm2 cid cx16 xtpr
bogomips        : 5340.55
clflush size    : 64
power management:
13:21:21
#modprobe ztdummy

13:22:06
#lsmod | grep za
zaptel                185060  1 ztdummy
crc_ccitt               2080  1 zaptel
13:22:56
#ls /dev
agpgart  cpu_dma_latency  hidraw0  loop1  MAKEDEV             ppp    ram12  ram6    sda       stderr  tty12  tty2   tty27  tty34  tty41  tty49  tty56  tty63  urandom         usbdev3.1_ep81  vcs3   vcsa3
block    disk             hpet     loop2  mem                 psaux  ram13  ram7    sda1      stdin   tty13  tty20  tty28  tty35  tty42  tty5   tty57  tty7   usbdev1.1_ep00  usbdev4.1_ep00  vcs4   vcsa4
bsg      dri              initctl  loop3  net                 ptmx   ram14  ram8    sda2      stdout  tty14  tty21  tty29  tty36  tty43  tty50  tty58  tty8   usbdev1.1_ep81  usbdev4.1_ep81  vcs5   vcsa5
bus      dvd              input    loop4  network_latency     pts    ram15  ram9    sda5      tty     tty15  tty22  tty3   tty37  tty44  tty51  tty59  tty9   usbdev2.1_ep00  usbdev5.1_ep00  vcs6   vcsa6
cdrom    fd               kmem     loop5  network_throughput  ram0   ram2   random  shm       tty0    tty16  tty23  tty30  tty38  tty45  tty52  tty6   ttyS0  usbdev2.1_ep81  usbdev5.1_ep81  vcs7   vcsa7
char     fd0              kmsg     loop6  null                ram1   ram3   root    snapshot  tty1    tty17  tty24  tty31  tty39  tty46  tty53  tty60  ttyS1  usbdev2.3_ep00  vcs             vcsa   xconsole
console  full             log      loop7  parport0            ram10  ram4   rtc     snd       tty10   tty18  tty25  tty32  tty4   tty47  tty54  tty61  ttyS2  usbdev2.3_ep81  vcs1            vcsa1  zap
core     hde              loop0    lp0    port                ram11  ram5   rtc0    sndstat   tty11   tty19  tty26  tty33  tty40  tty48  tty55  tty62  ttyS3  usbdev3.1_ep00  vcs2            vcsa2  zero
13:23:29
#ll
итого 444
-rw-r----- 1 asterisk asterisk   140 Дек 14  2009 adsi.conf
-rw-r----- 1 asterisk asterisk   840 Дек 14  2009 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  2967 Окт 28 12:01 agents.conf
-rw-r----- 1 asterisk asterisk  2227 Дек 14  2009 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  2675 Дек 14  2009 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Дек 14  2009 amd.conf
-rw-r----- 1 asterisk asterisk  3260 Дек 14  2009 asterisk.adsi
-rw-r----- 1 asterisk asterisk   247 Дек 14  2009 asterisk.conf
-rw-r----- 1 asterisk asterisk  7324 Дек 14  2009 cdr.conf
...
-rw-r----- 1 asterisk asterisk  4044 Дек 14  2009 skinny.conf
-rw-r----- 1 asterisk asterisk  6691 Дек 14  2009 sla.conf
-rw-r----- 1 asterisk asterisk  2665 Дек 14  2009 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Дек 14  2009 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   598 Дек 14  2009 udptl.conf
-rw-r----- 1 asterisk asterisk  1804 Дек 14  2009 users.conf
-rw-r----- 1 asterisk asterisk 11813 Окт 27 12:27 voicemail.conf
-rw-r----- 1 asterisk asterisk  2772 Дек 14  2009 vpb.conf
-rw-r----- 1 asterisk asterisk   393 Дек 14  2009 watchdog.conf
-rw-r----- 1 asterisk asterisk 24193 Дек 14  2009 zapata.conf
13:23:39
#vi extensions.conf
--- /tmp/l3-saved-2910.143.16352	2010-10-28 14:24:17.000000000 +0300
+++ extensions.conf	2010-10-28 14:24:57.000000000 +0300
@@ -91,7 +91,7 @@
 exten => s,n,Set(MONITOR_EXEC=/usr/local/bin/monitor_exec)
 exten => s,n,Monitor(wav,${FILENAME},m)
 ;exten => s,n,Dial(SIP/${ARG1},10,g)
-exten => s,n,Dial(SIP/${ARG1},10)
+exten => s,n,Dial(SIP/${ARG1},10,tT)
 ;exten => s,n,GotoIf($[${DIALSTATUS}=ANSWER]?answer)
 exten => s,n,GotoIf($[${DIALSTATUS}=BUSY]?busy:unavail)
 ;exten => s,n,GotoIf($[${DIALSTATUS} = ANSWER]?answer)
13:24:57
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Started music on hold, class 'default', on SIP/1202-0a0b4278
    -- <SIP/1201-0a0cbcd8> Playing 'pbx-transfer' (language 'ru')
    -- Stopped music on hold on SIP/1202-0a0b4278
  == Channel 'SIP/1202-0a0b4278' jumping out of macro 'answer-with-monitor'
    -- Executing [1102@grup2:1] Macro("SIP/1202-0a0b4278", "dial-with-callerid|SIP/nk/1102") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1202-0a0b4278", "CALLERID(name)="Igor Softphone (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1202-0a0b4278", "SIP/nk/1102") in new stack
    -- Called nk/1102
    -- SIP/nk-0a0c17b0 answered SIP/1202-0a0b4278
linux2*CLI>
прошло 10 минут
13:35:35
#vi features.conf
--- /tmp/l3-saved-2910.23936.8580	2010-10-28 14:35:40.000000000 +0300
+++ features.conf	2010-10-28 14:36:38.000000000 +0300
@@ -39,7 +39,7 @@
 ;blindxfer => #1		; Blind transfer  (default is #)
 ;disconnect => *0		; Disconnect  (default is *)
 ;automon => *1			; One Touch Record a.k.a. Touch Monitor
-;atxfer => *2			; Attended transfer
+atxfer => *			; Attended transfer
 ;parkcall => #72                ; Park call (one step parking)
 
 [applicationmap]
13:36:38
#vi features.conf
--- /tmp/l3-saved-2910.16053.2483	2010-10-28 14:36:39.000000000 +0300
+++ features.conf	2010-10-28 14:36:49.000000000 +0300
@@ -39,7 +39,7 @@
 ;blindxfer => #1		; Blind transfer  (default is #)
 ;disconnect => *0		; Disconnect  (default is *)
 ;automon => *1			; One Touch Record a.k.a. Touch Monitor
-atxfer => *			; Attended transfer
+atxfer => *0			; Attended transfer
 ;parkcall => #72                ; Park call (one step parking)
 
 [applicationmap]
13:36:49
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Park Call
Dynamic Feature           Default Current
---------------           ------- -------
(none)
Call parking
------------
Parking extension   :   700
Parking context     :   parkedcalls
Parked call extensions: 701-720
linux2*CLI>
13:38:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:39:21
#vi extensions.conf
13:41:16
# 61 [default]
"extensions.conf" 176L, 5253C
 32 exten => 1299,1,Answer
 33 exten => 1299,n,Wait(1)
 34 exten => 1299,n,Playback(demo-thanks)
 35 exten => 1299,n,Hangup
 36
 37 exten => 1295,1,Answer
 38 exten => 1295,n,SetMusicOnhold(default)
 39 exten => 1295,n,Queue(queine1,m)
 40 exten => 1290,1,Festival('privet Rivne')
...
    [menu]
 57 exten => s,1,Background(/usr/share/asterisk/ivr/1)
                (start),Background(/usr/share/asterisk/ivr/2)
 58 exten => s,n,WaitExten(5)
                 Background(/usr/share/asterisk/ivr/6)
 59 exten => s,n,WaitExten(5)
                 Background(/usr/share/asterisk/ivr/2)
 60 exten => s,n,WaitExten(5)
    exten => s,n,Background(/usr/share/asterisk/ivr/7) :Bye
"extensions.conf" 177L, 5283C записано
13:41:42
#vi meetme.conf
--- /tmp/l3-saved-2910.7134.7938	2010-10-28 14:42:03.000000000 +0300
+++ meetme.conf	2010-10-28 14:42:16.000000000 +0300
@@ -22,5 +22,5 @@
 ; in the conference and it goes away.  When it is created again, it will have
 ; the new pin number.
 ;
-;conf => 1234 
+conf => 100,1234
 ;conf => 2345,9938
13:42:16
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Spawn extension (grup2, 1294, 1) exited non-zero on 'SIP/1201-08216ed8'
    -- Started music on hold, class 'default', on SIP/1202-08200f98
    -- Executing [1294@grup2:1] MeetMe("SIP/1201-08211898", "100|M") in new stack
    -- <SIP/1201-08211898> Playing 'conf-getpin' (language 'ru')
    -- Stopped music on hold on SIP/1202-08200f98
  == Spawn extension (grup2, 1294, 1) exited non-zero on 'SIP/1201-08211898'
    -- Started music on hold, class 'default', on SIP/1202-08200f98
    -- Stopped music on hold on SIP/1202-08200f98
    -- Hungup 'Zap/pseudo-1849724802'
  == Spawn extension (grup1, 1294, 1) exited non-zero on 'SIP/1202-08200f98'
13:47:02
#vi meetme.conf
--- /tmp/l3-saved-2910.11318.29307	2010-10-28 14:47:03.000000000 +0300
+++ meetme.conf	2010-10-28 14:47:19.000000000 +0300
@@ -22,5 +22,5 @@
 ; in the conference and it goes away.  When it is created again, it will have
 ; the new pin number.
 ;
-conf => 100,1234
+conf => 100,1234,5555
 ;conf => 2345,9938
13:47:19
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == MGCP Listening on 0.0.0.0:2727
  == Using TOS bits 0
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
13:48:03
#vi meetme.conf
13:48:17
#~

13:49:06
#vi extensions.conf
--- /tmp/l3-saved-2910.27580.8314	2010-10-28 14:49:14.000000000 +0300
+++ extensions.conf	2010-10-28 14:50:00.000000000 +0300
@@ -38,7 +38,13 @@
 exten => 1295,n,SetMusicOnhold(default)
 exten => 1295,n,Queue(queine1,m)
 exten => 1290,1,Festival('privet Rivne')
+;exten => 1294,1,MeetMe(100,M)
+
 exten => 1294,1,MeetMe(100,M)
+exten => 1293,1,MeetMe(100,Mm)
+exten => 1292,1,MeetMe(100,Mt)
+
+
 
 
 ;exten => 1198,1,Record(/tmp/warning1:gsm,,3) ; Запись сообщения в формате gsm 3 секундыa
13:50:00
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
[Oct 28 15:35:20] NOTICE[13910]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
прошло 52 минуты
14:42:10
#vi iax
14:42:10
#vi iax
14:42:10
#mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.SAVE

14:43:37
#cp /etc/asterisk/sip.conf /etc/asterisk/iax.conf

14:43:49
#vi iax.conf
14:44:36
# 7 canreinvite=no ; Звонок через asterisk - очень нужен
 58 [kv]
 59 type=friend
 60 secret=1234
 61 host=dynamic
 62 username=rv
 63 context=grup3
 64
 65
 66 [nk]
 67 type=friend
...
~
~
~
~
~
~
~
~
 75 secret=1234
 76 host=dynamic
14:48:10
# 77 username=rv
  1 [general]
  2 context=default                 ; Default context for incoming calls
  3 allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
  4 bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
  5 bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
  6 srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
  7 canreinvite=no                  ; Звонок через asterisk - очень нужен
  8
  9
 10 ; Мы регимся на сервера другие
...
 41 pickupgroup=1
 42
 43 ; откл кодеки - вкл только определенные
 44 [1203]
 45 type=friend
 46 secret=1234
 47 host=dynamic
 48 callerid="Igor2, Softphone"
"iax.conf" 80L, 1442C записано
 49 context=group2
14:48:49
#vi sip.conf
--- /tmp/l3-saved-2910.4085.12999	2010-10-28 15:49:16.000000000 +0300
+++ sip.conf	2010-10-28 15:49:27.000000000 +0300
@@ -9,9 +9,9 @@
 
 ; Мы регимся на сервера другие
 	
-register => rv:1234@192.168.103.1/kv
-register => rv:1234@192.168.101.1/nk
-register => rv:1234@192.168.104.1/vn
+;register => rv:1234@192.168.103.1/kv
+;register => rv:1234@192.168.101.1/nk
+;register => rv:1234@192.168.104.1/vn
 
 
 			
14:49:27
#vi iax.conf
--- /tmp/l3-saved-2910.25347.29414	2010-10-28 15:49:28.000000000 +0300
+++ iax.conf	2010-10-28 15:49:42.000000000 +0300
@@ -1,7 +1,7 @@
 [general]
 context=default			; Default context for incoming calls
 allowoverlap=no			; Disable overlap dialing support. (Default is yes)
-bindport=5060			; UDP Port to bind to (SIP standard port is 5060)
+;bindport=5060			; UDP Port to bind to (SIP standard port is 5060)
 bindaddr=0.0.0.0		; IP address to bind to (0.0.0.0 binds to all)
 srvlookup=yes			; Enable DNS SRV lookups on outbound calls
 canreinvite=no			; Звонок через asterisk - очень нужен
14:50:50
#vi iax.conf
14:52:15
# 61 ; If omitted, will fallback to english
"iax.conf" 80L, 1443C
 32
 33 [1202]
 34 type=friend
 35 secret=1234
 36 host=dynamic
 37 callerid="Igor Softphone"
 38 context=grup1
 39 language=ru
    ;[authentication]
...
 52 allow=ulaw
 53 allow=alaw
 54
 55
 56 ; Создаем клиентов
 57
 58 ;[kv]
 59 ;type=friend
 60 ;secret=1234
"iax.conf" 80L, 1444C записано
14:52:40
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
jb         no         provision  prune      reload     set        show       test       trunk
linux2*CLI> iax2 show pe
peers  peer
linux2*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
1203             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
1202             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
1201             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
3 iax2 peers [0 online, 0 offline, 3 unmonitored]
linux2*CLI>
14:53:59
#vi iax.conf
--- /tmp/l3-saved-2910.9689.20098	2010-10-28 15:54:00.000000000 +0300
+++ iax.conf	2010-10-28 15:54:54.000000000 +0300
@@ -18,63 +18,63 @@
   
 ;[authentication]
 
-[1201]
+;[1201]
+;type=friend
+;secret=1234
+;host=dynamic
+;callerid="Igor"
+;context=grup2
+;language=ru
+;callgroup=1 ; К кайкой pikup групе относится
+;pickupgroup=1,2
+;pickupgroup=1 ; Кого имеет право перехватівать
+
+;
+;[1202]
+;type=friend
+;secret=1234
+;host=dynamic
+;callerid="Igor Softphone"
+;context=grup1	
+;language=ru
+;callgroup=1
+;pickupgroup=1
+
+; откл кодеки - вкл только определенные
+;[1203]
+;type=friend
+;secret=1234
+;host=dynamic
+;callerid="Igor2, Softphone"
+;context=group2
+;disallow=all
+;allow=gsm
+;allow=ulaw
+;allow=alaw
+
+
+; Создаем клиентов
+
+[kv]
 type=friend
 secret=1234
 host=dynamic
-callerid="Igor"
-context=grup2
-language=ru
-callgroup=1 ; К кайкой pikup групе относится
-;pickupgroup=1,2
-pickupgroup=1 ; Кого имеет право перехватівать
+username=rv
+context=grup3
 
 
-[1202]
+[nk]
 type=friend
 secret=1234
 host=dynamic
-callerid="Igor Softphone"
-context=grup1	
-language=ru
-callgroup=1
-pickupgroup=1
+username=rv
+context=grup3
 
-; откл кодеки - вкл только определенные
-[1203]
+[vn]
 type=friend
 secret=1234
 host=dynamic
-callerid="Igor2, Softphone"
-context=group2
-disallow=all
-allow=gsm
-allow=ulaw
-allow=alaw
-
-
-; Создаем клиентов
-
-;[kv]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=rv
-;context=grup3
-;
-;
-;[nk]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=rv
-;context=grup3
-;
-;[vn]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=rv
-;context=grup3
+username=rv
+context=grup3
 ; End
 
14:54:54
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
14:55:45
#vi iax.conf
--- /tmp/l3-saved-2910.28345.13263	2010-10-28 15:55:48.000000000 +0300
+++ iax.conf	2010-10-28 15:56:12.000000000 +0300
@@ -5,7 +5,7 @@
 bindaddr=0.0.0.0		; IP address to bind to (0.0.0.0 binds to all)
 srvlookup=yes			; Enable DNS SRV lookups on outbound calls
 canreinvite=no			; Звонок через asterisk - очень нужен
-
+trunk=yes
 
 ; Мы регимся на сервера другие
 	
14:56:12
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Name/Username    Host                 Mask             Port          Status
vn/rv            (Unspecified)   (D)  255.255.255.255  0             Unmonitored
nk/rv            (Unspecified)   (D)  255.255.255.255  0             Unmonitored
kv/rv            (Unspecified)   (D)  255.255.255.255  0             Unmonitored
3 iax2 peers [0 online, 0 offline, 3 unmonitored]
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI> iax2
14:57:14
#vi iax.conf
14:57:35
# 61 [general]mic
"iax.conf" 80L, 1461C
 32 ;
 33 ;[1202]
 34 ;type=friend
 35 ;secret=1234
 36 ;host=dynamiIAX2/rv:1234@192.168.103.1
                IAX2/rv:1234@192.168.101.1
 37 ;callerid="IIAX2/rv:1234@192.168.104.1
 38 ;context=grup1
 39 ;language=ru
...
 52 ;allow=ulaw
 53 ;allow=alaw
 54
 55
 56 ; Создаем клиентов
 57
 58 [kv]
 59 type=friend
 60 secret=1234
"iax.conf" 80L, 1467C записано
14:58:07
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 15:58:14] NOTICE[13896]: chan_iax2.c:8308 socket_process: Registration of 'IAX2/rv' rejected: 'Registration Refused' from: '192.168.104.1'
[Oct 28 15:58:14] NOTICE[13897]: chan_iax2.c:5535 register_verify: No registration for peer 'IAX2/nk' (from 192.168.101.1)
[Oct 28 15:58:14] NOTICE[13898]: chan_iax2.c:5535 register_verify: No registration for peer 'IAX2/nk' (from 192.168.101.1)
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
[Oct 28 15:58:23] NOTICE[13899]: chan_iax2.c:5535 register_verify: No registration for peer 'IAX2/nk' (from 192.168.101.1)
[Oct 28 15:58:23] NOTICE[13890]: chan_iax2.c:5535 register_verify: No registration for peer 'IAX2/nk' (from 192.168.101.1)
linux2*CLI>
14:58:35
#vi iax.conf
--- /tmp/l3-saved-2910.3243.21285	2010-10-28 15:58:38.000000000 +0300
+++ iax.conf	2010-10-28 15:59:10.000000000 +0300
@@ -9,49 +9,13 @@
 
 ; Мы регимся на сервера другие
 	
-register => IAX2/rv:1234@192.168.103.1
-register => IAX2/rv:1234@192.168.101.1
-register => IAX2/rv:1234@192.168.104.1
+register => rv:1234@192.168.103.1
+register => rv:1234@192.168.101.1
+register => rv:1234@192.168.104.1
 
 
 			
   
-;[authentication]
-
-;[1201]
-;type=friend
-;secret=1234
-;host=dynamic
-;callerid="Igor"
-;context=grup2
-;language=ru
-;callgroup=1 ; К кайкой pikup групе относится
-;pickupgroup=1,2
-;pickupgroup=1 ; Кого имеет право перехватівать
-
-;
-;[1202]
-;type=friend
-;secret=1234
-;host=dynamic
-;callerid="Igor Softphone"
-;context=grup1	
-;language=ru
-;callgroup=1
-;pickupgroup=1
-
-; откл кодеки - вкл только определенные
-;[1203]
-;type=friend
-;secret=1234
-;host=dynamic
-;callerid="Igor2, Softphone"
-;context=group2
-;disallow=all
-;allow=gsm
-;allow=ulaw
-;allow=alaw
-
 
 ; Создаем клиентов
 
14:59:10
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
nk/rv            (Unspecified)   (D)  255.255.255.255  0             Unmonitored
kv/rv            (Unspecified)   (D)  255.255.255.255  0             Unmonitored
3 iax2 peers [0 online, 0 offline, 3 unmonitored]
    -- Executing [1101@grup2:1] Macro("SIP/1201-081faf90", "dial-with-callerid|SIP/nk/1101") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-081faf90", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-081faf90", "SIP/nk/1101") in new stack
[Oct 28 15:59:35] WARNING[14849]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/1201-081faf90' status is 'CHANUNAVAIL'
linux2*CLI>
14:59:53
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-081faf90", "SIP/nk/1101") in new stack
[Oct 28 16:00:15] WARNING[14880]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/1201-081faf90' status is 'CHANUNAVAIL'
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
15:00:53
#vi extensions.conf
--- /tmp/l3-saved-2910.4323.22967	2010-10-28 16:01:13.000000000 +0300
+++ extensions.conf	2010-10-28 16:02:24.000000000 +0300
@@ -151,17 +151,17 @@
 
 [national]
 ; Николаев
-exten => _11XX,1,Macro(dial-with-callerid,SIP/nk/${EXTEN})
+exten => _11XX,1,Macro(dial-with-callerid,IAX2/nk/${EXTEN})
 ;exten => _11XX,1,Dial(SIP/nk/${EXTEN})
 ;exten => _13XX,1,Dial(SIP/kv/${EXTEN}) 
 ;exten => _14XX,1,Dial(SIP/vn/${EXTEN})
-exten => _13XX,1,Macro(dial-with-callerid,SIP/kv/${EXTEN})
-exten => _14XX,1,Macro(dial-with-callerid,SIP/vn/${EXTEN})
+exten => _13XX,1,Macro(dial-with-callerid,IAX2/kv/${EXTEN})
+exten => _14XX,1,Macro(dial-with-callerid,IAX2/vn/${EXTEN})
 
 
 [international]
-exten => _1XXX,1,Dial(SIP/kv/${EXTEN})
-exten => _2XXX,1,Dial(SIP/kv/${EXTEN})
+exten => _1XXX,1,Dial(IAX2/kv/${EXTEN})
+exten => _2XXX,1,Dial(IAX2/kv/${EXTEN})
 
 ;; Пользователя
 [grup2]
15:02:24
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Registered IAX2 to '192.168.104.1', who sees us as 192.168.102.1:4569 with no messages waiting
    -- Executing [1101@grup2:1] Macro("SIP/1201-08207110", "dial-with-callerid|IAX2/nk/1101") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08207110", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08207110", "IAX2/nk/1101") in new stack
[Oct 28 16:02:35] WARNING[14961]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3 - No route to destination)
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/1201-08207110' status is 'CHANUNAVAIL'
[Oct 28 16:02:37] NOTICE[13892]: chan_iax2.c:5535 register_verify: No registration for peer 'rv' (from 192.168.101.1)
[Oct 28 16:02:37] NOTICE[13893]: chan_iax2.c:5535 register_verify: No registration for peer 'rv' (from 192.168.101.1)
linux2*CLI>
15:02:53
#vi extensions.conf
15:03:38
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [1101@grup2:1] Macro("SIP/1201-08207110", "dial-with-callerid|IAX2/nk/1101") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1201-08207110", "CALLERID(name)="Igor (Rivne)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1201-08207110", "IAX2/nk/1101") in new stack
    -- Called nk/1101
    -- Call accepted by 192.168.101.1 (format gsm)
    -- Format for call is gsm
    -- IAX2/nk-2388 answered SIP/1201-08207110
    -- Hungup 'IAX2/nk-2388'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08207110' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1201-08207110'
15:05:49
#vi iax.conf
--- /tmp/l3-saved-2910.1956.20259	2010-10-28 16:05:54.000000000 +0300
+++ iax.conf	2010-10-28 16:07:27.000000000 +0300
@@ -6,6 +6,9 @@
 srvlookup=yes			; Enable DNS SRV lookups on outbound calls
 canreinvite=no			; Звонок через asterisk - очень нужен
 trunk=yes
+allow=all
+maxjitterbuffer=70
+
 
 ; Мы регимся на сервера другие
 	
15:07:27
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Hungup 'IAX2/nk-15092'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1202-08207110' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1202-08207110'
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
прошла 21 минута
15:28:27
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux2*CLI> iax2 set debug
jb     off    trunk
linux2*CLI> iax2 set debug
jb     off    trunk
linux2*CLI> iax2 set debug
jb     off    trunk
linux2*CLI> iax2 set debug
IAX2 Debugging Enabled
linux2*CLI> exit
Executing last minute cleanups
15:33:53
#less iax.conf.SAVE
15:36:38
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
   USERNAME        : vn
   DATE TIME       : 2010-10-28  16:51:38
   REFRESH         : 60
   APPARENT ADDRES : IPV4 192.168.104.1:4569
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00007ms  SCall: 10669  DCall: 00550 [192.168.104.1:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
   Timestamp: 00017ms  SCall: 01466  DCall: 00000 [192.168.103.1:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
   Timestamp: 00021ms  SCall: 01466  DCall: 00001 [192.168.103.1:4569]
прошло 15 минут
15:51:54
#vi iax.conf
--- /tmp/l3-saved-2910.8203.25312	2010-10-28 16:51:55.000000000 +0300
+++ iax.conf	2010-10-28 16:52:11.000000000 +0300
@@ -28,7 +28,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=yes
+;qualify=yes
 
 [nk]
 type=friend
@@ -36,7 +36,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=yes
+;qualify=yes
 
 [vn]
 type=friend
@@ -44,7 +44,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=yes
+;qualify=yes
 
 ; End
 
15:52:11
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
   REFRESH         : 60
   MD5 RESULT      : 1548e89470ff08f4aee02e63d9f470f6
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: REGACK
   Timestamp: 00006ms  SCall: 15090  DCall: 00848 [192.168.101.1:4569]
   USERNAME        : nk
   DATE TIME       : 2010-10-28  16:52:44
   REFRESH         : 60
   APPARENT ADDRES : IPV4 192.168.101.1:4569
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00006ms  SCall: 00848  DCall: 15090 [192.168.101.1:4569]
15:52:54
#vi iax.conf
--- /tmp/l3-saved-2910.18236.25133	2010-10-28 16:52:55.000000000 +0300
+++ iax.conf	2010-10-28 16:53:18.000000000 +0300
@@ -28,7 +28,7 @@
 host=dynamic
 username=rv
 context=grup3
-;qualify=yes
+qualify=no
 
 [nk]
 type=friend
@@ -36,7 +36,7 @@
 host=dynamic
 username=rv
 context=grup3
-;qualify=yes
+qualify=no
 
 [vn]
 type=friend
@@ -44,7 +44,7 @@
 host=dynamic
 username=rv
 context=grup3
-;qualify=yes
+qualify=no
 
 ; End
 
15:53:18
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
   APPARENT ADDRES : IPV4 192.168.101.1:4569
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00011ms  SCall: 02067  DCall: 12148 [192.168.101.1:4569]
off
IAX2 Debugging Disabled
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
15:54:35
#vi iax.conf
--- /tmp/l3-saved-2910.22378.31443	2010-10-28 16:54:37.000000000 +0300
+++ iax.conf	2010-10-28 16:54:52.000000000 +0300
@@ -28,7 +28,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=no
+qualify=yes
 
 [nk]
 type=friend
@@ -36,7 +36,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=no
+qualify=yes
 
 [vn]
 type=friend
@@ -44,7 +44,7 @@
 host=dynamic
 username=rv
 context=grup3
-qualify=no
+qualify=yes
 
 ; End
 
15:54:52
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- IAX2/vn-12888 requested special control 20, passing it to SIP/1201-0820fb00
    -- SIP/1201-0820fb00 is ringing
    -- SIP/1201-0820fb00 is ringing
    -- SIP/1201-0820fb00 is ringing
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'IAX2/vn-12888' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'IAX2/vn-12888'
    -- Hungup 'IAX2/vn-12888'
[Oct 28 17:02:08] NOTICE[15340]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1201-1402-1288274521-in.wav" "/var/spool/asterisk/monitor/voice-1201-1402-1288274521-out.wav" "/var/spool/asterisk/monitor/voice-1201-1402-1288274521.wav"  &
linux2*CLI>
linux2*CLI>
16:03:22
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux2 (pid = 13877)
Verbosity is at least 3
linux2*CLI>
linux2*CLI>
linux2*CLI>
    -- Attempting call on SIP/1201 for 1298@service:1 (Retry 1)
  == Starting SIP/1201-081fcf10 at service,1298,1 failed so falling back to exten 's'
  == Starting SIP/1201-081fcf10 at service,s,1 still failed so falling back to context 'default'
[Oct 28 17:11:02] WARNING[15679]: pbx.c:2483 __ast_pbx_run: Channel 'SIP/1201-081fcf10' sent into invalid extension 's' in context 'default', but no invalid handler
[Oct 28 17:11:02] NOTICE[15679]: pbx_spool.c:371 attempt_thread: Call completed to SIP/1201
/dev/pts/4
16:03:33
#cd /var/spool/
anacron/       asterisk/      cron/          cups/          exim4/         mail/          mqueue/        mqueue-client/ openoffice/    pop/           popbull/       samba/
16:03:33
#cd /var/spool/asterisk/
dictate/   meetme/    monitor/   outgoing/  system/    tmp/       voicemail/
16:03:33
#cd /var/spool/asterisk/outgoing/

16:03:53
#vi /tmp/call
--- /dev/null	2010-10-28 08:37:47.510551721 +0300
+++ /tmp/call	2010-10-28 17:07:17.000000000 +0300
@@ -0,0 +1,4 @@
+Channel: SIP/1201
+Extension: 1296
+Context: service
+
16:08:50
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:10:13
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:10:47
#ll /tmp/call
-rw-r--r-- 1 asterisk asterisk 52 Окт 28 17:10 /tmp/call
/dev/pts/0
16:11:14
#vi extensions.conf
16:12:20
# 3
 31 ;exten => _128X,1,Record(/tmp/1:gsm)
"extensions.conf" 183L, 5384C
 32 exten => 1299,1,Answer
 33 exten => 1299,n,Wait(1)
 34 exten => 1299,n,Playback(demo-thanks)
 35 exten => 1299,n,Hangup
 36
 37 exten => 1295,1,Answer
 38 exten => 1295,n,SetMusicOnhold(default)
 39 exten => 1295,n,Queue(queine1,m)
...
 51 ;exten => 1197,1,Record(/tmp/voicemail-greeting-${CALLERID(number)}:gsm) ;Запись фраз с абонентов в персональные файлы
 52 ;exten => 1298,1,VoiceMailMain()
 53 exten => 1298,1,Goto(menu,s,1)
 54 exten => 1296,1,VoiceMailMain(${CALLERID(number)}@default|s)
 55 exten => _1200X,1,AgentLogin(100${EXTEN:4})
 56 exten => _*8.,1,Pickup(${EXTEN:2})
 57
 58
 59 [menu]
 60 exten => s,1,Background(/usr/share/asterisk/ivr/1)
/dev/pts/4
16:12:39
#cp -p /tmp/call /var/spool/asterisk/outgoing/

/dev/pts/0
16:13:39
# 61 [default]s,n(start),Background(/usr/share/asterisk/ivr/2)
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 17:14:30] NOTICE[15822]: pbx_spool.c:371 attempt_thread: Call completed to SIP/1201
    -- Attempting call on SIP/1201 for 1296@service:1 (Retry 1)
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
  == Starting SIP/1201-081fcf10 at service,1296,1 failed so falling back to exten 's'
  == Starting SIP/1201-081fcf10 at service,s,1 still failed so falling back to context 'default'
[Oct 28 17:16:36] WARNING[15849]: pbx.c:2483 __ast_pbx_run: Channel 'SIP/1201-081fcf10' sent into invalid extension 's' in context 'default', but no invalid handler
[Oct 28 17:16:36] NOTICE[15849]: pbx_spool.c:371 attempt_thread: Call completed to SIP/1201
/dev/pts/4
16:14:08
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:14:10
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:16:28
#cp -p /tmp/call /var/spool/asterisk/outgoing/

/dev/pts/0
16:16:50
#vi extensions.conf
/dev/pts/4
16:18:18
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:22:34
#cp -p /tmp/call /var/spool/asterisk/outgoing/

16:22:36
#mc
/dev/pts/0
16:23:04
# 13
 68
 69 exten => i,1,Background(/usr/share/asterisk/ivr/3)
 70 exten => i,n,Goto(s,start)
 71
 72 exten => 9,1,Goto(s,start)
 73 exten => 1,1,Goto(submenu,s,1)
 74 exten => 2,1,Background(/usr/share/asterisk/ivr/5)
 75 exten => 2,n,Goto(s,start)
 76 exten => #,1,Hangup
 77
...
 96 exten => s,1,Answer
 97 exten => s,n,Set(FILENAME=voice-${ARG1}-${CALLERID(num)}-${EPOCH})
176 ;exten => 1201,1,Dial(SIP/1201)
177 include => servise
178 include => local
179 include => national
180
181 [grup3]
182 include => servise
183 include => local
16:33:03
#{CALLERID(number)})
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [s@macro-answer-with-monitor:5] Dial("SIP/1201-081fcf10", "SIP/1202|10|tT") in new stack
    -- Called 1202
    -- SIP/1202-082124e8 is ringing
    -- SIP/1202-082124e8 answered SIP/1201-081fcf10
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1201-081fcf10' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1201-081fcf10'
[Oct 28 17:36:25] NOTICE[16166]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1202-1201-1288276578-in.wav" "/var/spool/asterisk/monitor/voice-1202-1201-1288276578-out.wav" "/var/spool/asterisk/monitor/voice-1202-1201-1288276578.wav"  &
linux2*CLI>
linux2*CLI>
linux2*CLI>

Пятница (10/29/10)

/dev/pts/0
08:34:48
#lsp
lspci    lspgpot
08:34:48
#lsp
lspci    lspgpot
08:34:48
#lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:04.0 Mass storage controller: Integrated Technology Express, Inc. ITE 8211F Single Channel UDMA 133 (rev 11)
01:09.0 Bridge: PLX Technology, Inc. Device d00d (rev 01)
04:00.0 Ethernet controller: Intel Corporation 82573V Gigabit Ethernet Controller (Copper) (rev 03)
08:34:53
#ls
ls           lsattr       lsb_release  lshal        lsmod        lsof         lspci        lspgpot      lsusb        lszaptel
08:34:53
#ls
ls           lsattr       lsb_release  lshal        lsmod        lsof         lspci        lspgpot      lsusb        lszaptel
08:34:53
#ls
ls           lsattr       lsb_release  lshal        lsmod        lsof         lspci        lspgpot      lsusb        lszaptel
08:34:53
#lshal
Dumping 87 device(s) from the Global Device List:
-------------------------------------------------
udi = '/org/freedesktop/Hal/devices/computer'
  info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list)
  info.callouts.add = {'hal-storage-cleanup-all-mountpoints'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.SystemPowerManagement'} (string list)
  info.product = 'Computer'  (string)
  info.subsystem = 'unknown'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer'  (string)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '', 'enable_power_save'} (string list)
...
  pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:00.0'  (string)
  pci.product = '82945G/GZ/P/PL Memory Controller Hub'  (string)
  pci.product_id = 10096  (0x2770)  (int)
  pci.subsys_product_id = 33146  (0x817a)  (int)
  pci.subsys_vendor = 'ASUSTeK Computer Inc.'  (string)
  pci.subsys_vendor_id = 4163  (0x1043)  (int)
  pci.vendor = 'Intel Corporation'  (string)
  pci.vendor_id = 32902  (0x8086)  (int)
Dumped 87 device(s) from the Global Device List.
------------------------------------------------
08:35:54
#lshal | less
08:41:43
#cd /usr/src/
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/           modules/
08:41:43
#cd /usr/src/
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/           modules/
08:41:43
#cd /usr/src/
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/           modules/
08:41:43
#cd /usr/src/
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/           modules/
08:41:43
#cd /usr/src/linux
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/
08:41:43
#cd /usr/src/linux
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/
08:41:43
#cd /usr/src/linux
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/
08:41:43
#cd /usr/src/linux
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/
08:41:43
#cd /usr/src/linux
linux/                         linux-headers-2.6.26-2-686/    linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/

Файлы

  • /proc/cpuinfo
  • /proc/cpuinfo
    >
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 15
    model           : 4
    model name      : Intel(R) Celeron(R) CPU 2.66GHz
    stepping        : 1
    cpu MHz         : 2667.144
    cache size      : 256 KB
    fdiv_bug        : no
    hlt_bug         : no
    f00f_bug        : no
    coma_bug        : no
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 5
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc up pebs bts pni monitor ds_cpl tm2 cid cx16 xtpr
    bogomips        : 5340.55
    clflush size    : 64
    power management:
    

    Статистика

    Время первой команды журнала13:15:30 2010-10-28
    Время последней команды журнала08:41:43 2010-10-29
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 0.99
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 2.54
    Количество командных строк в единицу времени, команда/мин 0.66
    Частота использования команд
    vi27|=========================| 25.47%
    asterisk20|==================| 18.87%
    cd12|===========| 11.32%
    cp9|========| 8.49%
    614|===| 3.77%
    ls4|===| 3.77%
    modprobe3|==| 2.83%
    ll2|=| 1.89%
    lshal2|=| 1.89%
    lsp2|=| 1.89%
    less2|=| 1.89%
    cat2|=| 1.89%
    grep2|=| 1.89%
    lsmod2|=| 1.89%
    /etc/init.d/asterisk1|| 0.94%
    31|| 0.94%
    lspci1|| 0.94%
    {CALLERID(number)})1|| 0.94%
    131|| 0.94%
    If1|| 0.94%
    bootlogd1|| 0.94%
    771|| 0.94%
    ~1|| 0.94%
    Звонок1|| 0.94%
    mv1|| 0.94%
    71|| 0.94%
    mc1|| 0.94%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$