Using an ARI client (AsterNET.ARI) we are able to:
1- Initiate a call
2- Create an External Media Channel
3- Create Bridge type “mixing”
4- Bridge both channels
…and expose the audio stream to an RTP server we built listening on all IPs in port 7777
For the moment, we are trying to send back the stream to the channel (like an echo), however we are not hearing the response, even though it looks like the RTP is sent back to asterisk.
External Media Channel: {"UNICASTRTP_LOCAL_PORT":"15672","UNICASTRTP_LOCAL_ADDRESS":"172.18.33.220"}
RTP server:
... Received: 118 From: 172.18.33.220:15672 Sending: 118 To: 172.18.33.220:15672 Received: 118 From: 172.18.33.220:15672 Sending: 118 To: 172.18.33.220:15672 ....
Asterisk:
Got RTP packet from 10.114.0.234:55874 (type 111, seq 031742, ts 3934092822, len 000069)
Sent RTP packet to 172.18.33.220:7777 (type 118, seq 029097, ts 1090576, len 000640)
Got RTP packet from 10.114.0.234:55874 (type 111, seq 031743, ts 3934093782, len 000071)
Sent RTP packet to 172.18.33.220:7777 (type 118, seq 029098, ts 1090896, len 000640)
Got RTP packet from 10.114.0.234:55874 (type 111, seq 031744, ts 3934094742, len 000073)
To start this process we initiate a call with a softphone (JsSIP, opus codec) to :
`
exten => 111,1,NoOp(Testing External Media)
same => n,Answer()
same => n,Stasis(voicebot)
same => n,Hangup()
`
Any idea why I am not hearing the audio back?