mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
res_rtp_asterisk: rtp->ice check not wrapped in HAVE_PJPROJECT ifdef
Change-Id: I19b49112e1b630bd04e859f14ccf96f8ebd6b151
This commit is contained in:
@@ -4866,12 +4866,15 @@ static void ast_rtp_remote_address_set(struct ast_rtp_instance *instance, struct
|
|||||||
* by checking if we're passive. Without this, we only send the pending packets once a new SSL packet is
|
* by checking if we're passive. Without this, we only send the pending packets once a new SSL packet is
|
||||||
* received in __rtp_recvfrom. If rtp->ice, this is instead done on_ice_complete
|
* received in __rtp_recvfrom. If rtp->ice, this is instead done on_ice_complete
|
||||||
*/
|
*/
|
||||||
if (!rtp->ice && rtp->dtls.dtls_setup == AST_RTP_DTLS_SETUP_PASSIVE) {
|
#ifdef HAVE_PJPROJECT
|
||||||
|
if (rtp->ice) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (rtp->dtls.dtls_setup == AST_RTP_DTLS_SETUP_PASSIVE) {
|
||||||
dtls_srtp_flush_pending(instance, rtp);
|
dtls_srtp_flush_pending(instance, rtp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Write t140 redundacy frame
|
/*! \brief Write t140 redundacy frame
|
||||||
|
Reference in New Issue
Block a user