Re: Playback Media - Multiple Sound Files

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

 



Samuel Galarneau wrote:

    Hi again...

    I need to play back multiple sound files w/ a single call
    (channels/{channelId}/play) and using my client code and swaggerUI -
    I get back a 201 but the multiple files do not play - nothing plays.
    The format I use is:

    sound:the-party-you-are-calling,sound:is-curntly-unavail

    Thanks.


As far as I am aware, the play operation on the channels resource only
supports one media item. To accomplish what you are wanting to do you
would have to play the first sound, and then send another request to
play the second sound once you receive the PlaybackFinished event from
the first playback operation.

Actually if you are constructing a string of prompts like the above to make a coherent sentence you can actually just call play multiple times in order with each sound at the beginning. Internally it's implemented as a queue so as each one ends the next one starts until none are left.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

_______________________________________________
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