Asterisk telephone private branch exchange (PBX) docker image deployment and usage

About

The automated build docker Asterisk certified telephone private branch exchange (PBX) image “linuxconfig/asterix” can be used to instantly deploy Asterix on your docker hosts. “linuxconfig/asterix” docker image is a vanilla Asterisk Certified PBX compilation on GNU/Linux Debian 8.

Deployment

The below command example will download and create a new docker container called asterisk and bind local host’ port 5060 to container’s port 5060.

# docker run -d --name=asterisk -d -p 5060:5060  linuxconfig/asterisk

Usage

Once you deploy the asterisk docker container you can access asterisk console by using a following linux command:

# docker exec -it asterisk asterisk -cvvvvvvvv 
...
  == Registered custom function 'QUEUE_MEMBER'
  == Registered custom function 'QUEUE_MEMBER_COUNT'
  == Registered custom function 'QUEUE_MEMBER_LIST'
  == Registered custom function 'QUEUE_WAITING_COUNT'
  == Registered custom function 'QUEUE_MEMBER_PENALTY'
  == app_queue.so => (True Call Queueing)
 Loading res_manager_devicestate.so.
  == Manager registered action DeviceStateList
  == res_manager_devicestate.so => (Manager Device State Topic Forwarder)
 Loading res_manager_presencestate.so.
  == Manager registered action PresenceStateList
  == res_manager_presencestate.so => (Manager Presence State Topic Forwarder)
  == Parsing '/etc/asterisk/cli_permissions.conf': Found
  == Parsing '/etc/asterisk/cli.conf': Found
Asterisk Ready.
*CLI>