Re: ARI remote media playback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx] On Behalf Of Marcelo Garay
Sent: Tuesday, October 15, 2019 4:14 PM
To: asterisk-app-dev@xxxxxxxxxxxxxxxx
Subject: 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

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux