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 08:00] droemel [Internet streaming] |
userdoc:tt_external_moh_source [2014/02/18 11:29] droemel [Internet Streaming] |
||
---|---|---|---|
Line 83: | Line 83: | ||
!!Note ->!! One " | !!Note ->!! One " | ||
- | ===== Internet | + | ===== Internet |
- | You can also easily stream music over the internet/LAN for MOH with sox: | + | You can also easily stream music over the Internet/LAN for MOH with sox: |
+ | |||
+ | Create file: ''/ | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | wget -q -O - ${1} | sox -t mp3 -v 0.8 - -t raw -r 8000 -c 1 - | ||
+ | |||
+ | Change "'' | ||
+ | |||
+ | 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 '' | ||