[VoIP] MP#PLAYER App

Shane Young voiptandem at shaneyoung.com
Wed Mar 14 07:47:33 CST 2007


It's possible it doesn't have a "default" location:

Titan*CLI> show application MP3Player
Titan*CLI>
   -= Info about application 'MP3Player' =-

[Synopsis]
Play an MP3 file or stream

[Description]
   MP3Player(location) Executes mpg123 to play the given location,
which typically would be a filename or a URL. User can exit by pressing
any key on the dialpad, or by hanging up.








Quoting Lee Spenadel <lee at spenadel.com>:

> That's true for music-on-hold uses.  However, this doesn't work if you just
> want to play an MP3 outside of MOH, which is what I'm trying to do.
>
> exten => ${OFFICECODE}extension
> number,n,MP3PLAYER,/var/lib/asterisk/mohmp3/Peace-Train.mp3   - this works
>
> exten => ${OFFICECODE}extension number,n,MP3PLAYER,Peace-Train.mp3  - this
> does not work.
>
> So I'm thinking that the MP3PLAYER application has its own default directory
> for music files.
>
> Lee
>
>
>
> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
> John Novack
> Sent: Wednesday, March 14, 2007 9:10 AM
> To: Voice Over IP Tandem for Analog Switches
> Subject: Re: [VoIP] MP#PLAYER App
>
> In the 1.2 versions of asterisk, it is specified in musiconhold.conf
> directory=/var/lib/asterisk/mohmp3
> Additional details need to be supplied when using a stream
>
> 1.4 appears to be different
>
> John Novack
>
> Lee Spenadel wrote:
>> Does anyone know what the "default" directory for the MP3PLAYER
> application
>> is?  In order for a mp3 to play I have to specify the path to the tune
>> rather than placing the tune in the appropriate directory.  This is part
> of
>> the mpg123 installation.
>>
>>
>>
>> Thanks
>>
>> Lee
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> If your car could travel at the speed of light, would your headlights
> work?
>>
>>
>>
>> _______________________________________________
>> VoIP mailing list
>> VoIP at ckts.info
>> http://lists.ckts.info/mailman/listinfo/voip
>> Project Web Page: http://www.ckts.info/
>>
>>
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>

--Shane
+1-821-7311 CNET




More information about the VoIP mailing list