This is mostly for my kernel blog, but I feel occasionally some non-kernel work are good to be here too :-). After long-waiting, finally My first Asterisk patch got accepted:
License accepted! This looks like it could be useful :)
Don't forget to update the documentation either. If it is not already in XML format, that would also be an ideal change, but for now, you will need to update the docs in the code so that people at least know you can either pass it a file, or a playlist filename.
I added some documentation in XML format, second patch app_mp3.diff uploaded
I will add note here describing how to play m3u playlist file :-)
dialplan will look like this:
exten => 1234,1,Answer()
exten => 1234,n,MP3Player(/var/lib/asterisk/mp3/playlist.m3u)
and the playlist.m3u will be like this:
It is easy to generate mp3 playlist file with .m3u, do the following:
find /path/to/your-mp3-file -type file *.mp3 > playlist.m3u
the second patch seems have one single long line, I uploaded third patch app_mp3.diff1 to comform to code guide line :-)
This is a new feature, so it can only go into trunk, but I'm marking this as targeted for 188.8.131.52 in the hopes we can get it merged in sooner rather than later. I will also set the status to Ready for Testing in the hopes we can get some other testers. Thanks!
macli, I don't understand some of your changes. I uploaded a patch that strips out some some of the stuff that didn't seem necessary to me. Let me know what you think. The main thing I didn't understand was why you used the argument parser for a single argument and modified the http mpg321 code. It's still your work of coarse and will be documented as such when it is committed.
Hi dvossel, I added the argument parser only for learning purpose, I do not remember exactly why I modifed mpg321 code, maybe it is related to some problem while playing some live online music list. Please go ahead using your simple solution, thanks!
r233234 | dvossel | 2009-12-04 14:27:38 -0600 (Fri, 04 Dec 2009) | 9 lines
.m3u support for Mp3Player app
(closes issue 0014823)
Reported by: macli
app_mp3.diff1 uploaded by macli (license )
Tested by: macli, dvossel