한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


http://www.pbxphreak.com/Asterisk/Default.htm

 

 

Ernest G. Wilson's Asterisk Configuration on FreeBSD

Asterisk v1.4x built on FreeBSD v7.1 UNIX

Prerequisites: A complete and fully functional FreeBSD Installation
                    FreeBSD custom built to my specifications will ensure that you have the required dependencies!
                    libxml2, libxml2-devel, libtiff, libtiff-devel, lame, Apache2, mysql (or mysql-client), mysql-devel (or libmysqlclient10-dev), mysql-server, php 5, php-mysql, php-gd, openssl,
                          openssl-devel (or libssl-dev), kernel-devel (FreeBSD Source), perl, perl-CPAN, bison, ncurses-devel (or libncurses5-dev), audiofile-devel (or libaudiofile-devel), curl, sox, Festival, flite

Overview: Typical Hardware & Software for a "Home" IP PBX

# PHP INI setting:
vi /usr/local/lib/php.ini
upload_max_filesize=20M

 

# Apache conf setting
# vi /opt/apache/conf/httpd.conf
# LimitRequestBody 20000000

 

# Download the latest FreePBX files:
cd /usr/src
fetch http://internap.dl.sourceforge.net/sourceforge/amportal/freepbx-2.3.1.tar.gz
tar xvf freepbx-?.?.?.tar.gz

 

# Getting Asterisk and Zaptel from SVN or download the latest Asterisk and Zaptel source archives
cd /usr/src
svn checkout http://svn.digium.com/svn/asterisk/branches/1.4 asterisk-1.4
# svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel-1.4
# svn checkout http://svn.digium.com/svn/libpri/branches/1.4 libpri-1.4


###
# For TDM zap devices (FXO/FXS):
cd /usr/ports/misc/zaptel
make
make install

 

# Digium telephony card that supports T1/E1 signaling do this step as well:
cd /usr/ports/misc/libpri
make
make install

 

# Asterisk with softfax/spandsp.
cd /usr/ports/comms/spandsp
make
make install

 

#Create a group and non-root user:
pw groupadd asterisk
pw useradd asterisk -n asterisk -G www -d /var/lib/asterisk

 

# Building Asterisk and configuring it to run as a non-root user
mkdir /var/run/asterisk
cd /usr/src/asterisk-?.?
./configure --without-tds
gmake clean
gmake menuselect
gmake
gmake install
gmake samples
gmake progdocs

 

# build cdr_mysql module for asterisk
# cd /usr/src/
# fetch http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.4.tar.gz
# tar xvf asterisk-addons-1.4.4.tar.gz
# cd asterisk-addons-1.4.4
# ./configure
# cd /usr/src/asterisk-addons
# perl -p -i.bak -e 's/CFLAGS.*D_GNU_SOURCE/CFLAGS+=-D_GNU_SOURCE\nCFLAGS+=-DMYSQL_LOGUNIQUEID/' Makefile # gmake clean # gmake # gmake install cd /usr/ports/net/asterisk-addons
make
make install clean

 

# Install asterisk-sounds
# cd /usr/src/asterisk-sounds
# make install

 

# Asterisk GUI
#cd /usr/src
#svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
#cd /usr/src/asterisk-gui
#./configure
#gmake cd /usr/ports/www/asterisk-gui/
make
make install

 

# Edit manager.conf
vi /usr/local/etc/asterisk/manager.conf
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0
[admin]
secret = 1234

 

# Edit http.conf
vi /usr/local/etc/asterisk/http.conf
[general]
enabled=yes
enablestatic=yes
bindport=8088

 

# Create the moh directory
mkdir /var/lib/asterisk/moh

 

# Edit rc.conf
vi /etc/rc.conf
zaptel_enable="YES"

 

# Edit zaptel.conf
vi /usr/local/etc/zaptel.conf
fxsks = 1
loadzone = us
defaultzone = us

 

# Start zaptel
kldload /usr/local/lib/zaptel/zaptel.ko
kldstat
/usr/local/etc/rc.d/zaptel start
ztcfg
ztcfg -vv

 

# Edit /etc/hosts and setup for your machine's name and IP addressing
vi /etc/hosts
::1 localhost asterisk.thewilsonhouse.netjunkies.net
127.0.0.1 localhost asterisk.thewilsonhouse.netjunkies.net
172.28.0.15 asterisk.thewilsonhouse.netjunkies.net
147.135.0.128 sip.broadvoice.com

 

# Start Asterisk
asterisk -vc

 

# Run through a first time web installation
http://172.28.0.15:8088/asterisk/static/config/setup/install.html
User: admin / Pass: 1234

 

# Learn to navigate the basic web interface
http://172.28.0.15:8088/asterisk/static/config/cfgbasic.html
User: admin / Pass: 1234

 

