Compiling FreeSwitch: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
Download [[source code]] FreeSWITCH dari ('''WARNING: File [[source code]] sangat besar sekitar 75Mbyte''')
Sumber: http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide


* http://files.freeswitch.org/freeswitch-1.0.5pre9.tar.gz
==Perbaiki locale==
* http://files.freeswitch.org


sudo locale-gen id_ID.UTF-8


Siapkan dependencies dan aplikasi pendukung


apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++ libssl-dev libxml2-dev
==Install==


Untuk mengcompile lakukan
sudo su


  cp freeswitch-1.0.5pre9.tar.gz /usr/local/src/
  sudo apt-get install git-core build-essential autoconf automake libtool libncurses5 \
libncurses5-dev make libjpeg-dev pkg-config unixodbc unixodbc-dev zlib1g-dev
 
sudo apt-get install libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff4-dev libx11-dev unixodbc-dev \
python-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev \
libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev
 
==Download source code==
 
sudo su
  cd /usr/local/src
  cd /usr/local/src
  tar zxvf freeswitch-1.0.5pre9.tar.gz
  git clone git://git.freeswitch.org/freeswitch.git
  cd freeswitch-1.0.5pre9
  cd /usr/local/src/freeswitch
  ./configure  
./bootstrap.sh
 
==Compile==
 
  ./configure
  make
  make
make install


==Install==
make all install cd-sounds-install cd-moh-install
Proses terakhir akan mendownload sound ke folder
/usr/local/freeswitch/sounds/
==Start FreeSWITCH==
Tulis
/usr/local/freeswitch/bin/freeswitch
sampai keluar
2014-01-01 09:38:02.211459 [CONSOLE] switch_core.c:2143
FreeSWITCH Version 1.5.8b+git~20131231T224544Z~153f66d739~64bit (git 153f66d 2013-12-31 22:45:44Z 64bit)
FreeSWITCH Started
Max Sessions [1000]
Session Rate [30]
SQL [Enabled]
2014-01-01 09:38:02.211474 [CONSOLE] switch_core.c:2151
[This app Best viewed at 160x60 or more..]
freeswitch@opensips>


==Install Pendukung==
==Testing==


===Instalasi Sound===
Configure a SIP phone or softphone with the IP address of the FreeSWITCH™ computer and user "1000" and password "1234". The default FreeSWITCH™ configuration provides pre-defined definitions for extensions 1000-1019, all passwords are 1234.


make cd-sounds-install
* Dial 9664 to hear music.
make cd-moh-install
* Dial 5000 to test the sample IVR
make uhd-sounds-install
* Configure a second SIP phone as user 1001, dial 1001 from 1000, and 1000 from 1001 to test between phones
make uhd-moh-install
make hd-sounds-install
make hd-moh-install
make sounds-install
make moh-install


===Instalasi Sample Konfigurasi===
==Referensi==


make samples
* http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide


==Pranala Menarik==
==Pranala Menarik==


* [[FreeSWITCH]]
* [[FreeSWITCH: Beberapa Nomor Penting]]
* [[VoIP: Instalasi FreePBX]]
* [[VoIP: Instalasi FreePBX]]
* [[VoIP: Softswitch / Server Internet Telepon]]
* [[VoIP: Softswitch / Server Internet Telepon]]
* [[VoIP]]
* [[VoIP]]

Latest revision as of 02:52, 1 January 2014

Sumber: http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide

Perbaiki locale

sudo locale-gen id_ID.UTF-8


Install

sudo su
sudo apt-get install git-core build-essential autoconf automake libtool libncurses5 \
libncurses5-dev make libjpeg-dev pkg-config unixodbc unixodbc-dev zlib1g-dev
sudo apt-get install libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff4-dev libx11-dev unixodbc-dev \
python-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev \
libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev

Download source code

sudo su
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd /usr/local/src/freeswitch
./bootstrap.sh

Compile

./configure
make

Install

make all install cd-sounds-install cd-moh-install

Proses terakhir akan mendownload sound ke folder

/usr/local/freeswitch/sounds/

Start FreeSWITCH

Tulis

/usr/local/freeswitch/bin/freeswitch

sampai keluar

2014-01-01 09:38:02.211459 [CONSOLE] switch_core.c:2143 
FreeSWITCH Version 1.5.8b+git~20131231T224544Z~153f66d739~64bit (git 153f66d 2013-12-31 22:45:44Z 64bit)

FreeSWITCH Started
Max Sessions [1000]
Session Rate [30]
SQL [Enabled]
2014-01-01 09:38:02.211474 [CONSOLE] switch_core.c:2151 
[This app Best viewed at 160x60 or more..]
freeswitch@opensips>

Testing

Configure a SIP phone or softphone with the IP address of the FreeSWITCH™ computer and user "1000" and password "1234". The default FreeSWITCH™ configuration provides pre-defined definitions for extensions 1000-1019, all passwords are 1234.

  • Dial 9664 to hear music.
  • Dial 5000 to test the sample IVR
  • Configure a second SIP phone as user 1001, dial 1001 from 1000, and 1000 from 1001 to test between phones

Referensi

Pranala Menarik