README.md |
Docs
asterisk
https://linuxize.com/post/how-to-install-asterisk-on-ubuntu-20-04/
sudo apt install wget build-essential git autoconf subversion pkg-config libtool
git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux
cd dahdi-linux
sudo make
sudo make install
git clone -b next git://git.asterisk.org/dahdi/tools dahdi-tools
cd dahdi-tools
sudo autoreconf -i
sudo ./configure
sudo make install
sudo make install-config
sudo dahdi_genconf modules
git clone https://gerrit.asterisk.org/libpri libpri
cd libpri
sudo make
sudo make install
proxychains4 git clone -b 1.6.2.24 https://gerrit.asterisk.org/asterisk asterisk-1.6
cd asterisk-1.6
make clean
./configure
make
make install
make samples
make config
1.6.2.24
proxychains4 git clone -b 1.6.2.24 https://gerrit.asterisk.org/asterisk asterisk-1.6
extensions.conf
[general]
static=yes
writeprotect=yes
;
[default]
#include "fgcom.inc"
include => fgcom
iax.conf
[general]
bandwidth=low
disallow=lpc10
jitterbuffer=yes
forcejitterbuffer=no
tos=lowdelay
autokill=30000
codecpriority=host
disallow=all
allow=gsm
allow=ilbc
allow=g726
language=en
maxauthreq=30
context=fgcom
minregexpire=30
maxregexpire=10800
maxexpirey=10800
defaultexpirey=10800
;
[guest]
type=user
username=guest
secret=guest
context=fgcom
qualify=yes
callerid=Guest IAX User
host=dynamic
requirecalltoken=no
;
fgcom.inc
You need the gen_phonebook.pl script (https://sourceforge.net/p/flightgear/fgcom/ci/master/tree/server/gen_phonebook.pl?format=raw) and nav.dat.gz and apt.dat.gz from the git repository.
fgcom 终端用户维护
服务器: fgcom.jingweiht.com
sudo apt-get pwgen
pwgen 32
nano /etc/asterisk/pjsip.conf
[7000](endpoint-internal-d70)
auth = 7000
aors = 7000
callerid = T0 <7000>
[7000](auth-userpass)
password = 7000
username = 7000
[7000](aor-single-reg)
mailboxes = 7000@example
DialPlan 拨号规则
nano /etc/asterisk/fgcom.conf
;telphone
exten => 7000,1,Dial(PJSIP/7000)
exten => 7777,1,Dial(PJSIP/7777)
重现加载及监视
sudo su
asterisk -vvvvvr
core reload
# pjsip reload qualify endpoint