Hello everyone,
I am currently trying to set up RTP media streaming between Asterisk and a Python media server using ARI and ExternalMedia.
The call is being intercepted successfully through ARI, and the ExternalMedia channel is also being created. However, I am facing an issue where the RTP audio packets are not being received properly on the Python side. Because of this, I am unable to process the incoming audio stream further (for example, for speech processing).
In addition to this, when I place a call from MicroSIP, I am not able to hear the initial dialogue from the python side that should be played. I am unsure whether the audio is reaching Asterisk correctly or if there is an issue in my dialplan or media configuration.
So far I have:
-
Created the ExternalMedia channel through ARI
-
Set up a Python UDP listener for RTP packets
-
Verified the RTP port configuration
-
Checked the basic network configuration
Despite this, the Python server does not seem to receive the RTP packets, and the IVR audio is not heard on the SIP client.
I would appreciate any suggestions on what could be causing this issue or what areas I should investigate further (RTP configuration, codec mismatch, network setup, etc.).
Thank you.