[asterisk-dev] Enable dtls_cfg

jaflong jaflong jaflong at yandex.com
Fri Mar 28 07:20:03 CDT 2014


Hi 

I am having problems using DTLS-SRTP and trying to debug why I am getting this error
[Mar 26 14:48:23] WARNING[31977][C-00000009]: chan_sip.c:10657 process_sdp: Can't provide secure audio requested in SDP offer


In chan_sip.c

Tracing through the code, at this point the value of p->dtls_cfg.enabled is FALSE when run.
Any tip on how to get p->dtls_cfg.enabled set to TRUE. It seems DTLS config is not getting initiated

static int process_sdp_a_dtls(const char *a, struct sip_pvt *p, struct ast_rtp_instance *instance)
{
        struct ast_rtp_engine_dtls *dtls;
        int found = FALSE;
        char value[256], hash[6];


        if (!instance || !p->dtls_cfg.enabled || !(dtls = ast_rtp_instance_get_dtls(instance))) {
                return found;
        }


By the way what is the minimum version required of openssl to use DTLS-SRTP.
At present I have 1.01e-fips (cento 6.5) 


SDP IS 
v=0
o=Mozilla-SIPUA-22.0 3596 0 IN IP4 0.0.0.0
s=SIP Call
t=0 0
a=ice-ufrag:e2734c5a
a=ice-pwd:1254641838118f7ca7702397e74c5603
a=fingerprint:sha-256 D7:2D:84:4C:2D:A1:C8:E6:9C:16:DA:8B:CB:C6:5F:D0:0E:A1:F4:E3:60:BF:32:95:C2:15:E9:EB:16:C6:C6:C8
m=audio 60732 UDP/TLS/RTP/SAVPF 109 0 8 101
c=IN IP4 192.168.122.1
a=rtpmap:109 opus/48000/2
a=ptime:20
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=candidate:0 1 UDP 2111832319 10.1.xxx.xxx 55285 typ host
a=candidate:2 1 UDP 2112422143 192.168.122.1 60732 typ host
a=candidate:0 2 UDP 2111832318 10.1.xxx.xxx 58868 typ host
a=candidate:2 2 UDP 2112422142 192.168.122.1 44132 typ host



More information about the asterisk-dev mailing list