I’m currently working on a project where I need to play different recognized audio files to a channel. Here’s a brief overview of my setup:
Created an ExternalMedia channel.
Set up a bridge.
Joined the ExternalMedia channel to the bridge.
Created a Snoop channel based on the current channel and bridged it using ARI.
With this setup, I successfully receive RTP from Asterisk to my application and send RTP back based on a ulaw audio file. However, while the first audio file plays correctly, subsequent attempts to play another audio file fail. This issue persists even after hanging up and making a new call with the same setup.
Interestingly, the only workaround I’ve found is to set:
strictrtp=no
While this resolves the issue temporarily, I would prefer not to disable strictrtp.
Has anyone encountered this problem or can suggest a solution for sending media multiple times in this scenario? For reference, I use a random new SSRC for each attempt.
Additionally, you must use the same source IP address and port within an external media RTP channel when sending to it. The sequence number should also increase, and it should be a stream.