Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_external_moh_source [2014/02/18 09:11] abelbeck [Internet Streaming] |
userdoc:tt_external_moh_source [2014/02/19 06:35] abelbeck [Internet Streaming] |
||
---|---|---|---|
Line 91: | Line 91: | ||
#!/bin/sh | #!/bin/sh | ||
| | ||
- | wget -q -O - ${1} | sox -t mp3 - -t raw -r 8000 -c 1 - | + | |
+ | # 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 | ||
Make the "''/ | Make the "''/ | ||
Line 103: | Line 127: | ||
application=/ | application=/ | ||
- | !!Note ->!! The example MP3 URL shown above is only an example, and does not imply it is legal to use for MOH in your country. | + | !!Note ->!! The example MP3 source |
Reload the Asterisk MoH module: | Reload the Asterisk MoH module: |