Incoming DTLS-SRTP call rejected

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

 



Hello,

With #2018, @nanang introduces support for DTLS-SRTP.
https://trac.pjsip.org/repos/ticket/2018

#2018 (Support DTLS for SRTP keying) – pjsip Open source ...
trac.pjsip.org
DTLS-SRTP is an SRTP keying method that uses media channel for SRTP key negotiation which is secured using TLS. As SRTP key negotiation is done in media channel ...     

The ticket states:
<<In generating SDP answer, SRTP will automatically detect and match the keying method to the SDP  offer's, e.g: if remote sends offer using DTLS-SRTP, we will start DTLS nego immediately and answer using DTLS-SRTP too.>>

I am unable to get pjsua to answer a DTLS-SRTP call. Instead, I get a 406: not acceptable response.
I have attached  340_dtls-srtp_offer_accepted.py, a test demonstrating the behaviour I was expecting.  This test is to be placed in tests/pjsua/scripts-sendto in r5621 or higher (I am on r5646).

Regards,
Marcel

    

This email is security checked and subject to the disclaimer on web-page: http://www.capita.co.uk/email-disclaimer.aspx
# $Id$
import inc_sip as sip
import inc_sdp as sdp

sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 60738 UDP/TLS/RTP/SAVPF 0
a=setup:actpass
a=rtpmap:0 PCMU/8000
a=sendrecv
a=fmtp:101 0-15
a=fingerprint: SHA-1 4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
"""

args = "--null-audio --auto-answer 200 --max-calls 1 --use-srtp 3 --srtp-secure 0"
include = []
exclude = []

sendto_cfg = sip.SendtoCfg( "Callee accepts DTLS-SRTP offer", 
			    pjsua_args=args, sdp=sdp, resp_code=200, 
			    resp_inc=include, resp_exc=exclude)

_______________________________________________
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