Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt_external_moh_source [2014/02/18 08:22] droemel [Internet Streaming] |
userdoc:tt_external_moh_source [2014/02/19 06:44] abelbeck [Internet Streaming] |
||
---|---|---|---|
Line 85: | Line 85: | ||
===== Internet Streaming ===== | ===== Internet Streaming ===== | ||
- | You can also easily stream music over the Internet/ | + | You can also easily stream music over the Internet/ |
+ | |||
+ | Create file: ''/ | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | # Set VOLUME variable to linearly multiply the volume by a number. | ||
+ | # Value: " | ||
+ | VOLUME=" | ||
+ | |||
+ | URL=" | ||
+ | if [ " | ||
+ | PLAYLIST=" | ||
+ | if [ $? -ne 0 ]; then | ||
+ | sleep 10 | ||
+ | exit 1 | ||
+ | fi | ||
+ | URL=" | ||
+ | if [ -z " | ||
+ | sleep 10 | ||
+ | exit 1 | ||
+ | fi | ||
+ | fi | ||
+ | |||
+ | if [ -n " | ||
+ | FOPTS=" | ||
+ | else | ||
+ | FOPTS="" | ||
+ | fi | ||
+ | |||
+ | wget -q -O - $URL | sox -t mp3 $FOPTS - -t raw -r 8000 -c 1 - | ||
+ | |||
+ | Make the "''/ | ||
+ | |||
+ | chmod 755 / | ||
+ | |||
+ | Edit the Asterisk configuration file "''/ | ||
- | musiconhold.conf: | ||
[internet-stream] | [internet-stream] | ||
mode=custom | mode=custom | ||
- | application=/ | + | application=/ |
- | / | + | !!Note |
- | | + | |
- | | + | Reload the Asterisk MoH module: |
- | | + | |
+ | | ||
+ | | ||
+ | |||
+ | !!Tip ->!! Never edit the '' | ||