Get /sounds API

Hey,

Im trying to run this request but nothing coming, shouldn’t it show the list of the sound files by default?

module reload sounds dose not exits as per wiki

and

What the different between sound and playback ?

My regards

The GET shows you a list. What version of Asterisk? How was it installed? As for the difference if you want to actually play a sound on a channel or bridge you use play.

  • 16cetifc

  • source code

btw , when I try to module load sounds it told me its already loaded .

about the difference, are you telling me that /sound for channel and /playback for bridge?

Neither. Channels and bridges each have their own play[1][2]. The GET doesn’t play anything, it merely lists all the sounds on the system. In practice it is probably not needed.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Channels+REST+API#Asterisk17ChannelsRESTAPI-play
[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Bridges+REST+API#Asterisk17BridgesRESTAPI-play

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.