{"id":21044951,"url":"https://github.com/opusvl/asterisk-docker","last_synced_at":"2025-09-03T23:39:55.732Z","repository":{"id":148071713,"uuid":"247092115","full_name":"OpusVL/asterisk-docker","owner":"OpusVL","description":"Docker multi-stage build of Asterisk 17 PBX","archived":false,"fork":false,"pushed_at":"2020-04-15T17:34:51.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T22:11:39.139Z","etag":null,"topics":["asterisk","asterisk-pbx","dockerfile"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpusVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-13T14:37:00.000Z","updated_at":"2020-05-05T06:24:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"970a489b-a82a-4b3c-896d-e16d328918c2","html_url":"https://github.com/OpusVL/asterisk-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpusVL/asterisk-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fasterisk-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fasterisk-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fasterisk-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fasterisk-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpusVL","download_url":"https://codeload.github.com/OpusVL/asterisk-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fasterisk-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273529044,"owners_count":25121822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asterisk","asterisk-pbx","dockerfile"],"created_at":"2024-11-19T14:19:15.147Z","updated_at":"2025-09-03T23:39:55.696Z","avatar_url":"https://github.com/OpusVL.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asterisk 17 PBX\n\nUses `debian:buster-slim` because `uuid-dev` is not available in Alpine.\n\nBuilds Asterisk 17 from git master.\n\nMulti-stage Dockerfile uses build-essential and git to clone from the git repository https://github.com/asterisk/asterisk.git\n\nFirst stage installs the prerequisites and builds Asterisk from source. Second stage copies the compiled assets from the first, sets up the asterisk user and sets permissions.\n\n\u003e Includes the Festival Text-To-Speach Server and LDAP support.\n\n\u003e Now with opus codec from https://downloads.digium.com/pub/telephony/codec_opus/ and with res_rtsp as it was missing from earlier builds because of a non-included `librtsp2-dev`.\n\n`/etc/asterisk` is populated with the config samples from `make samples`. Mount your own folder to overwrite the samples.\n\n## Build\n\n```shell\n$ docker build -t opusvl/asterisk:latest .\n```\n\n## Usage\n\n```shell\n$ docker run -v ${PWD}/etc/asterisk/:/etc/asterisk:rw ${PWD}/log/:/var/log/asterisk:rw opusvl/asterisk bash\n```\n\n### docker-compose.yml\n\n__Note:__ Use `network_mode: \"host\"` as the RTP service requires a large port range and it takes a long time to setup thousands of iptable rules if it uses a docker network.\n\n```yaml\nversion: '3'\n\nservices:\n  asterisk:\n    image: opusvl/asterisk:latest\n    volumes:\n      - \"${PWD}/etc/asterisk/:/etc/asterisk:rw\"\n      - \"${PWD}/log:/var/log/asterisk:rw\"\n    network_mode: \"host\"\n    ports:\n      - \"1314\"\n      - \"5060:5060/tcp\"\n      - \"5060:5060/udp\"\n      - \"5038:5038\"\n      - \"8088:8088\"\n      - \"10000-20000:10000-20000/udp\"\n```\n\n## LDAP Support\n\nYou will need to import the [`asterisk.ldif`](asterisk.ldif) schema into your LDAP configuration. This is an olc format file, if you need the older schema format you'll find it in the link below.\n\nFull details are here: [Asterisk LDAP Integration](http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html)\n\n## ODBC and PostgreSQL Support\n\nNow build with ODBC and the postgresql-client to enble the use of real-time databases.\n\n## Festival TTS\n\nFestival is a default install listening on TCP port 1314 - but does not need to be exposed.\n\n## Supervisor\n\nSupervisor is used to start the two programs (festival and asterisk) within the container. The supervisor configuration is included as [`asterisk.conf`](./asterisk.conf)\n\nMinor change to the asterisk startup to put it into non-colour console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fasterisk-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopusvl%2Fasterisk-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fasterisk-docker/lists"}