When building applications with AudioSocket that require coordinated operations like playing an announcement before performing a call transfer, there's currently no way to determine when audio playback has completed. This makes it difficult to sequence operations that depend on playback finishing.
In our implementation, we need to:
- Play an announcement to the caller (e.g., "We are transferring your call, please hold")
- Wait for the announcement to finish playing
- Execute the transfer operation via AMI (Asterisk Manager Interface)
The challenge we’re facing is determining when the announcement has finished playing so we can proceed with the call transfer or hang up. We have explored but could not find any useful events that indicate the playback has completed.
When building applications with AudioSocket that require coordinated operations like playing an announcement before performing a call transfer, there's currently no way to determine when audio playback has completed. This makes it difficult to sequence operations that depend on playback finishing.
In our implementation, we need to:
The challenge we’re facing is determining when the announcement has finished playing so we can proceed with the call transfer or hang up. We have explored but could not find any useful events that indicate the playback has completed.