/l3/users/angell2807/nt-voip/linux2.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#modprobe zaptel
|
#lsmod | grep za
zaptel 185060 0 crc_ccitt 2080 1 zaptel |
#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 |
#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: |
#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: |
#modprobe ztdummy
|
#lsmod | grep za
zaptel 185060 1 ztdummy crc_ccitt 2080 1 zaptel |
#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 |
#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 |
#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) |
#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> |
#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] |
#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] |
#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> |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vi extensions.conf
|
# 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 записано |
#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 |
#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' |
#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 |
#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> |
#vi meetme.conf
|
#~
|
#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 |
#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> |
#vi iax
|
#vi iax
|
#mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.SAVE
|
#cp /etc/asterisk/sip.conf /etc/asterisk/iax.conf
|
#vi iax.conf
|
# 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 |
#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 |
#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 - очень нужен |
#vi iax.conf
|
# 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 записано |
#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> |
#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 |
#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> |
#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 ; Мы регимся на сервера другие |
#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 |
#vi iax.conf
|
# 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 записано |
#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> |
#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 - ; Создаем клиентов |
#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> |
#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> |
#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] |
#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> |
#vi extensions.conf
|
#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' |
#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 + ; Мы регимся на сервера другие |
#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> |
#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 |
#less iax.conf.SAVE
|
#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] |
#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 |
#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] |
#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 |
#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> |
#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 |
#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> |
#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 |
#cd /var/spool/
anacron/ asterisk/ cron/ cups/ exim4/ mail/ mqueue/ mqueue-client/ openoffice/ pop/ popbull/ samba/ |
#cd /var/spool/asterisk/
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
#cd /var/spool/asterisk/outgoing/
|
#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 + |
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#ll /tmp/call
-rw-r--r-- 1 asterisk asterisk 52 Окт 28 17:10 /tmp/call |
# 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) |
# 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 |
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#mc
|
# 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 |
#{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> |
#lsp
lspci lspgpot |
#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) |
#ls
ls lsattr lsb_release lshal lsmod lsof lspci lspgpot lsusb lszaptel |
#ls
ls lsattr lsb_release lshal lsmod lsof lspci lspgpot lsusb lszaptel |
#ls
ls lsattr lsb_release lshal lsmod lsof lspci lspgpot lsusb lszaptel |
#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. ------------------------------------------------ |
#lshal | less
|
#cd /usr/src/
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ modules/ |
#cd /usr/src/
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ modules/ |
#cd /usr/src/
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ modules/ |
#cd /usr/src/
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ modules/ |
#cd /usr/src/linux
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ |
#cd /usr/src/linux
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ |
#cd /usr/src/linux
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ |
#cd /usr/src/linux
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ |
#cd /usr/src/linux
linux/ linux-headers-2.6.26-2-686/ linux-headers-2.6.26-2-common/ linux-kbuild-2.6.26/ |
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008