Re: DTLS-SRTP. No SRTP transmission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guys,

the good people from pjsip support pointed me in the right direction: the offerer wasn't initiating the DTLS-SRTP handshake. 
The reason was that the RTPEngine needed to be configured with a DTLS role of 'active', which was 'passive' before.

Hope this helps others.

Cheers,

Chris

On Tue, Apr 10, 2018 at 5:08 PM, Christian Scheid <cscheid@xxxxxxxxxxx> wrote:
Guys,

we are currently trying to get DTLS-SRTP working with two Android clients and a Kamailio/RTPEngine server. It's been a bit rough, to say the least. So I could use some help. I also pledge to buy anyone who can assist a six pack of beer. I'll Paypal it to you. :)

So what's happening? In short: nothing. No sound. Which is what I'm desperately craving for!
The DTLS handshake completes fine between the two parties but when it comes to transmitting srtp, the sender gives me:
Error sending RTP: Invalid operatiion (PJ_EINVALIDOP)

In the receiver logs with DTLS_DEBUG turned on I see:
DTLS-SRTP ssl_on_recv_packet
dtls0x7bcd47568000  SSL_read() error: Unknown OpenSSL error 0
dtls0x7bcd47568000  SSL_get_error: 5: Unknown OpenSSL error 0
dtls0x7bcd47568000  DTLS-SRTP ssl_flush_wbio
strm0x7bcd3b927c28 !Error sending RTP: Invalid operation (PJ_EINVALIDOP)
dtls0x7bcd47568000 !DTLS-SRTP receiving 1045 bytes

SSL_get_error 5 means: SSL_ERROR_SYSCALL. Some non-recoverable I/O error occurred. 
Uhhhh, ugly!

In the Wireshark output I see UDP packets from the receiver but nothing from the sender. Hmm. Perhaps a RTPEngine config issue?

So I uploaded sender, receiver and wireshark logs here: 

If anyone could give me a hint on where to go from here, I'd be eternally grateful, Since... I've... banged... my... head... against... the... walll. with this one... a lot.

You wanna ask a stupid question? Don't be shy, go ask a stupid question. I'm a pj beginner. Any stupid quest may put me on the right track.

Thanks!

Chris



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux