Hi! I’ve worked with SIP/PBX and VAPI integrations before and can help troubleshoot this. The 401 response is usually an authentication challenge, so the PBX may need proper SIP auth (username/password or digest response). Also, VAPI can sometimes enforce TLS transport, which might be why it switches from UDP to TCP/TLS.
@Febres35