I am facing very strange issue. Here is the scenario.
I have asterisk box configured with (secure TLS + SRTP) SIP trunk from Twilio. When call comes from twilio, I place the call to another number using twilio outgoing trunk (TLS+SRTP). This one works perfectly with secure as well as insecure RTP. Call gets connected and audio is heard.
Now the difficult part. I have an ARI application that is called when call is received from Twilio. The ARI application creates second leg and on answer it bridges both the channels. This scenario also works for RTP is used instead of SRTP. It works means, call is connected and audio is properly heard on both the sides.
However, If I put secure trunk SRTP + TLS along with ARI application then call gets connected properly. But audio is not heard.
Bottomline is,
SRTP + ARI Application -> Not Working
RTP + ARI Application -> Working
SRTP + Dial App -> Working
RTP + Dial App -> Working
Here is the sip debug log from asterisk CLI.
Please help.
secure rtp.txt (18.7 KB)