Add some users (SIP Phone) extensions:

 

Add some trunks to connect your system to other systems:

 

 

 

 

Get a commercial SIP Trunk and real world DID phone number

# Get a BYOD (Bring Your Own Device) account at BroadVoice:
http://www.broadvoice.com
Sign up for a BOYD account of your choosing!

 

Log in to your Boadvoice account:

 

Get your BOYD SIP username / password:

 

Log into your Asterisk GUI and create a Broadvoice trunk:

 

Fill in Advaned Settings for this trunk:

 

Add some Calling Rules:

 

Add some Incoming Calls rules:

 

Add a Ring Group for your Broadvoice account:

 

# Change to Asterisk directory
cd /usr/local/etc/asterisk/

# Edit the users.conf
vi users.conf
[trunk_2]
allow = all
context = DID_trunk_2
dialformat = ${EXTEN:1}
hasexten = no
hasiax = no
hassip = yes
host = sip.broadvoice.com
port = 5060
registeriax = no
registersip = yes
register => 3023071611@sip.broadvoice.com:SeCrEtPaSsWoRdHeRe:3023071611@proxy.nyc.broadvoice.com/202
secret = SeCrEtPaSsWoRdHeRe
trunkname = Custom - Broadvoice
trunkstyle = customvoip
username = 3023071611
type = peer
user = phone
fromdomain = sip.broadvoice.com
fromuser = 3023071611
insecure = port,invite
authname = 3023071611
dtmfmode = inband
dtmf = inband
nat = yes
canreinvite = no
callerid = 3023071611

 

# Edit the sip.conf
vi sip.conf
bindport=5060
bindaddr=172.28.0.15
pedantic=no
dtmfmode = rfc2833
rtpkeepalive=1
localnet=172.28.0.0/24
nat=yes

 

# Edit extensions.conf add this to the existing default section
vi extensions.conf
[default]
exten => _1NXXNXXXXXX, 1, dial(SIP/${EXTEN}@sip.broadvoice.com,30)
exten => _1NXXNXXXXXX, 2, congestion()
exten => _1NXXNXXXXXX, 102, busy()
 

# Start Asterisk
asterisk -vc

 

# Make some test calls

 

 

astGUIclient and the VICI Dialer

###########################################################
# astGUIclient
# http://astguiclient.sourceforge.net/scratch_install.html
#
mkdir /usr/src/astguiclient
cd /usr/src/astguiclient
fetch http://internap.dl.sourceforge.net/sourceforge/astguiclient/astguiclient_2.0.3.zip
unzip astguiclient_2.0.3.zip
perl install.pl

cd /var/lib/asterisk/sounds
wget http://www.freedomphones.net/conf.gsm
cp conf.gsm park.gsm

# Create the MySQL database:
/opt/mysql/bin/mysqladmin --user=root -p create asterisk /opt/mysql/bin/mysql --user=root -p asterisk < /usr/src/astguiclient/extras/MySQL_AST_CREATE_tables.sql

/opt/mysql/bin/mysql --user=root -p mysql GRANT ALL ON asterisk.* TO cron@localhost IDENTIFIED BY '1234'; GRANT ALL ON asterisk.* TO cron@"%" IDENTIFIED BY '1234'; flush privileges; exit

insert into servers (server_id,server_description,server_ip,active,asterisk_version)values('TESTasterisk','Test install of Asterisk server','172.28.0.15','Y','1.2.17');

insert into server_updater values('172.28.0.15','');

insert into phones (extension, dialplan_number, voicemail_id, phone_ip, computer_ip, server_ip, login, pass, status, active, phone_type, fullname, company,

picture, messages, old_messages, protocol) values('gs102','102','102','10.10.10.16','10.10.9.16','172.28.0.15','gs102','test', 'ADMIN','Y','Grandstream BT 102','Test Admin Phone','TEST','','0','0','SIP');

insert into vicidial_users (user,pass,full_name,user_level,user_group,load_leads,campaign_detail,ast_admin_access,modify_users)

values('6666','1234','Admin','9','ADMIN','1','1','1','1');

