asterisk
# support
f
asterisk
a
HeyFelipe Hidalgo Thank you for creating the ticket! A member of our team will reach out to you shortly.
Using Asterisk and PJSIP
v
@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.
Any Respond?
@User help
s
@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!!
f
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.
s
@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.
f
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??
s
@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?
l
@Felipe Hidalgo Could you please share the Asterisk config files? Thank you in advance
p
We are on standby awaiting a response from Felipe. We will also mark this ticket as resolved for now
2 Views