한국어

소프트스위치

온누리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})

조회 수 :
160476
등록일 :
2012.01.06
01:15:06 (*.160.42.233)
엮인글 :
http://webs.co.kr/index.php?document_srl=682&act=trackback&key=178
게시글 주소 :
http://webs.co.kr/index.php?document_srl=682
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
172 OpenSIPS Control Panel (OCP) Installation Guide admin 2014-03-06 289857
171 Opensips Gateway between SIP and SMPP messages admin 2019-02-19 274652
170 What is new in 1.8.0 opensip admin 2012-05-21 265817
169 What is new in 2.3.0 opensips admin 2017-09-04 253762
168 Using SIP Devices behind NAT OPensip Asterisk IPPhone SIP Telephony file admin 2013-03-31 238007
167 OpenSIPS vs Asterisk admin 2013-04-06 232547
166 PUSH SERVER 푸시서버 안드로이드 애플 admin 2017-09-11 217345
165 telepresence: Open Source SIP Telepresence/MCU admin 2014-03-12 195951
164 MediaProxy Installation Guide admin 2014-03-06 190949
163 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 2014-03-07 182975
162 SIP PBX - OpenSIPS and Asterisk configuration admin 2014-03-12 175068
» Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 2012-01-06 160476
160 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 2011-12-23 155103
159 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 2017-09-04 149851
158 SIP 트래픽 생성 테스트 툴 admin 2011-12-23 144432
157 opensips command /sbin/opensipsctl detail admin 2017-09-04 131244
156 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 2017-09-13 130317
155 Opensips_1.9 install guide this is great I like this admin 2014-03-04 113922
154 OpenSIPS basic configuration script 기본 컨피그 admin 2017-09-05 111475
153 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 2014-03-07 110837
152 Welcome to the Smartvox Knowledgebase admin 2013-04-06 108481
151 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 2014-08-11 107862
150 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 2013-04-06 106275
149 dictionary.opensips radius admin 2017-12-09 103011
148 OpenSIPS Control Panel install guide admin 2014-03-06 102754
147 Installation and configuration process record opensips 1.9.1 admin 2014-08-09 100686
146 in opensips what is lookup(domain [, flags [, aor]]) admin 2017-12-09 98043
145 My new toy: Bluebox-ng admin 2013-04-06 95011
144 Conference Support in Kamailio (OpenSER) admin 2014-03-12 93954
143 Kamailo OpenSIPs installation on Debian admin 2014-03-09 90143