{"id":612,"date":"2012-05-01T03:26:14","date_gmt":"2012-05-01T03:26:14","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=612"},"modified":"2012-05-01T03:26:14","modified_gmt":"2012-05-01T03:26:14","slug":"get-asterisk-music-on-hold-live-from-an-icecastices2-server","status":"publish","type":"post","link":"\/blog\/index.php\/get-asterisk-music-on-hold-live-from-an-icecastices2-server\/","title":{"rendered":"Get asterisk music-on-hold live from an icecast+ices2 server"},"content":{"rendered":"<p>My asterisk version is 1.6.2.6<br \/>\nMy freepbx version is 2.7.0.1<br \/>\nTo get music-on-hold from a live source, i made a script (\/scripts\/streamx.ksh):<br \/>\n#!\/bin\/ksh<br \/>\n\/usr\/bin\/ogg123 -q -b 128 -p 32 -d wav -f \u2013 http:\/\/kraftek.com:8000\/stream.ogg| sox -t wav \u2013 -r 8000 -c 1 -t raw<br \/>\n&#8211; vol 0.10<br \/>\n27\/433<br \/>\nand configured \/etc\/asterisk\/musiconhold_additional.ksh with:<br \/>\n[default]<br \/>\nmode=custom<br \/>\napplication=\/scripts\/streamx.ksh<br \/>\nAnd that is it!, just dial a conference room and you\u2019ll get live music on hold while waiting for your friends to<br \/>\njoin <img decoding=\"async\" src=\"..\/wp-includes\/images\/smilies\/icon_smile.gif\" alt=\":)\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My asterisk version is 1.6.2.6 My freepbx version is 2.7.0.1 To get music-on-hold from a live source, i made a script (\/scripts\/streamx.ksh): #!\/bin\/ksh \/usr\/bin\/ogg123 -q -b 128 -p 32 -d wav -f \u2013 http:\/\/kraftek.com:8000\/stream.ogg| sox -t wav \u2013 -r 8000 -c 1 -t raw &#8211; vol 0.10 27\/433 and configured \/etc\/asterisk\/musiconhold_additional.ksh with: [default] mode=custom application=\/scripts\/streamx.ksh [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=612"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/612\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}