Question

I am using asterisk-java to integrate Asterisk with my AGI.

I want to know while using streamFile(filename) command is it necessary that the file lies in asterisk sound system.Cant it be in my java source folder?/src/resource/filename

I am creating a music IVR and I want to keep the music in my database(i.e on java server side) not on asterisk server side.

How can I paly the music? Please help.

Was it helpful?

Solution

Sound will be played by asterisk server.

So if your java server on other machine, you need copy file before plaiing to asterisk server or use network filesystem(nfs, gluster fs etc)

If your java work on same physical server, you can specify any file on that server. Just need give full path to asterisk and ensure asterisk user can access that file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top