Play music on hold while LUA task execution

Status
Not open for further replies.

ewdpb

Member
Oct 3, 2019
151
19
18
Hi all,

I have an IVR that executes some API requests. A couple of those may take 3 to 5 seconds to come back with a result (this is expected, not a bug - it is the backend system taking that long - it is is not ideal but it is what it is). I was wondering if there is a way to play music on hold (or anything else) back o the user while they wait for the API execution to be completed.

As always, any advice is appreciated.

Thanks!
 

ewdpb

Member
Oct 3, 2019
151
19
18
Hi @bryanredeagle , thanks for replying. The streamFile function is blocking, so, the next instruction has to wait until the playback end. Also what I am looking is for a way to stream a file while the caller is waiting for another thing to happen, that is paralllel executions.Thanks for the idea though!
 
Status
Not open for further replies.