2014年12月7日 星期日

Raspbian install Asterisk 13

Asterisk 13 安裝,可用在Raspberry PI 和Lamobo M1(Banana PI),OS 用 Raspbian

apt-get install gcc make perl
apt-get install libxml2 libxml2-dev
apt-get install speex libspeexdsp-dev libspeex-dev
apt-get install ncurses-dev
apt-get install bison
apt-get install openssl
apt-get install libssl-dev
apt-get install sqlite3 libsqlite3-dev
apt-get install libncurses5-dev subversion git-core
apt-get install libjansson-dev
apt-get install uuid-dev
apt-get install build-essential libsrtp0-dev

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar zxvf asterisk-13-current.tar.gz
asterisk-13.0.1
./configure
make menuselect
make
make install
make samples
make config

簡單的dialplan
cd /etc/asterisk
vi extensions.conf 加在最後面
[mycontext]
exten => _2XXX,1,Answer()
exten => _2XXX,n,NoOP(exten=${EXTEN})
exten => _2XXX,n,Dial(SIP/${EXTEN})
exten => _2XXX,n,Hangup

vi sip.conf 加在最後面
[2001]
type = friend
context=mycontext
callerid = User One <2001>
secret = secret12345
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 2001
disallow = all
allow = ulaw,speex,ilbc
transport = udp

[2002]
type = friend
context=mycontext
callerid = User Two <2002>
secret = secret12345
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 2002
disallow = all
allow = ulaw,speex,ilbc
transport = udp

2014年3月13日 星期四

Android sip phone apps

SipDroid
CSipSimple
Lumicall 有支援G.729
Linphone