/l3/users/a.krivulya/asterisk/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#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 ========================================================================= ... -- Called kharkov/401 -- SIP/kharkov-081d8ef0 is ringing -- SIP/kharkov-081d8ef0 answered Zap/1-1 == Spawn extension (submenu, 3, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' [May 28 14:52:16] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:55:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:58:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 linux2*CLI> quit Executing last minute cleanups |
#scp 192.168.4.1:/etc/asterisk/zapata.conf /etc/asterisk/
root@192.168.4.1's password: zapata.conf 100% 24KB 23.6KB/s 00:00 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cat /etc/zaptel.conf
loadzone=de defaultzone=de fxoks=1-8 |
#ls /etc/asterisk/
] cdr_tds.conf gtalk.conf musiconhold.conf sip.conf.dist adsi.conf codecs.conf h323.conf muted.conf sip_notify.conf adtranvofr.conf dnsmgr.conf http.conf osp.conf skinny.conf agents.conf dundi.conf iax.conf oss.conf sla.conf alarmreceiver.conf enum.conf iaxprov.conf phone.conf smdi.conf alsa.conf esel.conf indications.conf privacy.conf telcordia-1.adsi amd.conf extconfig.conf jabber.conf queues.conf udptl.conf asterisk.adsi extensions.ael logger.conf res_odbc.conf users.conf asterisk.conf extensions.conf manager.conf res_pgsql.conf voicemail.conf cdr.conf extensions.conf.dist manager.d res_snmp.conf vpb.conf cdr_custom.conf features.conf meetme.conf rpt.conf watchdog.conf cdr_manager.conf festival.conf mgcp.conf rtp.conf zapata.conf cdr_odbc.conf followme.conf misdn.conf say.conf cdr_pgsql.conf func_odbc.conf modules.conf sip.conf |
#ztcfg -vvv
![]() Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXS Kewlstart (Default) (Slaves: 01) Channel 02: FXS Kewlstart (Default) (Slaves: 02) Channel 03: FXS Kewlstart (Default) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Slaves: 04) Channel 05: FXS Kewlstart (Default) (Slaves: 05) Channel 06: FXS Kewlstart (Default) (Slaves: 06) Channel 07: FXS Kewlstart (Default) (Slaves: 07) Channel 08: FXS Kewlstart (Default) (Slaves: 08) 8 channels to configure. Changing signalling on channel 1 from FXO Kewlstart to FXS Kewlstart ZT_CHANCONFIG failed on channel 1: Invalid argument (22) Did you forget that FXS interfaces are configured with FXO signalling and that FXO interfaces use FXS signalling? |
#vi /etc/zaptel.conf
|
#lspci
00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 03) 00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 12) 00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 12) 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 12) 00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 12) 00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 12) 01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF 02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 02:0c.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11) |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-2534.15937.17632 2010-05-28 15:04:18.000000000 +0300 +++ /etc/zaptel.conf 2010-05-28 15:04:24.000000000 +0300 @@ -1,6 +1,6 @@ loadzone=de defaultzone=de -fxsks=1-8 +fxoks=1-8 |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-2534.29631.19893 2010-05-28 15:04:27.000000000 +0300 +++ /etc/zaptel.conf 2010-05-28 15:04:42.000000000 +0300 @@ -1,6 +1,6 @@ loadzone=de defaultzone=de -fxoks=1-8 +fxoks=1 |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXO Kewlstart (Default) (Slaves: 01) 1 channels to configure. |
#vi /etc/zaptel.conf
![]() |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2534.13583.29106 2010-05-28 15:05:11.000000000 +0300 +++ /etc/asterisk/zapata.conf 2010-05-28 15:07:57.000000000 +0300 @@ -47,7 +47,7 @@ ; ; Default context ; -context=default +context=gr2 ; ; Switchtype: Only used for PRI. ; @@ -609,7 +609,7 @@ ; crv => 2:1-2,5-8 ; ; -;callerid="Green Phone"<(256) 428-6121> +callerid="White Phone"<203> channel => 1 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2534.2533.10502 2010-05-28 15:08:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 15:09:30.000000000 +0300 @@ -21,7 +21,7 @@ exten => s,n,Monitor(wav,${CALLFILENAME},m) [local] - +exten => 203,1,Dial(ZAP/g1) exten => _2XX,1,Macro(call_record) exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vi /etc/asterisk/sip.conf\
--- /tmp/l3-saved-2534.24505.5563 2010-05-28 15:43:57.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-28 15:44:12.000000000 +0300 @@ -19,7 +19,7 @@ type=friend secret=password host=dynamic -canreinvite=no +canreinvite=yes callerid="softphone" context=gr1 callgroup=10 |
#asterisk -rx "sip reload"
|
#asterisk -rvv
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 ========================================================================= ... [May 28 15:51:54] WARNING[3916]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 28 15:52:04] WARNING[3916]: app.c:611 __ast_play_and_record: No audio available on Local/202@gr3-6147,2?? == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' [May 28 15:52:04] NOTICE[3916]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-"* ) & == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' [May 28 15:52:04] NOTICE[3918]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#screen -x
![]() |
#sc
![]() scp screendump script scriptreplay |
#[local]
canreinvite=no callerid="toshiba_g810" canreinv context=gr3 callgroup=10 pickupgroup=10 [dnepr] type=friend secret=password host=dynamic |
#sc
![]() scp screendump script scriptreplay |
#sc
![]() scp screendump script scriptreplay |
#sc
scp screendump script scriptreplay |
#asterisk -rvv
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 ========================================================================= ... [May 28 16:15:04] WARNING[2504]: chan_sip.c:2921 create_addr: No such host: 999 [May 28 16:15:04] WARNING[2504]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 28 16:15:04] WARNING[2504]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '999' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-acfc,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-acfc,2' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-acfc,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-acfc,1' [May 28 16:15:04] NOTICE[2505]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-in.wav" "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-out.wav" "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010.wav" && rm -f "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 28 15:56:36 2010 from 192.168.1.1 l3-agent is already running: pid=2472; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 28 16:15:33 2010 from 192.168.4.204 l3-agent is already running: pid=2421; pidfile=/root/.lilalo/l3-agent.pid |
#ps ax|grep screen
2681 pts/5 S+ 0:00 grep screen |
#screen -h
![]() |
#grep pri_ /etc/asterisk/zapata.conf
; pri_cpe: PRI signalling, CPE side ; pri_net: PRI signalling, Network side ; pri_cpe or pri_net for CPE or Network termination, and generally you will ; signalling = pri_cpe |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=31 irq=16 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding= framing= |
#ps ax|grep screen
2804 pts/7 S+ 0:00 screen 2883 pts/3 S+ 0:00 screen -x 2893 pts/5 S+ 0:00 grep screen |
#screen -x
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2236.27987.8142 2010-05-28 16:41:12.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 16:42:26.000000000 +0300 @@ -25,6 +25,9 @@ exten => _2XX,1,Macro(call_record) exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) + +exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN:2}) + exten => 800,1,Playback(/tmp/unforgiven) exten => 803,1,VoicemailMain() exten => 801,1,GotoIf($[${CALLERID(number)}=201]?record) |
#astrrisk -rvv
![]() bash: astrrisk: команда не найдена |
#asterisk -rvv
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 ========================================================================= ... No such command 'dialplan rel9ad' (type 'help dialplan rel9ad' for other possible commands) linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': Found == Parsing '/etc/asterisk/users.conf': Found \ linux2*CLI> linux2*CLI> linux2*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2236.29623.12522 2010-05-28 16:43:18.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 16:45:51.000000000 +0300 @@ -26,7 +26,8 @@ exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) -exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN:2}) +;Звонки в Днепр через PRI +exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN}) exten => 800,1,Playback(/tmp/unforgiven) exten => 803,1,VoicemailMain() |
#:q
[macro-m2] exten => s,1,Set(CALLERID(number)=2${ARG1}) exten => s,n,Dial(SIP/${MACRO_EXTEN}) [macro-incoming]xtensions.conf" 110 lines, 2893 characters ;exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,1,Dial(SIP/${MACRO_EXTEN},20,tT) exten => s,n,Voicemail(${MACRO_EXTEN}@default) exten => s,n(end),Hangup }-${STRFTIME(${EPOCH},Europe/Kiev)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,1,Set(CALLFILENAME=/var/tmp/from-${CALLERID(number)}-to-${MACRO_EXTEN [local] [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) [gr1] include => local include => parkedcalls [gr2] include => local include => corp [gr3] |
#:q
|
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2236.23874.24409 2010-05-28 17:39:22.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-28 17:40:29.000000000 +0300 @@ -35,6 +35,17 @@ callgroup=10 pickupgroup=10 +[999] +type=friend +secret=password +host=dynamic +canreinvite=no +callerid="Windows TAPI" +context=gr3 +callgroup=10 +pickupgroup=10 + + [dnepr] type=friend |
#asterisk -rvv
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 ========================================================================= ... Verbosity was 0 and is now 2 [May 29 09:45:59] WARNING[2369]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 29 09:45:59] WARNING[2369]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '999' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-fabb,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-fabb,2' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-fabb,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-fabb,1' [May 29 09:45:59] NOTICE[2370]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-in.wav" "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-out.wav" "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010.wav" && rm -f "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
|