Git Product home page Git Product logo

hello.asterisk's Introduction

Hello Word Asterisk using Docker

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

Install dependencies

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

Install Jansson

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

Install Asterisk 20

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

Debug 3 - Verbose

vim /etc/asterisk/asterisk.conf

asterisk -gvvvvvvvvvvvvvvvvvvvvvvvv

rasterisk

core set verbose 3

Criar ramais - /etc/asterisk/pjsip.conf

[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

Regra - /etc/asterisk/extensions.conf

[test-callface]
exten => _XXXX,1,Dial(PJSIP/${EXTEN})
exten => _XXXX,n,Hangup()

Stop and delete Container

docker container stop helloasterisk && docker container rm helloasterisk
docker container stop helloasterisk && docker container rm helloasterisk && git pull

Complete command to upload Linux

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

hello.asterisk's People

Contributors

felipemerenciooficial avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.