Block sip clients to register in wss pjsip endpoints

Hi. Exists any way to block sip register when a pjsip endpoint is wss? Currently my sip udp clients can register normally in wss endpoints, causing confusion to end user if wss is activated or not. We just perceive that exists any problem because the sip client cannot call out or receive calls, but it registers normally. I just want to permit sip udp clients to register in pjsip endpoints that has udp transport only.

Asterisk version: 18.14

There is no real ability to do that in PJSIP.