pjsip-pjproject/pjnath
Riza Sulistyo e533af23c1
Add the option to check the source address of ClientHello message on DTLS-SRTP (#4261)
* Check the source address of ClientHello message on DTLS-SRTP

* Change the return status

* Add check if source adress is available

* Modification based on comments

- The check will always be performed when ICE is use
- Check the RTP/RTPC address against the candidate when ICE is use

* Modification based on comments

* Modifications based on comment:

- Remove the enum candidate APIs
- Move the source checking for ICE
- Use the remote candidate which has received STUN request or has completed the connectivity check as a valid source
- Don't send respond to STUN request with USE-CANDIDATE when the ICE is completed.

* Missed lock release

* Modification based on comments

* Modification based on comments

- store the valid address to avoid checking with all of remote candidate
- add comment regarding the check source address in SRTP-DTLS is for non-ICE use

* Modification based on comments

- Revert the ICE behavior change since it cause the pjnath-test to fail
- Settle the valid remote address after the ICE is completed

* Modification based on comments

- Add delay before settling to a remote address after ICE is completed
- When ICE is not use, delay the handshake until remote address is available

* Minor modification

* Add PJSUA2 API
2025-02-13 14:20:55 +07:00
..
build Move UPnP to PJNATH (#3195) 2022-07-29 17:05:28 +08:00
docs Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
include Add the option to check the source address of ClientHello message on DTLS-SRTP (#4261) 2025-02-13 14:20:55 +07:00
src Add the option to check the source address of ClientHello message on DTLS-SRTP (#4261) 2025-02-13 14:20:55 +07:00