Search code examples
sipasterisk

sip making a call - 401 Unauthorized


I am working on a SIP client. I'm monitoring with Wireshark the SIP packets.

Register with the SIP server works fine.

When making a call, I have this:

Client - INVITE message
Server - 401 UNAUTHORIZED
Client - INVITE message
Server - 403 Forbidden

I do not have access to the server. What could go wrong? Why can't I make a call?

What is with that 401 and then 403 if registering worked ok?


Solution

  • That is noramal. Server ask for authorization(401). After that it say authorization incorrect.

    That is normal behavour for any of this:

    1) You use incorrect secret for this username

    2) You use domain name/realm which is incorrect and domain name/realm is set on server.

    If registration work ok, can be

    1) Server work with registration different way - contact server support

    2) You dialling in incorrect format or this number not allowed to call with your extension.