Asterisk configuration & scripts
Go to file
mpmc 444a15568f [uk_user_out] add outbound number matching 2024-02-24 23:00:06 +00:00
.gitignore Initial commit 2024-02-10 23:57:07 +00:00
LICENSE Initial commit 2024-02-10 23:57:07 +00:00
README.md A good starting configuration. 2024-02-12 22:02:11 +00:00
asterisk.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
extensions.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
extensions_uk.conf [uk_user_out] add outbound number matching 2024-02-24 23:00:06 +00:00
fix_permissions.sh A good starting configuration. 2024-02-12 22:02:11 +00:00
indications.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
logger.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
modules.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
pjsip.conf add generic user_agent 2024-02-13 00:00:29 +00:00
pjsip_wizard.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
pjsip_wizard_uk.conf rename lastcall database variable & shorten some text 2024-02-21 15:57:00 +00:00
pjsip_wizard_uk_user_1000.conf add uk extensions, user and voicemail 2024-02-13 00:18:01 +00:00
res_stun_monitor.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
rtp.conf A good starting configuration. 2024-02-12 22:02:11 +00:00
voicemail.conf add uk extensions, user and voicemail 2024-02-13 00:18:01 +00:00
voicemail_uk.conf correct tryinclude 2024-02-13 00:20:05 +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

I have remade this repository many times in a vain attempt to keep it neat and tidy but I've realised that just having the configuration files as they appear on the filesystem is the most sane option. Is it the best option? No way, but it does mean you can now just git clone this repo into your /etc/asterisk directory.

So 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

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 ./* ../asterisk_backup

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

# 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.