[asterisk-bugs] [JIRA] (ASTERISK-22961) [patch] DTLS-SRTP not working with SHA-256
NITESH BANSAL (JIRA)
noreply at issues.asterisk.org
Tue Jan 7 07:39:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-22961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
NITESH BANSAL updated ASTERISK-22961:
-------------------------------------
Attachment: srtp_dtls.patch
Hello,
I have used Lorenzo's code to make a patch for Asterisk 11.4 and now i can use my Asterisk to accept WebRTC calls from both chrome and firefox.
The major differences between my patch and Lorenzo's patch are:
1. It is a bit cleaner (no comments mentioning meetecho and better indentation i hope)
2. I am relying on the config file to enable DTLS, it isn't enabled by default.
3. This patch provides support for both SHA-1 and SHA-256 and can be later extended to include support for SHA-512 also.
I would request you to have a look and see if it can be included in Asterisk 11.
P.S:
There is one hack which i made in my javascript code to make Asterisk happy "I had to replace RTP/SAVPF in SDP with UDP/TLS/RTP/SAVPF". After this hack, i was able to talk to both Chrome and Firefox using DTLS.
Regards,
Nitesh
> [patch] DTLS-SRTP not working with SHA-256
> ------------------------------------------
>
> Key: ASTERISK-22961
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-22961
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Channels/chan_sip/SRTP, Channels/chan_sip/WebSocket
> Affects Versions: 11.6.0, 12.0.0-beta2
> Reporter: Jay Jideliov
> Attachments: asterisk_dtls.patch, chan_sip.c, ice_session.c, res_rtp_asterisk.c, res_rtp_asterisk.c, srtp_dtls.patch
>
>
> Recently it became possible to use websocket on asterisk without a proxy previously necessary to make calls from the web browser. Although partial support has been added, full browser cross-operability has not been achieved yet. However, it seems to be a relatively easy task.
> Tested on Chrome+SIPML5+Asterisk 11, the connection can be established and works fine. However, due to the fact that Firefox sends SHA-256 packets which are not supported by asterisk, hence the support for this browser is limited by this issue.
> Step 1: Adding certificates to support DTLS
> dtlsenable = yes
> dtlsverify = no
> dtlscertfile=/etc/asterisk/keys/softphone.pem
> dtlsprivatekey=/etc/asterisk/keys/key.pem
> dtlscafile=/etc/asterisk/keys/key.pem
> Step 2: Making a call
> [Nov 25 15:05:50] WARNING[5628][C-0000005c]: chan_sip.c:11034 process_sdp_a_dtls: Unsupported fingerprint hash type 'sha-2' received on dialog '38f43a1f-15cd-ad69-c2b3-72c21b9de5fd'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list