]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Resolve further timing issues with DTLS negotiation 38/1838/2
authorDade Brandon <dade@xencall.com>
Fri, 18 Dec 2015 01:05:00 +0000 (17:05 -0800)
committerDade Brandon <dade@xencall.com>
Mon, 21 Dec 2015 19:11:52 +0000 (11:11 -0800)
commit6dc4aacaed655f7de1fbb3bb46d4428580283971
tree8d0645dd87b16d5596786f76d74784bb98ce356c
parent54f6f54a5fc0095a8664a9e4d4cac948c5d9ce44
res_rtp_asterisk: Resolve further timing issues with DTLS negotiation

Resolves an edge case dtls negotiation delay for certain networks which
somehow manage to drop the rtcp side's packet when these are both sent
ast_rtp_remote_address_set, causing it to have to time-out and restart
the handshake.

Move dtls pending bio flush in to it's own function, and call it from
ast_rtp_on_ice_complete, when we're rtp->ice, rather than when
ast_rtp_remote_address_set.

Keep the existing flush from the recent change to res_rtp_remote_address_set
if ice is not being used.

ASTERISK-25614 #close
Reported-by: XenCALL
Tested by: XenCALL

Change-Id: Ie2caedbdee1783159f375589b6fd3845c8577ba5
res/res_rtp_asterisk.c