cd /home/
git clone https://github.com/felipesmerencio/hello.asterisk.git
cd hello.asterisk
docker build -t helloasterisk:1 .
docker create --name helloasterisk -p 5060:5060/tcp -p 5060:5060/udp -p 10000-10099:10000-10099/udp helloasterisk:1
docker container start helloasterisk
docker exec -ti helloasterisk /bin/bash
dnf install gcc gcc-c++ bzip2 patch libedit-devel libuuid-devel wget autoconf automake autoconf libtool libxml2-devel sqlite-devel jansson vim openssl-devel diffutils -y
cd /home/
wget https://github.com/akheron/jansson/archive/refs/tags/v2.13.1.tar.gz
tar -zxvf v2.13.1.tar.gz
cd jansson-2.13.1
autoreconf -i
./configure
make
make install
cd /home/asterisk-21.0.0/
chmod 777 -R /home/asterisk-21.0.0/
make clean
./configure --disable-asteriskssl --libdir=/usr/lib64 --with-pjproject-bundled
make menuselect
make && make install
make samples
vim /etc/asterisk/asterisk.conf
asterisk -gvvvvvvvvvvvvvvvvvvvvvvvv
rasterisk
core set verbose 3
[8000]
type=endpoint
context=test-callface
disallow=all
allow=alaw
transport=transporte-udp-nat
auth=8000
aors=8000
direct_media=no
[8000]
type=auth
auth_type=userpass
password=qwe123
username=8000
[8000]
type=aor
max_contacts=1
;contact=sip:[email protected]:5060
[9000]
type=endpoint
context=test-callface
disallow=all
allow=alaw
transport=transporte-udp-nat
auth=9000
aors=9000
direct_media=no
[9000]
type=auth
auth_type=userpass
password=qwe123
username=9000
[9000]
type=aor
max_contacts=1
;contact=sip:[email protected]:5060
[test-callface]
exten => _XXXX,1,Dial(PJSIP/${EXTEN})
exten => _XXXX,n,Hangup()
docker container stop helloasterisk && docker container rm helloasterisk
docker container stop helloasterisk && docker container rm helloasterisk && git pull
docker build -t helloasterisk:1 . && docker create --name helloasterisk -p 5060:5060/tcp -p 5060:5060/udp -p 10000-10099:10000-10099/udp helloasterisk:1 && docker container start helloasterisk && docker exec -ti helloasterisk /bin/bash