Asterisk configuration and a few scripts
Go to file
mpmc 31bae6d4d2 add sipgate uk config 2024-03-24 12:31:58 +00:00
configs add sipgate uk config 2024-03-24 12:31:58 +00:00
.gitignore Directory moves 2024-03-18 23:50:41 +00:00
LICENSE Initial commit 2024-03-02 21:58:58 +00:00
README.md - add indications to start config 2024-03-23 10:10:56 +00:00
fix_permissions.sh more directory moves! 2024-03-23 09:29:06 +00:00

README.md

Asterisk

Asterisk configuration files and scripts.

Installing Asterisk

As of Debian 12 Bookworm, Debian no longer has packages for Asterisk :(. I'm currently using the packages built by Unit193. Big thank you!

Using this Configuration

Decide which configuration you want (see ./configs dir).

  • start: Just enough to make Asterisk start.
  • users: Users can connect on udp 63000 and call each other.
  • wip: The current work-in-progress configuration.

As a sudo user (or root)..


# After installing Asterisk (See the above Unit193 link for instructions
# on how to add the repo).

apt install git asterisk

systemctl stop asterisk

cd /etc/asterisk/

# Before you run anything else below here make sure you're in the right path!
mkdir ../asterisk_backup

mv -v ./*.conf ../asterisk_backup

# !! Be sure to notice the space and dot at the end here.
git clone https://markc.net/mpmc/asterisk.git .
#                                            ↑↑

# Copy desired configuration.
cp -vR ./.configs/start/*.conf .

# Modify then run `fix_permissions.sh` to fix permissions.
bash ./fix_permissions.sh`

You should now make your own changes as needed. Once you're happy you can then start Asterisk with your config in place. systemctl start asterisk.

Thanks

With thanks to (in random order):

Notes

As the configuration comes from various sources (links in the thanks section), my own reading of the asterisk documentation, and a lot of trial and error. There is a chance I've made a mistake or the unexpected may happen. The standard "use at your own risk applies"!

Some files are copied and just modifed from their original source. Values I have changed/added will be prefixed with a line break and a comment.


;) This comment is an example.
my_custom_option = foo

;) The below option is commented out.
;my_other_custom_option = bar

The semicolon and right bracket ;) used here is to make finding what I've changed/added easier.

Asterisk configuration files use the semicolon for comments and to default an option.

Be aware that commenting out an option doesn't always disable it. Asterisk will just use the hardcoded default instead.