diri lang istroya. send me a pm lang.
mga bro..unsaon pag copy og file padung sa usr/scr sa ubuntu?
from wer ang source?
usually you use sudo to execute a command sa ubuntu.
if you want to copy from external source. just use wget command, and setup a tftp server or just a webserver; store your file to a directory in your webserver and point your wget command to fetch your file from your ubuntu to your webserver where your directory are linked with the file you wish to copy.
Last edited by dammy; 09-27-2011 at 05:08 PM.
Bro..na ai ky complete source regarding installing asterisk from net? taga-e lng me ug link beh...hehe
Asterisk installation on Fedora Core 2 final
Introduction
This how-to guide outlines the process for a fresh installation of Redhat Linux (Fedora Core 2 Final) and Asterisk. The purpose of this document is to get you up and running (making and receiving phone calls) in about an hour. Experimenting with Asterisk, enabling more features and unlocking its potential is left up to you!
This configuration was created and tested on:
DELL PowerEdge 400SC ($350) Mao ni ang gamit namo sa office ......
Intel Pentium 4 2.40Ghz
256MB RAM
Standard configuration, no extra hardware
Installing Redhat Fedora Core 2 Final
- Download Redhat Fedora Core 2 FINAL from http://fedora.redhat.com/download and burn the CD ISO images (you only need CDs 1 and 2)
- Insert the CD and reboot into setup
- Hit enter to start graphical setup
- Skip the media test
- After the graphical setup starts, click Next to continue
- Select a language and click Next
- Select a keyboard configuratoin and click Next
- If asked, select "Install Fedora Core" and click Next
- Select an installation type of Custom and click Next
- Select Automatically Partition and click Next
- If asked, select "Remove all partitions on this system". WARNING: This will erase ALL data on your computer!
- Select Yes to confirm removing all data on your computer.
- Click Next to accept default Disk Setup
- Click Next to accept default Boot Loader Configuration
- Click Next to accept default Network Configuration
- Select No Firewall for the Firewall Configuration and click Next. WARNING: We do not recommend connecting this test server directly to the Internet! This server is configured without a firewall for simplicity. You can enable the firewall later and make the necessary changes to keep Asterisk working.
- Click Next to accept default Additional Language Support
- Select a time zone and click Next
- Enter a root password and click Next
- For Package Group Selection, select ONLY the following and de-select the other options:
X Window System
GNOME Desktop
Editors
Graphical Internet
Text-based Internet
Development Tools
- Click Next to accept Package Group Selection
- Click Next to begin installation
- Click Continue
- Insert Disc 2 when prompted and click OK
- When CD installation is complete, click Reboot
- After rebooting, the post-installation process will begin
- Click Next to continue
- Accept the License Agreement and click Next
- Set the date and time and click Next
- Click Next to accept the default Display settings
- Create a User Account with a different username and password than the "root" user created earlier and click Next
- If asked, confirm your sound card and click Next
- Click Next to skip the Additional CDs section
- Click Next to Finish setup
Installing Asterisk
- Login to your server as the user you created during install
- Right-click on the background and select Open Terminal
- Type "su -" on the command line, then enter the "root" user password when prompted
- Run the following commands to download Asterisk:
cd /usr/src
export CVSROOT=server:anoncvs@cvs.digium.com:/usr/cvsroot
cvs login <--- This command will prompt for a password, use anoncvs
cvs checkout asterisk
- This will download the latest version of Asterisk to your server. WARNING: This will download the very latest DEVELOPMENT version of Asterisk. It is NOT suitable for production use, just for testing!
- Run the following commands to compile Asterisk:
cd /usr/src/asterisk
make clean
make
make install
make samples
Note: You may need to "make install" several times before it really works.
Configuring Asterisk
- Login to your server as user "root"
- Right-click on the background and select Open Terminal
- Run the following commands to backup your current/sample configurations:
cd /etc/asterisk
mv iax.conf iax.backup
mv extensions.conf extensions.backup
- Run the following commands to download VoicePulse sample configurations:
cd /etc/asterisk
wget http://connect.voicepulse.com/samples/iax.sample
wget http://connect.voicepulse.com/samples/extensions.sample
- Run the following commands to rename the sample configurations:
cd /etc/asterisk
mv iax.sample iax.conf
mv extensions.sample extensions.conf
- Run the following commands to read and edit the VoicePulse Asterisk configurations:
cd /etc/asterisk
gedit iax.conf &
gedit extensions.conf &
- In iax.conf, make the changes outlined in the QUICKSTART section of the sample file, save the file and close it.
- In extensions.conf make the changes outlined in the QUICKSTART section of the sample file, save the file and close it.
Test incoming & outgoing calls
- Start Asterisk on your test server by running:
/usr/sbin/asterisk -vvvgc
- Run the following command to get the IP address of your Asterisk server:
ifconfig
- Look for the value after "inet addr:" to determine the IP address
- Download "Dante's DIAX Software Phone" to your Windows PC
- Start DIAX
- Click on Config > Registration
- Enter the following information (this "user" is already created in the sample iax.conf you downloaded from VoicePulse):
Alias: VoicePulse
Server: the IP address of your server that you determined above
Username: diax
Password: diaxpassword
Password: diaxpassword
Register: checked
- Click Save
- Click OK
- Dial a non-VoicePulse phone number to test outgoing calls like 1-888-225-5322
- You should see something similar to the following scroll across your Asterisk terminal window:
— Accepting AUTHENTICATED call from 192.168.1.100, requested format = 2, actual format = 2
— Executing Dial("IAX2/diax@diax/3", "IAX2/MY_DEVICE_LOGIN:MY_DEVICE_PASSWORD@gwiaxt01.voicep ulse.com/18882255322") in new stack
— Call accepted by 66.234.228.160 (format GSM)
- Add a phone number to your VoicePulse Connect! account from the Phone Numbers menu in your Account Center.
- Dial the incoming VoicePulse Connect! phone number on your account from a non-VoicePulse phone.
- You should see something similar to the following scroll across your Asterisk terminal window:
— Accepting AUTHENTICATED call from 66.234.228.170, requested format = 4, actual format = 4
— Executing Playback("IAX2/voicepulse-in-01@66.234.228.170:4569/4", "beep") in new stack
- Dialing into your Asterisk server should read back your phone number to you and then read back any digits you dial.
- If incoming and outgoing calls work, your Asterisk setup is complete! See Asterisk- The Open Source Telephony Projects | Asterisk or voip-info.org - voip-info.org for more details on customizing your Asterisk setup.
Asterisk installation for CentOS 4.x
THIS IS A VERY OLD AND OUTDATED GUIDE AND ASSUMES THE INSTALLATION OF ASTERISK VERSION 1.2
Base Install of Asterisk on a CentOS/RHEL box:
Before you begin, you'll probably want to bring all your packages up to date. To do so, run 'yum -y update'. If any kernel files were updated as part of this process, you will need to reboot the machine (shutdown -r now). Repeat the process until no more updates are available.
Download the pre-requisite of asterisk:
gcc
kernel-devel
bison
openssl-devel
doxygen #para makagawa ka ng program documentations/manual pages para sa asterisk
Note: Kernel-smp-devel (instead of kernel-devel) is necessary if you are using a dual core processor.
either through apt-get:
apt-get update
apt-get install gcc kernel-devel bison openssl-devel
or yum:
yum -y update
yum install gcc kernel-devel bison openssl-devel
then download the latest asterisk version at asterisk.org to /usr/src:
cd /usr/src
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-<version>.tar.gz
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-<version>.tar.gz
#if you are going to use PRI cards(eg. TE110P, TE406P) you need to down this:
wget http://ftp.digium.com/pub/libpri/releases/libpri-<version>.tar.gz
then untar all the files
tar -zxf zaptel-<version>.tar.gz
tar -zxf asterisk-<version>.tar.gz
tar -zxf libpri-<version>.tar.gz
### INSTALLING ZAPTEL ###
cd /usr/src/zaptel
make clean
make
make install
#If you want "service zaptel restart" command to work do this
make config
### INSTALL LIBPRI ###
# If you are using E1 cards you need to install LIBPRI
cd /usr/src/libpri
make clean
make
make install
### INSTALLING ASTERISK ###
cd /usr/src/asterisk
make mpg123 # kung gusto mong gumamit ng MoH
make clean
make
make install
#If you want sample files to be created in /etc/asterisk
make samples
#If you want program docs/manual pages for asterisk
make progdocs
#If you want "service asterisk restart" command to work do this
make config
note:
if you are using kernel 2.6.9-34.EL you need to edit spinlock.h or your zaptel will not compile.
vi /usr/src/kernels/2.6.9-34.EL-x86_64/include/linux/spinlock.h
then search for this line:
#define DEFINE_RWLOCK(x) rw_lock_t x = RW_LOCK_UNLOCKED
change it to:
#define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED
see the url for more info
https://bugzilla.redhat.com/bugzilla....cgi?id=180568
http://bugs.digium.com/view.php?id=6425
now you're finish installing asterisk.
See also
Asterisk installation tips: How to install on all kinds of operating systems and distributions
See Also
Asterisk Step-by-step Installation
CentOS 5 and Asterisk 1.4.x installation
Update
example for the following versions: asterisk 1.8.6 with dahdi
tar -zxvf libpri-1.4.12.tar.gz
tar -zxvf dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz
tar -zxvf asterisk-1.8.6.0.tar.gz
cd libpri-1.4.12
make -j3
make install
cd ..
cd dahdi-linux-complete-2.5.0.1+2.5.0.1
make -j3 all
make install
make config
cd ..
cd asterisk-1.8.6.0
./configure
make menuselect
make -j3
make install
make samples
make config
cd ..
(FILENAME: /etc/dahdi/system.conf)
span=1,1,0,ccs,hbd3,crc4
bchan=1-15,17-31
dchan=16
fxoks=32
fxsks=35
echocanceller=mg2,1-15,17-31
loadzone = nl
defaultzone=nl
(FILENAME: /etc/asterisk/chan_dahdi.conf)
context=from_outside
switchtype=euroisdn
group=1
context=from_outside
signalling=pri_cpe
transfer=yes
channel =>1-15,17-31
group=1
context=from_outside
signalling=pri_cpe
transfer=yes
channel =>1-15,17-31
group=2
context=users
signalling=fxo_ks
caller="what ever" <101>
mailbox="101"
callwaiting=yes
threewaycalling=yes
transfer=yes
channel =>32
group=3
context=from_outside
signalling=fxs_ks
callerid=asreceived
callwaiting=no
channel =>35
Asterisk OS Platforms
Operating Systems
Asterisk is known to run on many OS platforms. However, Linux is the main platform for development and Digium hardware support. If you are running VoIP only, or if you are comfortable with using external media gateways to connect conventional telephone equipment, then you have more systems to choose from, like FreeBSD, Mac OS X and Solaris. Work is going on to port drivers for Digium hardware to non-Linux platforms, too.
Linux
Linux Kernel 2.4
Asterisk is known to work on:
Asterisk Linux Conectiva: 9
Debian: i386 and PPC architectures
Fedora
Gentoo
Mandrake: 9.0
Redhat: 7.x, 8, 9
Redhat Enterprise Clones
CentOS 4.1
CentOS 5 and Asterisk 1.4.x installation
CentOS 5.2 and Asterisk 1.6.x installation
Pie Box
Tao Linux
Whitebox: i386 and AMD64
Slackware: 9.0, 9.1, 10.0 and 10.2
SuSE: Version 8, 9, 10.0 and 10.1
Trustix: Version 2.2
Yellow Dog: for PPC platforms only, YDL 3.01 works with Zaptel and LibPRI on PCI based Macintoshes
UltraLinux Sparc64: Gentoo/Sparc64
Linux Kernel 2.6
Linux 2.6 and devfs will also work but is not supported by Zaptel/Asterisk, meanwhile Linux 2.6 and udev plus hotplug works great.
Gentoo (devfs+2.6 and udev+2.6)
Debian
Fedora (2.6+udev)
Slackware: 10.2 (install with 'test26.s' then install 2.6 kernel source and module packages from CD 2)
SuSE 9.1 (2.6.4+udev)
Redhat Enterprise Clones
CentOS
Mandrake: 10.x/LE2005/2006
Asterisk Linux Mandriva: 2009.0,2009.1
For notes about compiling the zaptel driver on a Linux 2.6 system not listed above, see Asterisk Zaptel Installation
Asterisk on CD-ROM
See: Asterisk Bootable CDROM
See: Asterisk Install CDROM
Asterisk on Embedded (Tiny) Systems
See: Asterisk embedded systems
Non-Linux
Asterisk is also compiled with limited functionality on these non-Linux systems:
FreeBSD: Support improving all the time.
NetBSD: Runs solid on NetBSD 2.0 or later, some hardware support.
OpenBSD: Runs great on 3.x for SIP and IAX but no hardware support yet.
Mac OS X: Distributions available, GUI on the way
Solaris
Windows
Windows Cygwin
thanks bro..but i already installed Trixbox.. but my problem is how can i setup this to make outside call..i have existing PAbx which is panasonic.. and i want to used that as my pstn to make outside call..how do i caonfigure that on my trixbox?
Na ai diagram ani mga bro? from asterisk in linux box to PABx
haha imba oi. old school gyud nindot, kaabot gyud ko atong asterisknow which is trixbox na karun.
good naa naman diay ka trixbox.
sip to sip or iax to iax trunking nalng ni pag connect ninyu. or mag hardware base which is bad kau ang quality except kung mo palit mo og mahalon nga fxo devices, like patton and some digium pci cards with FXO/FXS suppot.
mag lisud ta anang inyung old pabx nga hardware, wala ko ka sulay ana. as long as mo support man na og sip inyung panasonic, configure og usa ka account sa inyung panasonic for the asterisk to login as sip client. next step kay the same ra pud configuration para sa inyong trixbox server.
Similar Threads |
|