]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Resolve further timing issues with DTLS negotiation 39/1839/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:31:26 +0000 (11:31 -0800)
commit965a0eee46d24321f74c244e23c5a5f45e67e12b
treedf2d2693678a411330b56ada79255a0590b639d8
parent7ec9b5b98f6aea20f61185a71052a092b32e0706
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