insert into conferences values('8600001','172.28.0.15','');
insert into conferences values('8600002','172.28.0.15','');
insert into conferences values('8600003','172.28.0.15','');
insert into conferences values('8600004','172.28.0.15','');
insert into conferences values('8600005','172.28.0.15','');
insert into conferences values('8600006','172.28.0.15','');
insert into conferences values('8600007','172.28.0.15','');
insert into conferences values('8600008','172.28.0.15','');
insert into conferences values('8600009','172.28.0.15','');
insert into conferences values('8600010','172.28.0.15','');
insert into conferences values('8600011','172.28.0.15','');
insert into conferences values('8600012','172.28.0.15','');
insert into conferences values('8600013','172.28.0.15','');
insert into conferences values('8600014','172.28.0.15','');
insert into conferences values('8600015','172.28.0.15','');
insert into conferences values('8600016','172.28.0.15','');
insert into conferences values('8600017','172.28.0.15','');
insert into conferences values('8600018','172.28.0.15','');
insert into conferences values('8600019','172.28.0.15','');
insert into conferences values('8600020','172.28.0.15','');
insert into conferences values('8600021','172.28.0.15','');
insert into conferences values('8600022','172.28.0.15','');
insert into conferences values('8600023','172.28.0.15','');
insert into conferences values('8600024','172.28.0.15','');
insert into conferences values('8600025','172.28.0.15','');
insert into conferences values('8600026','172.28.0.15','');
insert into conferences values('8600027','172.28.0.15','');
insert into conferences values('8600028','172.28.0.15','');
insert into conferences values('8600029','172.28.0.15','');

/usr/share/astguiclient/ADMIN_area_code_populate.pl

http://172.28.0.15/vicidial/admin.php
User: 6666
Pass: 1234

 

Super minimal Asterisk configuration needed to get two (2) SIP soft phones like X-Lite running quickly

vi /usr/local/etc/asterisk/sip.conf
[201]
type=friend
user=201
secret=201
context=mytest
host=dynamic
[202]
type=friend
user=202
secret=202
context=mytest
host=dynamic


vi /usr/local/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=yes
[globals]
XLITE=SIP/201
[mytest]
exten => _2XX,1,Dial(SIP/${EXTEN})

 

Proof of concept - Writing values to a MySQL database via DTMF menu choices "Press 1 if you like Pepsi"

