Hey Sahil, for inbound calls your are getting 401 because VAPI requires authorization headers for inbound calls and your telephone is supposed to send username and password. Username is your SIP username, and password can be anything except empty white spaces. To forward the codes, they have to forward it to the SIP URI registered in VAPI, which is your phone number followed by @[sip.wapi.ai](
http://sip.wapi.ai) unless customized.
The outbound calls we are getting either 404 Not Found or 403 Forbidden which means both of the calls have failed from your telephoning end. I'll suggest you check out with them.