Docker image with a minimal Asterisk PBX
This repository contains a dockerized distribution of Asterisk PBX 16 for use in Fonoster. For more documentation on how Fonoster images are constructed and how to work with them, please see the documentation.
You can see all images available to pull from Docker Hub via the Tags page. Docker tag names that begin with a "change type" word such as task, bug, or feature are available for testing and may be removed at any time.
The image tag is the same of the Asterisk this is image is based on
You can clone this repository and manually build it.
cd fonoster/asterisk\:%%VERSION%%
docker build -t fonoster/asterisk:%%VERSION%% .
Otherwise you can pull this image from docker index.
docker pull fonoster/asterisk:%%VERSION%%
The following is a basic example of using this image.
docker run -it \
-p 6060:6060 \
-p 10000-10010:10000-10010 \
-e EXTERN_ADDR=${you host address} \
-e SIPPROXY_HOST=${sip proxy address} \
-e SIPPROXY_USERNAME=${username at sip proxy} \
-e SIPPROXY_SECRET=${secret at sip proxy} \
-e RTP_PORT_START=10000 \
-e RTP_PORT_END=10010 \
fonoster/asterisk
Environment variables are used in the entry point script to render configuration templates. You can specify the values of these variables during docker run
, docker-compose up
, or in Kubernetes manifests in the env
array.
ARI_PROXY_URL
- URL for ARI API. Defaults tohttp://localhost:8088
ARI_USERNAME
- Username for ARI API. RequiredARI_SECRET
- Password for ARI API. RequiredSIPPROXY_HOST
- The SIP Proxy's IP address. RequiredSIPPROXY_PORT
- The SIP Proxy's port. Defaults5060
SIPPROXY_USERNAME
- Username at SIP Proxy. RequiredSIPPROXY_SECRET
- Secret at SIP Proxy. RequiredEXTERN_ADDR
- IP address to advertise. RequiredSIP_BINDADDR
- Where to listen for SIP traffic. Defaults to0.0.0.0:6060
RTP_PORT_START
- Lower limit of the RTP port range. RequiredRTP_PORT_END
- Upper limit of the RTP port range. RequiredDTMF_MODE
- DTMF mode. Defaults toauto_info
CODECS
- Comma separated list of codecs. Defaults toulaw,alaw,gsm,g722
HTTP_BINDADDR
- Where to listen for HTTP traffic. Defaults to0.0.0.0
6060
- Default SIP port
No volumes are exposed.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
Copyright (C) 2023 by Fonoster Inc. MIT License (see LICENSE for details).