exten => 1,n,MYSQL(Connect connid 127.0.0.1 root passw0rd results)
exten => 1,n,MYSQL(Query resultid ${connid} UPDATE\ drinks\ set\ pepsi=\'yes\')

Of course you need to have the database and fields created setup before hand.

Command Notes: http://www.voip-info.org/wiki/index.php?page=Asterisk+-+documentation+of+application+commands

 

The FreePBX Web Interface (as seen in Trixbox) FAILS to install or run on FreeBSD 6.2!

Do NOT believe what you read here: http://www.freepbx.org/support/documentation/installation/install-process-for-freebsd

Here are my failed install attempt notes:
# Download FreePBX
cd /usr/src
fetch http://easynews.dl.sourceforge.net/sourceforge/amportal/freepbx-2.3.1.tar.gz
tar xvf freepbx-2.3.1.tar.gz
cd freepbx-?.?.?

# Create databases
/opt/mysql/bin/mysqladmin --user=root -p create asteriskcdrdb
/opt/mysql/bin/mysqladmin --user=root -p create asterisk

# Import table structures
/opt/mysql/bin/mysql --user=root -p asteriskcdrdb < /usr/src/freepbx-?.?.?/SQL/cdr_mysql_table.sql
/opt/mysql/bin/mysql --user=root -p asterisk < /usr/src/freepbx-?.?.?/SQL/newinstall.sql

# Set db permissions
/opt/mysql/bin/mysql --user=root -p mysql
GRANT ALL ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
GRANT ALL ON asteriskcdrdb.* TO asteriskuser@"%" IDENTIFIED BY 'amp109';
GRANT ALL ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
GRANT ALL ON asterisk.* TO asteriskuser@"%" IDENTIFIED BY 'amp109';
flush privileges;
exit

 

# Using phpMyAdmin on the asterisk database
CREATE TABLE `cdr` (
`calldate` datetime NOT NULL default '0000-00-00 00:00:00',
`clid` varchar(80) NOT NULL default '',
`src` varchar(80) NOT NULL default '',
`dst` varchar(80) NOT NULL default '',
`dcontext` varchar(80) NOT NULL default '',
`channel` varchar(80) NOT NULL default '',
`dstchannel` varchar(80) NOT NULL default '',
`lastapp` varchar(80) NOT NULL default '',
`lastdata` varchar(80) NOT NULL default '',
`duration` int(11) NOT NULL default '0',
`billsec` int(11) NOT NULL default '0',
`disposition` varchar(45) NOT NULL default '',
`amaflags` int(11) NOT NULL default '0',
`accountcode` varchar(20) NOT NULL default '',
`userfield` varchar(255) NOT NULL default ''
);

ALTER TABLE `cdr` ADD INDEX ( `calldate` );
ALTER TABLE `cdr` ADD INDEX ( `dst` );
ALTER TABLE `cdr` ADD INDEX ( `accountcode` );

# Add a default user
/opt/mysql/bin/mysql --user=root -p mysql
GRANT ALL ON asterisk.* TO asterisk@localhost IDENTIFIED BY 'asterisk';
flush privileges;
exit
 

# Edit
vi cdr.conf
[general]
enable=yes
batch=yes

# Edit
vi res_mysql.conf
[general]
hostname=localhost
dbhost=localhost
dbname=asterisk
dbuser=asteriskuser
dbpass=amp109
dbport=3306
dbsock=/tmp/mysql.sock
dbtable=cdr
table=cdr
password=amp109
user=asteriskuser
port=3306
sock=/tmp/mysql.sock

# Edit
vi cdr_mysql.conf
[global]
hostname=localhost
dbname=asteriskcdrdb
table=cdr
password=amp109
user=asteriskuser
port=3306
sock=/tmp/mysql.sock
userfield=1
 

# Add missing directory
mkdir /var/lib/asterisk/static-http


# Fix the installer variables
vi /usr/src/freepbx-?.?.?/install_amp
#!/usr/local/bin/php -q
$webroot = "/opt/apache/htdocs";
$ampbin_dir =
# We may need to edit more!

# Make installer executable
chmod +x /usr/src/freepbx-?.?.?/install_amp

# Try running install!
./install_amp --dbhost localhost --dbname asterisk --username asteriskuser --password amp109 --my-svn-is-correct

 

mkdir /usr/local/share/asterisk/mohmp3

chown -R www:www /opt/apache/htdocs/
chown -R asterisk:www /var/lib/asterisk/
chown -R asterisk:www /etc/asterisk/
chown -R asterisk:www /etc/amportal.conf
chown -R asterisk:www /usr/local/share/asterisk/mohmp3
chmod -R 770 /var/lib/asterisk/
chmod -R 775 /etc/asterisk/
chmod -R 770 /etc/amportal.conf
chown -R asterisk:www /usr/local/etc/asterisk/
chmod a+r /usr/local/etc/asterisk/*
chmod a+w /usr/local/etc/asterisk/*
chown -R asterisk:www /var/lib/asterisk/bin/
chown -R asterisk:www /usr/local/etc/asterisk/
chown -R asterisk:www /var/lib/asterisk/bin/

 

vi /var/lib/asterisk/bin/bounce_op.sh

/opt/apache/htdocs/panel/safe_opserver &

vi /usr/local/etc/asterisk/extensions_additional.conf
[from-internal]
exten => _2XX,1,Dial(SIP/${EXTEN})

조회 수 :
64576
등록일 :
2012.01.06
01:15:06 (*.160.42.233)
엮인글 :
http://webs.co.kr/index.php?document_srl=682&act=trackback&key=689
게시글 주소 :
http://webs.co.kr/index.php?document_srl=682
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
162 Using SIP Devices behind NAT OPensip Asterisk IPPhone SIP Telephony file admin 2013-03-31 87887
161 OpenSIPS vs Asterisk admin 2013-04-06 82658
160 What is new in 1.8.0 opensip admin 2012-05-21 68010
» Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 2012-01-06 64576
158 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 2011-12-23 60546
157 SIP 트래픽 생성 테스트 툴 admin 2011-12-23 57807
156 telepresence: Open Source SIP Telepresence/MCU admin 2014-03-12 56389
155 Installation and configuration process record opensips opensips-cp admin 2014-08-13 48330
154 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 2013-04-06 45548
153 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 2014-08-11 45398
152 SIP PBX - OpenSIPS and Asterisk configuration admin 2014-03-12 42321
151 My new toy: Bluebox-ng admin 2013-04-06 41549
150 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 2014-03-07 40647
149 Installation and configuration process record opensips 1.9.1 admin 2014-08-09 36677
148 MediaProxy Installation Guide admin 2014-03-06 33933
147 Conference Support in Kamailio (OpenSER) admin 2014-03-12 33486
146 Kamailo OpenSIPs installation on Debian admin 2014-03-09 32027
145 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 2013-04-06 31442
144 Opensips_1.9 install guide this is great I like this admin 2014-03-04 30747
143 OpenH323 Gatekeeper - The GNU Gatekeeper admin 2011-12-14 30693
142 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 2014-04-05 30600
141 Asterisk Installation Asterisk Realtime configuration admin 2013-04-06 28580
140 The SIP Router Project admin 2013-04-06 27344
139 rfc5766-turn-server admin 2013-03-21 26325
138 A2Billing and OpenSIPS admin 2014-03-04 25685
137 Video conference server OpenMCU-ru - Introduction admin 2014-04-01 25680
136 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 2013-09-11 25624
135 Welcome to the Smartvox Knowledgebase admin 2013-04-06 25356
134 Kamailio :: A Quick Introduction admin 2013-04-06 25115
133 The FreeRADIUS Project admin 2011-12-14 25097