[asterisk-app-dev] ARI remote media playback

Marcelo Garay mgaray at quantumlogix.com
Tue Oct 15 16:17:28 CDT 2019


Never mind, I missed this line from the documentation: You can also use
specify a media file which is consumed via HTTP (e.g
sound:http://foo.com/sound.wav)

 

I'm getting the following error when playing the mp3 file, probably because
when I convert the recording wav file generated by Asterisk to mp3 I'm using
the wrong wave format. Does anybody know the mp3 specs required by Asterisk?

 

[Oct 15 17:01:38] WARNING[2686][C-00000004]: mp3/interface.c:218 decodeMP3:
Junk at the beginning of frame 52494646

[Oct 15 17:01:38] WARNING[2686][C-00000004]: mp3/common.c:135 decode_header:
Layer 1 not supported!

 

From: asterisk-app-dev [mailto:asterisk-app-dev-bounces at lists.digium.com] On
Behalf Of Marcelo Garay
Sent: Tuesday, October 15, 2019 4:14 PM
To: asterisk-app-dev at lists.digium.com
Subject: [asterisk-app-dev] ARI remote media playback

 

Hello,

 

I'm trying to play a file from a remote server using ARI (ex:
http://myserver.com/file.wav) but it looks like is not supported? Is this
correct?

 

play: POST /channels/{channelId}/play

Start playback of media. The media URI may be any of a number of URI's.
Currently sound:, recording:, number:, digits:, characters:, and tone: URI's
are supported. This operation creates a playback resource that can be used
to control the playback of media (pause, rewind, fast forward, etc.)

Path parameters

Parameters are case-sensitive.

*         channelId: string - Channel's id

Query parameters

*         media: string - (required) Media URIs to play.

*         Allows comma separated values.

*         lang: string - For sounds, selects language for sound.

*         offsetms: int - Number of milliseconds to skip before playing.
Only applies to the first URI if multiple media URIs are specified.

*         skipms: int - Number of milliseconds to skip for forward/reverse
operations.

*         Default: 3000

*         playbackId: string - Playback ID.

 

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20191015/a8e38855/attachment.html>


More information about the asterisk-app-dev mailing list