https://github.com/paxha/laravel-asterisk
Laravel Asterisk provides a Docker powered local development experience for Asterisk in Laravel that is compatible with macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Laravel Asterisk.
https://github.com/paxha/laravel-asterisk
asterisk asterisk-development asterisk-laravel laravel-asterisk
Last synced: 5 months ago
JSON representation
Laravel Asterisk provides a Docker powered local development experience for Asterisk in Laravel that is compatible with macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Laravel Asterisk.
- Host: GitHub
- URL: https://github.com/paxha/laravel-asterisk
- Owner: paxha
- License: mit
- Created: 2022-03-21T11:48:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T10:29:15.000Z (about 4 years ago)
- Last Synced: 2025-08-02T09:39:04.739Z (11 months ago)
- Topics: asterisk, asterisk-development, asterisk-laravel, laravel-asterisk
- Language: PHP
- Homepage:
- Size: 265 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Introduction
Laravel Asterisk provides a Docker powered local development experience for Asterisk in Laravel that is compatible with
macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local
computer before using Laravel Asterisk.
> **Note:** This package is considering you are using `sail` or `docker`.
## Installation
```shell
composer require paxha/laravel-asterisk
```
## Configuration
You have to simply add a service in `docker-compose.yml`.
```
# For more information: https://laravel.com/docs/sail
version: '3'
services:
# ...
asterisk:
build:
context: ./vendor/paxha/laravel-asterisk/runtimes
dockerfile: Dockerfile
args:
MYSQL_PORT: '${FORWARD_DB_PORT:-3306}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
image: laravel-asterisk:latest
ports:
- '${SIP_PORT:-5060}:5060/udp'
- '${IAX_PORT:-4569}:4569/udp'
volumes:
- './vendor/paxha/laravel-asterisk/config:/etc/asterisk'
networks:
- sail
depends_on:
- mysql
networks:
sail:
driver: bridge
```
And then
```shell
sail up -d
```
To publish the asterisk configuration for i.e. `/etc/asterisk`
```shell
sail artisan asterisk:install
```
You will see the directory for asterisk configurations and modify according to your requirement.
```
asterisk
│
└───config
│ asterisk.conf
│ modules.conf
│ res_odbc.conf
│ ...
```
## License
Laravel Asterisk is open-sourced software licensed under the [MIT license](LICENSE.md).