{"id":16815854,"url":"https://github.com/chadxz/asterisk-playground","last_synced_at":"2025-04-11T02:11:22.084Z","repository":{"id":11278447,"uuid":"69048828","full_name":"chadxz/asterisk-playground","owner":"chadxz","description":"A sandbox to tinker with Asterisk and its many interfaces","archived":false,"fork":false,"pushed_at":"2023-01-06T01:31:35.000Z","size":431,"stargazers_count":8,"open_issues_count":11,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T02:11:19.350Z","etag":null,"topics":["ansible","asterisk","javascript","nodejs","vagrant"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chadxz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-23T18:02:10.000Z","updated_at":"2021-01-08T20:23:54.000Z","dependencies_parsed_at":"2023-01-11T18:04:28.764Z","dependency_job_id":null,"html_url":"https://github.com/chadxz/asterisk-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadxz%2Fasterisk-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadxz%2Fasterisk-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadxz%2Fasterisk-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadxz%2Fasterisk-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chadxz","download_url":"https://codeload.github.com/chadxz/asterisk-playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328160,"owners_count":21085261,"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","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":["ansible","asterisk","javascript","nodejs","vagrant"],"created_at":"2024-10-13T10:35:41.414Z","updated_at":"2025-04-11T02:11:22.060Z","avatar_url":"https://github.com/chadxz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asterisk-playground\n\nVagrant + Ansible scripts for setting up an Asterisk instance on a ubuntu/xenial\nvirtual machine. Comes with Dockerized Asterisk and a Node.js AGI + ARI app.\n\n-----\n\n### pre-reqs\n\nThings you'll need locally for Ansible\n\n- An [ssh key](https://help.github.com/articles/generating-an-ssh-key/)\n- [Python 3](https://www.python.org/downloads/) installed. On Mac I use [homebrew](https://brew.sh/).\n- [pipx](https://github.com/pipxproject/pipx) installed. On Mac I use [homebrew](https://brew.sh/).\n- [virtualenv](https://virtualenv.pypa.io/en/latest/installation.html) installed. Using pipx above.\n\n- Ensure you have an [ssh key](https://help.github.com/articles/generating-an-ssh-key/)\n\n- Ensure you have Python 2.7.x installed. (Installed by default on OSX)\n\n- Ensure you have homebrew installed.\n\n    ```/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"```\n\n- Install Python pip package manager.\n\n    ```easy_install pip```\n\n- Use pip to install Ansible.\n\n    ```pip install ansible```\n\n- Install virtualbox and vagrant.\n\n    ```brew cask install virtualbox vagrant```\n\n- Start the virtual machine with `vagrant up`\n\n### deploying the system\n\nTo setup the vm from scratch:\n\n```\n$ make\n```\n\nOnce deployed to, you can ssh into it:\n\n```\n$ ssh 192.168.68.68\n```\n\nTo upgrade the asterisk box or agi+ari application:\n\n```\n$ make deploy\n```\n\n### accessing the system\n\nOnce deployed, a few services will be available on the vm:\n\n- cAdvisor will be running, providing monitoring for the system and\ncontainers. Access this at\n[http://192.168.68.68:8080/containers/](http://192.168.68.68:8080/containers/)\n\n- SwaggerUi will be running at\n[http://192.168.68.68:1337](http://192.168.68.68:1337) pointing at Asterisk.\n\n- Asterisk will be running. Point a sip client at 192.168.68.68 using the\ncredentials from [asterisk/conf/pjsip.conf](asterisk/conf/pjsip.conf).\n\n- The 'call-control' node app will be running, but it only interacts with Asterisk\nand exposes no public facing ui.\n\n- To view logs of any application, ssh into the box with `vagrant ssh playground`\nand use `docker ps` to view the container statuses and `docker logs \u003ccontainer name\u003e`\nto view logs of any individual container. For Asterisk, you can access the console\nusing the command `docker exec -ti asterisk asterisk -c`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadxz%2Fasterisk-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadxz%2Fasterisk-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadxz%2Fasterisk-playground/lists"}