/l3/users/roman-sidorenko/asterisk/debian4/root :1 :2 :3 :4 :5 :6 :7 |
|
#vim zapata.conf
--- /tmp/l3-saved-7292.1571.25363 2009-12-09 04:01:37.000000000 -1000 +++ zapata.conf 2009-12-09 04:02:45.000000000 -1000 @@ -47,7 +47,7 @@ ; ; Default context ; -context=default +;context=default ; ; Switchtype: Only used for PRI. ; |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim extensions.conf
|
#:q
![]() adsi.conf features.conf phone.conf adtranvofr.conf festival.conf privacy.conf agents.conf followme.conf queues.conf alarmreceiver.conf func_odbc.conf res_odbc.conf alsa.conf gtalk.conf res_pgsql.conf amd.conf h323.conf res_snmp.conf asterisk.adsi http.conf rpt.conf asterisk.conf iax.conf rtp.conf cdr.conf iax.conf.SAVED say.conf cdr_custom.conf iaxprov.conf sip.conf ... cdr_tds.conf manager.conf sla.conf codecs.conf manager.d/ smdi.conf dnsmgr.conf meetme.conf telcordia-1.adsi dundi.conf mgcp.conf udptl.conf enum.conf misdn.conf users.conf esel.conf modules.conf voicemail.conf extconfig.conf musiconhold.conf vpb.conf extensions.ael muted.conf watchdog.conf extensions.conf osp.conf zapata.conf extensions.conf.SAVED oss.conf |
#vim extensions.conf
--- /tmp/l3-saved-7292.14193.5710 2009-12-09 04:07:37.000000000 -1000 +++ extensions.conf 2009-12-09 04:08:13.000000000 -1000 @@ -12,7 +12,8 @@ ;exten => 202,n,Playback(demo-congrats) exten => 202,n,Hangup - +[trans-Poltava] +include => outbound [outbound] exten => 4000,1,Dial(SIP/vkiev/${EXTEN}) |
#vim sip.conf
--- /tmp/l3-saved-7292.30932.6172 2009-12-09 04:08:17.000000000 -1000 +++ sip.conf 2009-12-09 04:08:44.000000000 -1000 @@ -38,6 +38,7 @@ ;call-limit=1 ;limitonpeers=yes usecallerid=no +context=trans-Poltava [vkiev] type=friend |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found \ -- Executing [202@internal:1] Answer("SIP/kiev-093e1898", "") in new stack -- Executing [202@internal:2] Wait("SIP/kiev-093e1898", "1") in new stack -- Executing [202@internal:3] Playback("SIP/kiev-093e1898", "alba") in new stack -- <SIP/kiev-093e1898> Playing 'alba' (language 'en') == Spawn extension (internal, 202, 3) exited non-zero on 'SIP/kiev-093e1898' [Dec 9 04:09:56] NOTICE[7415]: chan_sip.c:14035 handle_request_invite: Call from 'kiev' to extension '380674074085' rejected because extension not found. debian4*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#:q
register => nt:1234@xgu.ru/vkiev [201] type=friend host=dynamic secret=1234 callerid="Roman Sidorenko-MegaPhone" context=blackL, 683C [203] type=friend host=dynamic ... ; 192.168.101.3 secret=1234 ;call-limit=1 ;limitonpeers=yes usecallerid=no context=trans-Poltava [vkiev] type=friend host=xgu.ru ;secret=1234 |
#vim sip.conf
--- /tmp/l3-saved-7292.4309.26584 2009-12-09 04:12:49.000000000 -1000 +++ sip.conf 2009-12-09 04:13:08.000000000 -1000 @@ -1,5 +1,5 @@ [general] -context=internal +context=default register => kiev:1234@192.168.101.3/poltava register => fromDeb4:123@192.168.102.2/fromDeb4 |
#/etc/init
![]() init.d/ initramfs-tools/ |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian4 (pid = 7600) Verbosity was 0 and is now 4 -- Saved useragent "Asterisk PBX" for peer poltava debian4*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-7292.7133.18635 2009-12-09 04:13:47.000000000 -1000 +++ extensions.conf 2009-12-09 04:13:52.000000000 -1000 @@ -12,7 +12,7 @@ ;exten => 202,n,Playback(demo-congrats) exten => 202,n,Hangup -[trans-Poltava] +[transPoltava] include => outbound [outbound] |
#vim sip.conf
--- /tmp/l3-saved-7292.790.7758 2009-12-09 04:13:56.000000000 -1000 +++ sip.conf 2009-12-09 04:14:01.000000000 -1000 @@ -35,7 +35,7 @@ host=dynamic secret=1234 usecallerid=no -context=trans-Poltava +context=transPoltava [vkiev] type=friend |
#/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. |
#ssh 192.168.101.3
root@192.168.101.3's password: Linux debian3 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 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: Tue Dec 8 21:56:58 2009 from 192.168.7.101 |
#screen -x
![]() |
#screen
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 9 11:24:31] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #4) [Dec 9 11:24:51] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #5) [Dec 9 11:25:11] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #6) [Dec 9 11:25:31] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #7) [Dec 9 11:25:51] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #8) [Dec 9 11:26:11] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #9) [Dec 9 11:26:31] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #10) [Dec 9 15:18:43] NOTICE[7821]: chan_sip.c:7517 sip_reg_timeout: -- Registration for 'nt@xgu.ru' timed out, trying again (Attempt #1) debian4*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#exten => 999,n,Echo
|
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Aug 19 06:06:52 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf790000 (usable) [ 0.000000] BIOS-e820: 00000000bf790000 - 00000000bf79e000 (ACPI data) [ 0.000000] BIOS-e820: 00000000bf79e000 - 00000000bf7e0000 (ACPI NVS) ... [ 12.402623] Adding 996020k swap on /dev/sda2. Priority:-1 extents:1 across:996020k [ 12.816412] EXT3 FS on sda1, internal journal [ 13.283864] loop: module loaded [ 14.691527] e1000: eth1: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX [ 16.029238] NET: Registered protocol family 10 [ 16.030624] lo: Disabled Privacy Extensions [ 19.930677] usbvideo: Packet Statistics: Total=32. Empty=0. Usage=100% [ 19.930682] usbvideo: Transfer Statistics: Transferred=0 B Usage=0% [ 28.162838] eth1: no IPv6 routers present [ 269.682730] Registered tone zone 8 (Norway) |
#apt-get update
Hit http://10.0.35.1 lenny Release.gpg Get:1 http://security.debian.org lenny/updates Release.gpg [835B] Ign http://security.debian.org lenny/updates/main Translation-en_US Ign http://10.0.35.1 lenny/main Translation-en_US Get:2 http://security.debian.org lenny/updates Release [40.8kB] Hit http://10.0.35.1 lenny Release Get:3 http://security.debian.org lenny/updates/main Packages [243kB] Ign http://10.0.35.1 lenny/main Packages/DiffIndex Ign http://10.0.35.1 lenny/main Sources/DiffIndex Ign http://10.0.35.1 lenny/main Packages Ign http://10.0.35.1 lenny/main Sources Get:4 http://security.debian.org lenny/updates/main Sources [63.8kB] Hit http://10.0.35.1 lenny/main Packages Hit http://10.0.35.1 lenny/main Sources Fetched 348kB in 1s (213kB/s) Reading package lists... Done |
#apt-get install
![]() adsi.conf features.conf phone.conf adtranvofr.conf festival.conf privacy.conf agents.conf followme.conf queues.conf alarmreceiver.conf func_odbc.conf res_odbc.conf alsa.conf gtalk.conf res_pgsql.conf amd.conf h323.conf res_snmp.conf asterisk.adsi http.conf rpt.conf asterisk.conf iax.conf rtp.conf cdr.conf iax.conf.SAVED say.conf cdr_custom.conf iaxprov.conf sip.conf ... cdr_tds.conf manager.conf sla.conf codecs.conf manager.d/ smdi.conf dnsmgr.conf meetme.conf telcordia-1.adsi dundi.conf mgcp.conf udptl.conf enum.conf misdn.conf users.conf esel.conf modules.conf voicemail.conf extconfig.conf musiconhold.conf vpb.conf extensions.ael muted.conf watchdog.conf extensions.conf osp.conf zapata.conf extensions.conf.SAVED oss.conf |
#apt-get install fe
![]() features.conf festival.conf |
#. /etc/bash_completion
|
#apt-get install fe
![]() feed2imap festival-italian festvox-kdlpc16k feh festival-mr festvox-kdlpc8k fence festival-te festvox-mr-nsk fence-gnbd festival-voice festvox-rablpc16k fenix festlex-cmu festvox-rablpc8k fenix-dev festlex-ifd festvox-suopuhe-common fenix-plugin-mpeg festlex-oald festvox-suopuhe-lj fenix-plugins festlex-poslex festvox-suopuhe-mv fenix-plugins-system festvox-czech-ph festvox-te-nsk ferm festvox-don fet ferret festvox-ellpc11k fetchexc festival festvox-hi-nsk fetchmail festival-czech festvox-italp11k fetchmail-common festival-dev festvox-italp16k fetchmailconf festival-doc festvox-itapc11k fetchmail-ssl festival-freebsoft-utils festvox-itapc16k fetchyahoo festival-gaim festvox-kallpc16k feynmf festival-hi festvox-kallpc8k |
#apt-get install fest
![]() festival festlex-ifd festvox-kallpc8k festival-czech festlex-oald festvox-kdlpc16k festival-dev festlex-poslex festvox-kdlpc8k festival-doc festvox-czech-ph festvox-mr-nsk festival-freebsoft-utils festvox-don festvox-rablpc16k festival-gaim festvox-ellpc11k festvox-rablpc8k festival-hi festvox-hi-nsk festvox-suopuhe-common festival-italian festvox-italp11k festvox-suopuhe-lj festival-mr festvox-italp16k festvox-suopuhe-mv festival-te festvox-itapc11k festvox-te-nsk festival-voice festvox-itapc16k festlex-cmu festvox-kallpc16k |
#apt-get install festival
![]() festival festival-freebsoft-utils festival-mr festival-czech festival-gaim festival-te festival-dev festival-hi festival-voice festival-doc festival-italian |