AEMP makes it easy to add music to your PBX.
EXT,X - choose track
# - ff
* - rew
0 - pause
1 - restart
2 - vol-down
3 - vol-up
5 - trk-previous
6 - trk-next
4 - tgl-repeat
7 - tgl-playlist
9 - menu
A playlist is a group of consecutively numbered tracks. Example: [1,2,3,4] [6,7,8,9]
This section instructs you on preparing your PBX to add music. You will only need to follow this once.
- FTP into your PBX.
- Under
/var/lib/asterisk/sounds/
create a directory namedmusic
. - In your PBX admin navigate to Admin > Config Edit, then copy the contents of
main.conf
intoextensions_custom.conf
. Remember to save.
- Create a custom destination with the target set to
music,menu,1
. Alternatively you can put a track number instead ofmenu
. - Create a virtual extension.
- Under Advanced > Optional Destinations set Not Reachable to the custom destination you created.
- Save & Apply Config. Then add your music tracks.
- FTP into your PBX.
- Copy
main.conf
into/etc/asterisk/vitalpbx/
then rename it toextensions__90-music.conf
. - Under
/var/lib/asterisk/sounds/
create a directory namedmusic
. - Create a Custom Context with the destination set to hangup. Alternatively you can put a track number instead of
menu
. - Create a Custom Application with the destination set to your Custom Context.
- Save & Apply Config. Then add your music tracks.
This section instructs you on adding music tracks. You will need to repeat these steps every time you add a new music to your PBX.
- Convert your music using the provided conversion script.
- Prepend the track names with a unique track number like followed by a period. Example:
1. Track A.wav 2. Track B.wav 3. Track C.wav
- FTP into your PBX, then copy your named and converted tracks into
/var/lib/asterisk/sounds/music/
. - You can now dial the music app extension then enter a track number.
For the best experience you will want to enable connected line. This will allow the track name will show up (assuming your softphone supports such functionality.)