Need to add 'libressl' USE flag and optional dependency on libressl instead of openssl. Also there is a patch for libressl support in the upstream (in trunk, not backported to 2.7.2): https://trac.pjsip.org/repos/changeset/5726
merged PR