fair-rose
fair-rose8mo ago

asterisk

asterisk
13 Replies
Atlas
Atlas8mo ago
HeyFelipe Hidalgo Thank you for creating the ticket! A member of our team will reach out to you shortly.
fair-rose
fair-roseOP8mo ago
SIP 401 received when and inbound call to number sip:+19548093107@sip.vapi.ai
fair-rose
fair-roseOP8mo ago
Using Asterisk and PJSIP
Vapi
Vapi8mo ago
@Felipe Hidalgo It seems like you might be referring to Asterisk, which is an open-source framework for building communications applications. If you have any specific questions or need assistance with something related to Asterisk or voice applications, please let me know how I can help you! You can continue this conversation by mentioning me in the message.
fair-rose
fair-roseOP8mo ago
@Shubham SIP 401
fair-rose
fair-roseOP8mo ago
Any Respond? @Vapi Team help
dependent-tan
dependent-tan8mo ago
@Felipe Hidalgo Your SIP Provider Asterisk doesn’t sends a username/password entry for the sip.vapi.ai. When the Vapi sends a 401 challenge, Asterisk can’t respond with valid credentials, so the call fails. The username/password is merely an placeholder, so try asking your provider how you can send them. Do let me kow if you require further help!!
fair-rose
fair-roseOP8mo ago
I am the provider. Where I need to put the user and password in vapi. the numberI created do not have any credential (user/pass) . In what sip field or header should arrive the user and password.
dependent-tan
dependent-tan8mo ago
@Felipe Hidalgo Vapi expects authentication credentials. The username must be your SIP username, and the password can be anything except the keyword "test." Authentication is handled using the Authorization header in SIP. When you send an initial INVITE, it does not include credentials. The Vapi server responds with 401 Unauthorized, along with a WWW-Authenticate header containing a nonce value. This nonce is required for digest authentication. To authenticate, you must resend the INVITE with an Authorization header that includes: - username: Your SIP username. - realm: The domain provided by the server (sip.vapi.ai). - nonce: The nonce value from the 401 Unauthorized response. - uri: The request URI (e.g., sip:1111212@sip.vapi.ai). - response: A computed MD5 hash using the following formula: Without this Authorization header in the second INVITE, the server will reject the request.
fair-rose
fair-roseOP8mo ago
Thanks, issue solved. I will upload the Asterisk configs for future helping any other user that need it. Again, tnaks very much. How I mark this as solved??
dependent-tan
dependent-tan8mo ago
@Felipe Hidalgo Could you please clarify the issue at hand? Additionally, would it be possible for us to schedule a time to discuss a document that would assist users in utilizing Asterisk and Vapi effectively?
other-emerald
other-emerald3mo ago
@Felipe Hidalgo Could you please share the Asterisk config files? Thank you in advance
Sahil
Sahil3mo ago
We are on standby awaiting a response from Felipe. We will also mark this ticket as resolved for now

Did you find this page helpful?